mCRL2
Loading...
Searching...
No Matches
untyped_possible_sorts.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_POSSIBLE_SORTS_H
13#define MCRL2_DATA_UNTYPED_POSSIBLE_SORTS_H
14
16
17namespace mcrl2 {
18
19namespace data {
20
21//--- start generated class untyped_possible_sorts ---//
24{
25 public:
28 : sort_expression(core::detail::default_values::UntypedSortsPossible)
29 {}
30
34 : sort_expression(term)
35 {
37 }
38
41 : sort_expression(atermpp::aterm(core::detail::function_symbol_UntypedSortsPossible(), sorts))
42 {}
43
45 template <typename Container>
47 : sort_expression(atermpp::aterm(core::detail::function_symbol_UntypedSortsPossible(), sort_expression_list(sorts.begin(), sorts.end())))
48 {}
49
53 untyped_possible_sorts& operator=(const untyped_possible_sorts&) noexcept = default;
54 untyped_possible_sorts& operator=(untyped_possible_sorts&&) noexcept = default;
55
57 {
58 return atermpp::down_cast<sort_expression_list>((*this)[0]);
59 }
60};
61
64template <class... ARGUMENTS>
65inline void make_untyped_possible_sorts(atermpp::aterm& t, const ARGUMENTS&... args)
66{
68}
69
70// prototype declaration
71std::string pp(const untyped_possible_sorts& x);
72
77inline
78std::ostream& operator<<(std::ostream& out, const untyped_possible_sorts& x)
79{
80 return out << data::pp(x);
81}
82
85{
86 t1.swap(t2);
87}
88//--- end generated class untyped_possible_sorts ---//
89
90} // namespace data
91
92} // namespace mcrl2
93
94#endif // MCRL2_DATA_UNTYPED_POSSIBLE_SORTS_H
const_iterator end() const
Returns a const_iterator pointing past the last argument.
Definition aterm.h:172
aterm()
Default constructor.
Definition aterm.h:48
const_iterator begin() const
Returns an iterator pointing to the first argument.
Definition aterm.h:165
A list of aterm objects.
Definition aterm_list.h:24
void swap(unprotected_aterm_core &t) noexcept
Swaps this term with its argument.
Definition aterm_core.h:152
\brief A sort expression
untyped_possible_sorts(const Container &sorts, typename atermpp::enable_if_container< Container, sort_expression >::type *=nullptr)
\brief Constructor Z2.
untyped_possible_sorts(const untyped_possible_sorts &) noexcept=default
Move semantics.
untyped_possible_sorts(const sort_expression_list &sorts)
\brief Constructor Z14.
untyped_possible_sorts(const atermpp::aterm &term)
untyped_possible_sorts(untyped_possible_sorts &&) noexcept=default
untyped_possible_sorts()
\brief Default constructor X3.
const sort_expression_list & sorts() 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
const atermpp::function_symbol & function_symbol_UntypedSortsPossible()
bool check_term_UntypedSortsPossible(const Term &t)
void swap(abstraction &t1, abstraction &t2)
\brief swap overload
std::string pp(const abstraction &x)
Definition data.cpp:39
void make_untyped_possible_sorts(atermpp::aterm &t, const ARGUMENTS &... args)
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.