mCRL2
Loading...
Searching...
No Matches
is_timed.h
Go to the documentation of this file.
1
// Author(s): Wieger Wesselink
2
// Copyright: see the accompanying file COPYING or copy at
3
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4
//
5
// Distributed under the Boost Software License, Version 1.0.
6
// (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
8
//
11
12
#ifndef MCRL2_MODAL_FORMULA_IS_TIMED_H
13
#define MCRL2_MODAL_FORMULA_IS_TIMED_H
14
15
#include "
mcrl2/modal_formula/traverser.h
"
16
17
namespace
mcrl2
{
18
19
namespace
state_formulas {
20
21
namespace
detail {
22
24
// \brief Visitor for checking if a state formula is timed.
25
struct
is_timed_traverser
:
public
state_formula_traverser
<is_timed_traverser>
26
{
27
typedef
state_formula_traverser<is_timed_traverser>
super
;
28
using
super::enter;
29
using
super::leave;
30
using
super::apply
;
31
32
bool
result
;
33
34
is_timed_traverser
()
35
:
result
(false)
36
{}
37
38
void
enter
(
const
delay_timed
&
/* x */
)
39
{
40
result
=
true
;
41
}
42
43
void
enter
(
const
yaled_timed
&
/* x */
)
44
{
45
result
=
true
;
46
}
47
48
void
enter
(
const
action_formulas::at
&
/* x */
)
49
{
50
result
=
true
;
51
}
52
};
53
54
}
// namespace detail
55
59
inline
60
bool
is_timed
(
const
state_formula
& x)
61
{
62
detail::is_timed_traverser
f;
63
f.
apply
(x);
64
return
f.
result
;
65
}
66
67
}
// namespace state_formulas
68
69
}
// namespace mcrl2
70
71
#endif
// MCRL2_MODAL_FORMULA_IS_TIMED_H
mcrl2::action_formulas::at
\brief The at operator for action formulas
Definition
action_formula.h:682
mcrl2::state_formulas::delay_timed
\brief The timed delay operator for state formulas
Definition
state_formula.h:1564
mcrl2::state_formulas::state_formula
\brief A state formula
Definition
state_formula.h:26
mcrl2::state_formulas::yaled_timed
\brief The timed yaled operator for state formulas
Definition
state_formula.h:1440
traverser.h
add your file description here.
mcrl2::state_formulas::is_timed
bool is_timed(const state_formula &x)
Checks if a state formula is timed.
Definition
is_timed.h:60
mcrl2
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition
indexed_set.h:72
mcrl2::state_formulas::add_traverser_state_formula_expressions::apply
void apply(const state_formulas::true_ &x)
Definition
traverser.h:2178
mcrl2::state_formulas::detail::is_timed_traverser
Function that determines if a state formula is time dependent.
Definition
is_timed.h:26
mcrl2::state_formulas::detail::is_timed_traverser::enter
void enter(const action_formulas::at &)
Definition
is_timed.h:48
mcrl2::state_formulas::detail::is_timed_traverser::result
bool result
Definition
is_timed.h:32
mcrl2::state_formulas::detail::is_timed_traverser::enter
void enter(const delay_timed &)
Definition
is_timed.h:38
mcrl2::state_formulas::detail::is_timed_traverser::is_timed_traverser
is_timed_traverser()
Definition
is_timed.h:34
mcrl2::state_formulas::detail::is_timed_traverser::super
state_formula_traverser< is_timed_traverser > super
Definition
is_timed.h:27
mcrl2::state_formulas::detail::is_timed_traverser::enter
void enter(const yaled_timed &)
Definition
is_timed.h:43
mcrl2::state_formulas::state_formula_traverser
\brief Traverser class
Definition
traverser.h:2472
modal_formula
include
mcrl2
modal_formula
is_timed.h
Generated by
1.9.7