Classes |
Public Types |
Public Member Functions |
Static Public Member Functions |
Private Types |
Static Private Member Functions |
Private Attributes |
Static Private Attributes |
List of all members
SLHAea::Block Class Reference
Collaboration diagram for SLHAea::Block:
![]()
Detailed DescriptionContainer of Lines that resembles a block in a SLHA structure. This class is a named container of Lines that resembles a block in a SLHA structure. Unlike a block in a SLHA structure, a Block can contain any number of block definitions or it can be completely empty. Access to the elements of the Block is provided by the operator[]() and at() functions. These take one or more strings resp. ints as argument(s) and compare them against the first strings of the contained Lines (the ints are converted to strings before comparison). The first Line that matches the provided arguments is then returned, or if no matching Line is found, an empty Line is appended to the Block (operator[]()) or Member Typedef Documentation◆ const_iterator
◆ const_pointer
◆ const_reference
◆ const_reverse_iterator
◆ difference_type
◆ impl_type
◆ iterator
◆ key_type
◆ pointer
◆ reference
◆ reverse_iterator
◆ size_type
◆ value_type
Constructor & Destructor Documentation◆ Block() [1/2]
◆ Block() [2/2]
Member Function Documentation◆ at() [1/8]Locates a Line in the Block.
This function takes a key (which is a vector of strings) and locates the Line whose first strings are equal to the strings in Definition at line 959 of file slhaea.h. Referenced by at(), at(), at(), at(), at(), at(), SLHAea::Coll::line(), and SLHAea::Coll::line(). ◆ at() [2/8]
Locates a Line in the Block.
This function takes a key (which is a vector of strings) and locates the Line whose first strings are equal to the strings in ◆ at() [3/8]
Locates a Line in the Block.
This function takes up to five strings and locates the Line whose first strings are equal to all provided non-empty strings. If no such Line exists, Definition at line 1029 of file slhaea.h. References at(), and strings_to_key(). ◆ at() [4/8]
Locates a Line in the Block.
This function takes up to five strings and locates the Line whose first strings are equal to all provided non-empty strings. If no such Line exists, Definition at line 1047 of file slhaea.h. References at(), and strings_to_key(). ◆ at() [5/8]
Locates a Line in the Block.
This function takes a vector of ints and locates the Line whose first strings are equal to the to strings converted ints in Definition at line 999 of file slhaea.h. References at(), and cont_to_key(). ◆ at() [6/8]
Locates a Line in the Block.
This function takes a vector of ints and locates the Line whose first strings are equal to the to strings converted ints in Definition at line 1013 of file slhaea.h. References at(), and cont_to_key(). ◆ at() [7/8]
Locates a Line in the Block.
This function takes up to five ints and locates the Line whose first strings are equal to all provided to string converted ints. If no such Line exists, Definition at line 1065 of file slhaea.h. References at(), and ints_to_key(). ◆ at() [8/8]
Locates a Line in the Block.
This function takes up to five ints and locates the Line whose first strings are equal to all provided to string converted ints. If no such Line exists, Definition at line 1081 of file slhaea.h. References at(), and ints_to_key(). ◆ back() [1/2]
Returns a read/write reference to the last element of the Block. Definition at line 1105 of file slhaea.h. References SLHAea::Line::back(), and impl_. Referenced by SLHAea::Coll::back(), SLHAea::Coll::back(), and operator[](). ◆ back() [2/2]
Returns a read-only (constant) reference to the last element of the Block. Definition at line 1113 of file slhaea.h. References SLHAea::Line::back(), and impl_. ◆ begin() [1/2]
Returns a read/write iterator that points to the first element in the Block. Iteration is done in ordinary element order. Definition at line 1122 of file slhaea.h. References impl_. Referenced by comment(), count(), data_size(), erase(), find(), find(), find_block_def(), find_block_def(), SLHAea::operator<(), SLHAea::operator<<(), SLHAea::operator==(), reformat(), and uncomment(). ◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ clear()
◆ comment()
Comments all Lines in the Block.
Definition at line 1516 of file slhaea.h. References begin(), SLHAea::Line::comment(), end(), and MEM_FN. Referenced by SLHAea::Coll::comment(). ◆ cont_to_key()
template<class Container >
Definition at line 1555 of file slhaea.h. References SLHAea::to_string(). Referenced by at(), at(), and operator[](). ◆ count()◆ crbegin()
◆ crend()
◆ data_size()
◆ empty()
Returns true if the Block is empty. Definition at line 1329 of file slhaea.h. References impl_. Referenced by SLHAea::Coll::erase_if_empty(). ◆ end() [1/2]
Returns a read/write iterator that points one past the last element in the Block. Iteration is done in ordinary element order. Definition at line 1149 of file slhaea.h. References impl_. Referenced by at(), at(), comment(), count(), data_size(), erase(), erase_first(), erase_last(), find(), find(), find_block_def(), find_block_def(), SLHAea::Coll::key_matches_block_def::operator()(), SLHAea::operator<(), SLHAea::operator<<(), SLHAea::operator==(), operator[](), reformat(), rename(), and uncomment(). ◆ end() [2/2]
◆ erase() [1/3]Erases all Lines that match the provided key.
This function takes a key (which is a vector of strings) and erases all Lines whose first strings are equal to the strings in ◆ erase() [2/3]Erases a range of elements.
This function erases the elements in the range [ Definition at line 1415 of file slhaea.h. References impl_. ◆ erase() [3/3]Erases element at given
This function erases the element at the given Definition at line 1400 of file slhaea.h. References impl_. Referenced by erase(), erase_first(), erase_last(), and flexiblesusy::SLHA_io::set_block(). ◆ erase_first()Erases first Line that matches the provided key.
This function takes a key (which is a vector of strings) and erases the first Line whose first strings are equal to the strings in ◆ erase_last()Erases last Line that matches the provided key.
This function takes a key (which is a vector of strings) and erases the last Line whose first strings are equal to the strings in ◆ find() [1/3]Tries to locate a Line in the Block.
This function takes a key (which is a vector of strings) and tries to locate the Line whose first strings are equal to the strings in Definition at line 1238 of file slhaea.h. References begin(), and end(). Referenced by at(), at(), erase_first(), erase_last(), and operator[](). ◆ find() [2/3]
Tries to locate a Line in the Block.
This function takes a key (which is a vector of strings) and tries to locate the Line whose first strings are equal to the strings in ◆ find() [3/3]
template<class InputIterator >
Tries to locate a Line in a range.
This function tries to locate in the range [ ◆ find_block_def() [1/2]
Returns a read/write iterator that points to the first Line in the Block which is a block definition. If the Block does not contain a block definition, end() is returned. Definition at line 1280 of file slhaea.h. References begin(), end(), SLHAea::Line::is_block_def(), and MEM_FN. Referenced by SLHAea::Coll::key_matches_block_def::operator()(), and rename(). ◆ find_block_def() [2/2]
Returns a read-only (constant) iterator that points to the first Line in the Block which is a block definition. If the Block does not contain a block definition, end() const is returned. Definition at line 1292 of file slhaea.h. References begin(), end(), SLHAea::Line::is_block_def(), and MEM_FN. ◆ from_str()
◆ front() [1/2]
Returns a read/write reference to the first element of the Block. Definition at line 1090 of file slhaea.h. References SLHAea::Line::front(), and impl_. Referenced by SLHAea::Coll::front(), and SLHAea::Coll::front(). ◆ front() [2/2]
Returns a read-only (constant) reference to the first element of the Block. Definition at line 1098 of file slhaea.h. References SLHAea::Line::front(), and impl_. ◆ insert() [1/2]
Inserts a Line before given
This function inserts a copy of Definition at line 1374 of file slhaea.h. References impl_. ◆ insert() [2/2]
template<class InputIterator >
Inserts a range into the Block.
This function inserts copies of the Lines in the range [ Definition at line 1388 of file slhaea.h. References impl_. ◆ ints_to_key()
◆ max_size()
◆ name() [1/2]
◆ name() [2/2]
Sets the name of the Block.
Notice that this function only changes a property of the Block. No contained Line (in particular no block definition) is changed. Definition at line 788 of file slhaea.h. References name_. Referenced by SLHAea::Coll::key_matches::operator()(), SLHAea::operator<(), SLHAea::operator==(), and flexiblesusy::SLHA_io::set_block(). ◆ operator[]() [1/4]Locates a Line in the Block.
This function takes a key (which is a vector of strings) and locates the Line whose first strings are equal to the strings in Definition at line 897 of file slhaea.h. References back(), end(), find(), and push_back(). ◆ operator[]() [2/4]
Locates a Line in the Block.
This function locates the Line whose first string is equal to ◆ operator[]() [3/4]
Locates a Line in the Block.
This function takes a key (which is a vector of ints) and locates the Line whose first strings are equal to the to strings converted ints in Definition at line 918 of file slhaea.h. References cont_to_key(). ◆ operator[]() [4/4]
Locates a Line in the Block.
This function locates the Line whose first string is equal to the to string converted Definition at line 945 of file slhaea.h. References SLHAea::to_string(). ◆ pop_back()
◆ push_back() [1/2]
◆ push_back() [2/2]
Adds a Line to the end of the Block.
This function creates an element at the end of the Block and assigns the given Definition at line 1341 of file slhaea.h. References impl_. Referenced by operator[](), SLHAea::Coll::push_back(), read(), and SLHAea::Coll::read(). ◆ rbegin() [1/2]
Returns a read/write reverse iterator that points to the last element in the Block. Iteration is done in reverse element order. Definition at line 1176 of file slhaea.h. References impl_. Referenced by erase_last(). ◆ rbegin() [2/2]
◆ read()
Assigns content from an input stream to the Block.
This function reads non-empty lines from Definition at line 824 of file slhaea.h. References SLHAea::Line::empty(), SLHAea::detail::is_all_whitespace(), SLHAea::Line::is_block_def(), name(), push_back(), and SLHAea::Line::str(). Referenced by Block(), SLHAea::operator>>(), and str(). ◆ reformat()
Reformats all Lines in the Block.
Definition at line 1508 of file slhaea.h. References begin(), end(), MEM_FN, and SLHAea::Line::reformat(). Referenced by SLHAea::Coll::reformat(). ◆ rename()
◆ rend() [1/2]
Returns a read/write reverse iterator that points to one before the first element in the Block. Iteration is done in reverse element order. Definition at line 1203 of file slhaea.h. References impl_. Referenced by erase_last(). ◆ rend() [2/2]
◆ size()
Returns the number of elements in the Block. Definition at line 1311 of file slhaea.h. References impl_. Referenced by SLHAea::operator==(). ◆ str() [1/2]
◆ str() [2/2]
Assigns content from a string to the Block.
This function clears the name and content of the Block and adds every non-empty line found in Definition at line 868 of file slhaea.h. References clear(), and read(). Referenced by SLHAea::Coll::push_back(), SLHAea::Coll::push_front(), and flexiblesusy::SLHA_io::set_block(). ◆ strings_to_key()
◆ swap()
◆ uncomment()
Uncomments all Lines in the Block.
Definition at line 1524 of file slhaea.h. References begin(), end(), MEM_FN, and SLHAea::Line::uncomment(). Referenced by SLHAea::Coll::uncomment(). Member Data Documentation◆ impl_
Definition at line 1596 of file slhaea.h. Referenced by back(), back(), begin(), begin(), cbegin(), cend(), clear(), crbegin(), crend(), empty(), end(), end(), erase(), erase(), front(), front(), insert(), insert(), max_size(), pop_back(), push_back(), push_back(), rbegin(), rbegin(), rend(), rend(), size(), and swap(). ◆ name_
◆ no_index_
Definition at line 1597 of file slhaea.h. Referenced by ints_to_key(). The documentation for this class was generated from the following file: Generated on Sun Apr 6 2025 11:10:38 for FlexibleSUSY by |