ViennaGrid - The Vienna Grid Library
2.1.0
|
Defines a range of segment IDs which represents segments in which an element is included, use result_of::segment_id_range for defining this type. More...
#include <segmentation.hpp>
Public Types | |
typedef SegmentInfoT::const_iterator | const_iterator |
An iterator for iterating over all segment IDs. | |
typedef SegmentInfoT::const_iterator | iterator |
An iterator for iterating over all segment IDs. | |
Public Member Functions | |
iterator | begin () |
Returns an iterator pointing to the first segment ID. | |
const_iterator | begin () const |
Returns a const iterator pointing to the first segment ID, const version. | |
const_iterator | cbegin () |
Returns a const iterator pointing to the first segment ID. | |
const_iterator | cend () |
Returns a const iterator pointing to the end of the segment IDs. | |
bool | empty () const |
Returns if the segment id container is empty. | |
iterator | end () |
Returns an iterator pointing to the end of the segment IDs. | |
const_iterator | end () const |
Returns a const iterator pointing to the end of the segment IDs, const version. | |
std::size_t | is_equal (segment_id_range_t< SegmentInfoT > const &other) const |
Checks, if two segment id ranges are equal. | |
segment_id_range_t (SegmentInfoT &segment_info) | |
std::size_t | size () const |
Returns the number of segment ids. |
Defines a range of segment IDs which represents segments in which an element is included, use result_of::segment_id_range for defining this type.
SegmentInfoT | For internal use only |
typedef SegmentInfoT::const_iterator const_iterator |
An iterator for iterating over all segment IDs.
typedef SegmentInfoT::const_iterator iterator |
An iterator for iterating over all segment IDs.
segment_id_range_t | ( | SegmentInfoT & | segment_info | ) | [inline] |
Returns an iterator pointing to the first segment ID.
const_iterator begin | ( | ) | const [inline] |
Returns a const iterator pointing to the first segment ID, const version.
const_iterator cbegin | ( | ) | [inline] |
Returns a const iterator pointing to the first segment ID.
const_iterator cend | ( | ) | [inline] |
Returns a const iterator pointing to the end of the segment IDs.
bool empty | ( | ) | const [inline] |
Returns if the segment id container is empty.
Returns an iterator pointing to the end of the segment IDs.
const_iterator end | ( | ) | const [inline] |
Returns a const iterator pointing to the end of the segment IDs, const version.
std::size_t is_equal | ( | segment_id_range_t< SegmentInfoT > const & | other | ) | const [inline] |
Checks, if two segment id ranges are equal.
other | The other segment id range |
std::size_t size | ( | ) | const [inline] |
Returns the number of segment ids.