Sorted set of ranges. More...
#include <SMDS_ElementFactory.hxx>

Public Types | |
| typedef RANGE::attr_t | attr_t |
| typedef boost::container::flat_set< RANGE > | set_t |
| typedef set_t::const_iterator | set_iterator |
Public Member Functions | |
| _RangeSet () | |
| size_t | Size () const |
| Return a number of ranges. More... | |
| int & | First (set_iterator rangePtr) |
| Return a mutable _Range::my1st of a range pointed by an iterator. More... | |
| size_t | Size (set_iterator rangePtr) const |
| Return a number of elements in a range pointed by an iterator. More... | |
| bool | GetIndices (const attr_t theValue, TIndexRanges &theIndices, const attr_t *=0, const attr_t *=0) const |
| Return ranges of indices (from,to) of elements having a given value. More... | |
| attr_t | GetValue (int theIndex) const |
| Return value of an element attribute. More... | |
| attr_t | SetValue (int theIndex, attr_t theValue) |
| Change value of an element attribute. More... | |
Data Fields | |
| set_t | mySet |
Sorted set of ranges.
| typedef RANGE::attr_t _RangeSet< RANGE >::attr_t |
| typedef set_t::const_iterator _RangeSet< RANGE >::set_iterator |
| typedef boost::container::flat_set< RANGE > _RangeSet< RANGE >::set_t |
| _RangeSet< RANGE >::_RangeSet | ( | ) |
References _RangeSet< RANGE >::mySet.
| int & _RangeSet< RANGE >::First | ( | set_iterator | rangePtr | ) |
Return a mutable _Range::my1st of a range pointed by an iterator.
Referenced by _RangeSet< RANGE >::SetValue().
| bool _RangeSet< RANGE >::GetIndices | ( | const attr_t | theValue, |
| TIndexRanges & | theIndices, | ||
| const attr_t * | = 0, |
||
| const attr_t * | = 0 |
||
| ) | const |
Return ranges of indices (from,to) of elements having a given value.
References _RangeSet< RANGE >::mySet, and _RangeSet< RANGE >::Size().
Return value of an element attribute.
| [in] | theIndex | - element index |
References _RangeSet< RANGE >::mySet.
Referenced by SMDS_ElementChunk::GetShapeID().
Change value of an element attribute.
| [in] | theIndex | - element index |
| [in] | theValue | - attribute value |
References _RangeSet< RANGE >::First(), _RangeSet< RANGE >::mySet, and _RangeSet< RANGE >::Size().
Referenced by SMDS_ElementChunk::Free(), SMDS_ElementChunk::SetShapeID(), and SMDS_ElementChunk::UseElement().
Return a number of ranges.
References _RangeSet< RANGE >::mySet.
Referenced by SMDS_ElementChunk::Dump(), SMDS_ElementChunk::Free(), _RangeSet< RANGE >::GetIndices(), _RangeSet< RANGE >::SetValue(), and SMDS_ElementChunk::UseElement().
| size_t _RangeSet< RANGE >::Size | ( | set_iterator | rangePtr | ) | const |
Return a number of elements in a range pointed by an iterator.
References SMDS_ElementFactory::ChunkSize(), and _RangeSet< RANGE >::mySet.
Referenced by _RangeSet< RANGE >::_RangeSet(), SMDS_ElementChunk::Compact(), SMDS_ElementChunk::Dump(), _RangeSet< RANGE >::GetIndices(), SMDS_ElementChunk::GetUnusedID(), _RangeSet< RANGE >::GetValue(), _RangeSet< RANGE >::SetValue(), _RangeSet< RANGE >::Size(), and SMDS_ElementChunk::SMDS_ElementChunk().