mCRL2
Loading...
Searching...
No Matches
is_untyped.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_DATA_DETAIL_IS_UNTYPED_H
13#define MCRL2_DATA_DETAIL_IS_UNTYPED_H
14
16
17namespace mcrl2 {
18
19namespace data {
20
21namespace detail {
22
23struct is_untyped_traverser: public sort_expression_traverser<is_untyped_traverser>
24{
26 using super::enter;
27 using super::leave;
28 using super::apply;
29
30 bool result;
31
33 : result(false)
34 {}
35
37 {
38 result = true;
39 }
40
42 {
43 result = true;
44 }
45
47 {
48 result = true;
49 }
50
52 {
53 result = true;
54 }
55
57 {
58 result = true;
59 }
60
62 {
63 result = true;
64 }
65
67 {
68 result = true;
69 }
70};
71
72inline
74{
76 f.apply(x);
77 return f.result;
78}
79
80} // namespace detail
81
82} // namespace data
83
84} // namespace mcrl2
85
86#endif // MCRL2_DATA_DETAIL_IS_UNTYPED_H
\brief An argument of a constructor of a structured sort
\brief A constructor for a structured sort
\brief Assignment of a data expression to a string
Definition assignment.h:182
\brief An untyped identifier
\brief Unknown sort expression
add your file description here.
bool is_untyped(const data_expression &x)
Definition is_untyped.h:73
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72
void apply(const data::variable &x)
Definition traverser.h:46
void apply(const data::structured_sort_constructor &)
Definition is_untyped.h:66
void apply(const data::untyped_possible_sorts &)
Definition is_untyped.h:51
void apply(const data::structured_sort_constructor_argument &)
Definition is_untyped.h:61
void apply(const data::untyped_set_or_bag_comprehension &)
Definition is_untyped.h:56
void apply(const data::untyped_identifier_assignment &)
Definition is_untyped.h:41
void apply(const data::untyped_sort &)
Definition is_untyped.h:46
sort_expression_traverser< is_untyped_traverser > super
Definition is_untyped.h:25
void apply(const data::untyped_identifier &)
Definition is_untyped.h:36