mCRL2
Loading...
Searching...
No Matches
untyped_sort_variable.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_UNTYPED_SORT_VARIABLE_H
13#define MCRL2_DATA_UNTYPED_SORT_VARIABLE_H
14
16
17namespace mcrl2 {
18
19namespace data {
20
21//--- start generated class untyped_sort_variable ---//
24{
25 public:
28 : sort_expression(core::detail::default_values::UntypedSortVariable)
29 {}
30
34 : sort_expression(term)
35 {
37 }
38
41 : sort_expression(atermpp::aterm(core::detail::function_symbol_UntypedSortVariable(), value))
42 {}
43
45 untyped_sort_variable(const untyped_sort_variable&) noexcept = default;
47 untyped_sort_variable& operator=(const untyped_sort_variable&) noexcept = default;
48 untyped_sort_variable& operator=(untyped_sort_variable&&) noexcept = default;
49
50 const atermpp::aterm_int& value() const
51 {
52 return atermpp::down_cast<atermpp::aterm_int>((*this)[0]);
53 }
54//--- start user section untyped_sort_variable ---//
57 : sort_expression(atermpp::aterm(core::detail::function_symbol_UntypedSortVariable(), atermpp::aterm_int(value)))
58 {}
59//--- end user section untyped_sort_variable ---//
60};
61
64template <class... ARGUMENTS>
65inline void make_untyped_sort_variable(atermpp::aterm& t, const ARGUMENTS&... args)
66{
68}
69
73inline
75{
77}
78
79// prototype declaration
80std::string pp(const untyped_sort_variable& x);
81
86inline
87std::ostream& operator<<(std::ostream& out, const untyped_sort_variable& x)
88{
89 return out << data::pp(x);
90}
91
94{
95 t1.swap(t2);
96}
97//--- end generated class untyped_sort_variable ---//
98
99} // namespace data
100
101} // namespace mcrl2
102
103#endif // MCRL2_DATA_UNTYPED_SORT_VARIABLE_H
An integer term stores a single std::size_t value. It carries no arguments.
Definition aterm_int.h:26
aterm()
Default constructor.
Definition aterm.h:48
const function_symbol & function() const
Returns the function symbol belonging to an aterm.
Definition aterm.h:144
void swap(unprotected_aterm_core &t) noexcept
Swaps this term with its argument.
Definition aterm_core.h:152
\brief A sort expression
untyped_sort_variable(const untyped_sort_variable &) noexcept=default
Move semantics.
untyped_sort_variable(const atermpp::aterm &term)
untyped_sort_variable(untyped_sort_variable &&) noexcept=default
untyped_sort_variable(std::size_t value)
Constructor.
untyped_sort_variable(const atermpp::aterm_int &value)
\brief Constructor Z14.
untyped_sort_variable()
\brief Default constructor X3.
const atermpp::aterm_int & value() const
The main namespace for the aterm++ library.
Definition algorithm.h:21
void make_term_appl(Term &target, const function_symbol &sym, ForwardIterator begin, ForwardIterator end)
Constructor an aterm in a variable based on a function symbol and an forward iterator providing the a...
Definition aterm.h:213
bool check_term_UntypedSortVariable(const Term &t)
const atermpp::function_symbol & function_symbol_UntypedSortVariable()
const untyped_sort_variable & make_untyped_sort_variable(const sort_expression &x)
void swap(abstraction &t1, abstraction &t2)
\brief swap overload
std::string pp(const abstraction &x)
Definition data.cpp:39
bool is_untyped_sort_variable(const atermpp::aterm &x)
std::ostream & operator<<(std::ostream &out, const abstraction &x)
Definition abstraction.h:94
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72
The class sort_expression.
static const atermpp::function_symbol UntypedSortVariable