Include file:
#include "mcrl2/atermpp/aterm_list.h
atermpp::
term_list
¶A list of aterm objects.
atermpp::term_list::
const_iterator
¶typedef for term_list_iterator< Term >
Const iterator used to iterate through an term_list.
atermpp::term_list::
const_reverse_iterator
¶typedef for reverse_term_list_iterator< Term >
Const iterator used to iterate through an term_list.
const typedef Term & atermpp::term_list::const_reference
Const reference to T.
term_list
(detail::_aterm *t) noexcept¶Constructor for term lists from internally constructed terms delivered as reference.
begin
() constReturns a const_iterator pointing to the beginning of the term_list.
Returns: The beginning of the list.
emplace_front
(Args&&... arguments)Construct and insert a new element at the beginning of the current list.
Parameters:
empty
() constReturns true if the list’s size is 0.
Returns: True iff the list is empty.
end
() constReturns a const_iterator pointing to the end of the term_list.
Returns: The end of the list.
front
() const¶Returns the first element of the list.
Returns: The term at the head of the list.
max_size
() constReturns the largest possible size of the term_list.
Returns: The largest possible size of the list.
operator=
(const term_list &other) noexcept = default¶This class has user-declared copy constructor so declare copy and move assignment.
pop_front
()¶Removes the first element of the list.
push_front
(const Term &el)¶Inserts a new element at the beginning of the current list.
Parameters:
rbegin
() const¶Returns a const_reverse_iterator pointing to the end of the term_list.
This operator requires linear time and memory in the size of the list to yield the iterator.
Returns: The end of the list.
rend
() const¶Returns a const_iterator pointing to the end of the term_list.
Returns: The end of the list.
size
() constReturns the size of the term_list.
The complexity of this function is linear in the size of the list.
Returns: The size of the list.
term_list
() noexcept¶Default constructor. Creates an empty list.
term_list
(Iter first, Iter last, const ATermConverter &convert_to_aterm, const ATermFilter &aterm_filter, typename std::enable_if<!std::is_base_of<std::random_access_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = nullptr)¶Creates a term_list from the elements from first to last converting and filtering the elements before inserting.
The range is traversed from first to last. This requires to copy the elements internally, which is less efficient than this function with random access iterators as arguments. The operator () in the class ATermConverter is applied to each element before inserting it in the list. Elements are only inserted if the operator () of the class ATermFilter yields true when applied to such an element.
Parameters:
term_list
(Iter first, Iter last, const ATermConverter &convert_to_aterm, const ATermFilter &aterm_filter, typename std::enable_if<std::is_base_of<std::bidirectional_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = 0)¶Creates a term_list with the elements from first to last, converting and filtering the list.
It is assumed that the range can be traversed from last to first. The operator () in the class ATermConverter is applied to each element before inserting it in the list. Elements are only inserted if the operator () of the class ATermFilter yields true when applied to such an element.
Parameters:
term_list
(Iter first, Iter last, const ATermConverter &convert_to_aterm, typename std::enable_if<!std::is_base_of<std::bidirectional_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = nullptr)¶Creates a term_list from the elements from first to last converting the elements before inserting.
The range is traversed from first to last. This requires to copy the elements internally, which is less efficient than this function with random access iterators as arguments. The operator () in the class ATermConverter is applied to each element before inserting it in the list.
Parameters:
term_list
(Iter first, Iter last, const ATermConverter &convert_to_aterm, typename std::enable_if<std::is_base_of<std::bidirectional_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = 0)¶Creates a term_list with the elements from first to last converting the elements before inserting.
It is assumed that the range can be traversed from last to first. The operator () in the class ATermConverter is applied to each element before inserting it in the list.
Parameters:
term_list
(Iter first, Iter last, typename std::enable_if<!std::is_base_of<std::bidirectional_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = nullptr)¶Creates a term_list from the elements from first to last.
The range is traversed from first to last. This requires to copy the elements internally, which is less efficient than this function with random access iterators as arguments.
Parameters:
term_list
(Iter first, Iter last, typename std::enable_if<std::is_base_of<std::bidirectional_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>::value>::type * = nullptr)¶Creates a term_list with the elements from first to last.
It is assumed that the range can be traversed from last to first.
Parameters:
term_list
(std::initializer_list<Term> init)¶A constructor based on an initializer list.
This constructor is not made explicit to conform to initializer lists in standard containers.
Parameters: