Public Types |
Public Member Functions |
Private Types |
Private Member Functions |
Static Private Member Functions |
Private Attributes |
Static Private Attributes |
List of all members
SLHAea::Line Class Reference
Collaboration diagram for SLHAea::Line:
![]()
Detailed DescriptionContainer of strings that represents a line in a SLHA structure. This class is a container of strings that represents a line in a SLHA structure. The elements of a Line are the so called fields of an ordinary SLHA line, which are its whitespace-separated substrings and the comment. For example, if a Line is constructed from the string In addition to storing the fields of a SLHA line, a Line also stores its formatting (the exact position of the fields in the line). A formatted representation of a Line can be produced with str() const. The reformat() function clears the previous formatting and indents all elements with an appropriate number of spaces. Member Typedef Documentation◆ const_iterator
◆ const_pointer
◆ const_reference
◆ const_reverse_iterator
◆ difference_type
◆ impl_type
◆ iterator
◆ pointer
◆ reference
◆ reverse_iterator
◆ size_type
◆ value_type
Constructor & Destructor Documentation◆ Line() [1/2]◆ Line() [2/2]
Member Function Documentation◆ append()
Appends a string to the end of the Line.
This function appends Definition at line 250 of file slhaea.h. References str(). Referenced by operator+=(). ◆ at() [1/2]Provides access to the strings contained in the Line.
Definition at line 356 of file slhaea.h. References impl_. Referenced by SLHAea::Coll::field(), and SLHAea::Coll::field(). ◆ at() [2/2]
◆ back() [1/2]
Returns a read/write reference to the last element of the Line. Definition at line 388 of file slhaea.h. References impl_. Referenced by SLHAea::Block::back(), SLHAea::Block::back(), and operator<<(). ◆ back() [2/2]
◆ begin() [1/2]
Returns a read/write iterator that points to the first element in the Line. Iteration is done in ordinary element order. Definition at line 405 of file slhaea.h. References impl_. Referenced by data_size(), is_block_def(), SLHAea::Block::key_matches::operator()(), SLHAea::operator<(), SLHAea::operator==(), reformat(), and str(). ◆ begin() [2/2]
◆ calc_spaces_for_indent()
Definition at line 649 of file slhaea.h. References min_width_, and shift_width_. Referenced by reformat(). ◆ cbegin()
◆ cend()
◆ clear()
◆ comment()
Comments the Line. This function prefixes the Line with a Definition at line 625 of file slhaea.h. References empty(), and str(). Referenced by SLHAea::Block::comment(). ◆ contains_comment()
Definition at line 645 of file slhaea.h. References is_comment(), rbegin(), and rend(). Referenced by operator<<(). ◆ crbegin()
◆ crend()
◆ data_size()
Returns the number of elements without the comment in the Line. Definition at line 543 of file slhaea.h. References begin(), end(), and is_comment(). ◆ empty()
Returns true if the Line is empty. Definition at line 553 of file slhaea.h. References impl_. Referenced by comment(), is_comment_line(), is_data_line(), SLHAea::Block::read(), reformat(), str(), and uncomment(). ◆ end() [1/2]
Returns a read/write iterator that points one past the last element in the Line. Iteration is done in ordinary element order. Definition at line 432 of file slhaea.h. References impl_. Referenced by data_size(), SLHAea::operator<(), SLHAea::operator==(), reformat(), and str(). ◆ end() [2/2]
◆ front() [1/2]
Returns a read/write reference to the first element of the Line. Definition at line 373 of file slhaea.h. References impl_. Referenced by SLHAea::Block::front(), SLHAea::Block::front(), is_comment_line(), is_data_line(), and uncomment(). ◆ front() [2/2]
◆ insert_fundamental_type()
template<class T >
Definition at line 671 of file slhaea.h. References SLHAea::to_string(). ◆ is_block_def()
Returns true if the Line begins with Definition at line 512 of file slhaea.h. References begin(), is_block_specifier(), is_comment(), and size(). Referenced by SLHAea::Block::find_block_def(), SLHAea::Block::find_block_def(), SLHAea::operator<(), SLHAea::Block::read(), SLHAea::Coll::read(), and flexiblesusy::detail::read_scale(). ◆ is_block_specifier()
Definition at line 657 of file slhaea.h. References SLHAea::detail::to_upper_copy(). Referenced by is_block_def(), is_data_line(), and reformat(). ◆ is_comment()
Definition at line 667 of file slhaea.h. Referenced by contains_comment(), data_size(), is_block_def(), is_comment_line(), is_data_line(), reformat(), and uncomment(). ◆ is_comment_line()
Returns true if the Line begins with Definition at line 522 of file slhaea.h. References empty(), front(), and is_comment(). ◆ is_data_line()
Returns true if the Line is not empty and if it does not begin with Definition at line 530 of file slhaea.h. References empty(), front(), is_block_specifier(), and is_comment(). Referenced by SLHAea::Block::data_size(). ◆ max_size()
◆ operator+=()
◆ operator<<()
template<class T >
Inserts an element at the end of the Line.
This function inserts an element at the end of the Line. If the the Line contains a comment, Definition at line 222 of file slhaea.h. References back(), contains_comment(), impl_, reformat(), SLHAea::to_string(), SLHAea::detail::trim_left(), and SLHAea::detail::trim_right(). ◆ operator=()
◆ operator[]() [1/2]Subscript access to the strings contained in the Line.
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined. (For checked lookups see at().) Definition at line 333 of file slhaea.h. References impl_. ◆ operator[]() [2/2]
Subscript access to the strings contained in the Line.
This operator allows for easy, array-style, data access. Note that data access with this operator is unchecked and out_of_range lookups are not defined. (For checked lookups see at().) Definition at line 346 of file slhaea.h. References impl_. ◆ rbegin() [1/2]
Returns a read/write reverse iterator that points to the last element in the Line. Iteration is done in reverse element order. Definition at line 458 of file slhaea.h. References impl_. Referenced by contains_comment(). ◆ rbegin() [2/2]
◆ reformat()
Reformats the string representation of the Line. Definition at line 578 of file slhaea.h. References begin(), calc_spaces_for_indent(), columns_, empty(), end(), is_block_specifier(), is_comment(), shift_width_, and starts_with_sign(). Referenced by operator<<(), and SLHAea::Block::reformat(). ◆ rend() [1/2]
Returns a read/write reverse iterator that points to one before the first element in the Line. Iteration is done in reverse element order. Definition at line 485 of file slhaea.h. References impl_. Referenced by contains_comment(). ◆ rend() [2/2]
◆ size()
Returns the number of elements in the Line. Definition at line 536 of file slhaea.h. References impl_. Referenced by is_block_def(), SLHAea::Block::key_matches::operator()(), SLHAea::operator==(), and flexiblesusy::detail::read_scale(). ◆ starts_with_sign()
Definition at line 678 of file slhaea.h. Referenced by reformat(). ◆ str() [1/2]
◆ str() [2/2]
Assigns content to the Line based on a string.
This function parses The exact formatting of Definition at line 269 of file slhaea.h. References clear(), columns_, data, and impl_. Referenced by SLHAea::operator<<(), SLHAea::operator==(), SLHAea::Block::read(), and SLHAea::Coll::read(). ◆ swap()
◆ uncomment()
Uncomments the Line. This function removes the first character of the Line if it is a Definition at line 634 of file slhaea.h. References empty(), front(), is_comment(), and str(). Referenced by SLHAea::Block::uncomment(). Member Data Documentation◆ columns_
◆ impl_
Definition at line 682 of file slhaea.h. Referenced by at(), at(), back(), back(), begin(), begin(), cbegin(), cend(), clear(), crbegin(), crend(), empty(), end(), end(), front(), front(), max_size(), operator<<(), operator[](), operator[](), rbegin(), rbegin(), rend(), rend(), size(), str(), and swap(). ◆ min_width_
Definition at line 686 of file slhaea.h. Referenced by calc_spaces_for_indent(). ◆ shift_width_
Definition at line 685 of file slhaea.h. Referenced by calc_spaces_for_indent(), and reformat(). The documentation for this class was generated from the following file: Generated on Sun Apr 6 2025 11:10:38 for FlexibleSUSY by |