yat
0.14.5pre
|
a map of Segments More...
#include <yat/utility/SegmentMap.h>
Public Types | |
typedef Tp | mapped_type |
mapped type | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::key_type | key_type |
key type is same as Container 's key_type . More... | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::value_type | value_type |
value type is same as Container 's value_type . More... | |
typedef key_type::value_type | element_type |
element type is same as key_type 's value_type. More... | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::key_compare | key_compare |
key compare | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::value_compare | value_compare |
value compare | |
typedef Compare | element_compare |
element compare | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::pointer | pointer |
pointer | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::reference | reference |
reference | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::const_reference | const_reference |
const reference | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::size_type | size_type |
size_type | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::difference_type | difference_type |
difference_type | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::iterator | iterator |
iterator | |
typedef std::map< Segment< T, Compare >, Tp, SegmentCompare < T, Compare > >::const_iterator | const_iterator |
const_iterator | |
Public Member Functions | |
SegmentMap (void) | |
creates a set with no segments | |
const_iterator | begin (void) const |
iterator | begin (void) |
void | clear (void) |
erases all values | |
size_type | count (const element_type &element) const |
bool | empty (void) const |
const_iterator | end (void) const |
iterator | end (void) |
void | erase (iterator first, iterator last) |
erase values in range [first, last) More... | |
void | erase (iterator pos) |
iterator | find (const element_type &element) |
const_iterator | find (const element_type &element) const |
std::pair< iterator, bool > | insert (const value_type &value) |
insert value More... | |
key_compare | key_comp (void) const |
iterator | lower_bound (const element_type &element) |
similar to lower_bound in std::set and std::map More... | |
const_iterator | lower_bound (const element_type &element) const |
similar to lower_bound in std::set and std::map More... | |
size_type | size (void) const |
iterator | upper_bound (const element_type &element) |
const_iterator | upper_bound (const element_type &element) const |
similar to upper_bound in std::set and std::map More... | |
value_compare | value_comp (void) const |
Protected Member Functions | |
std::pair< iterator, iterator > | overlap_range (const key_type &segment) |
Protected Attributes | |
std::map< Segment< T, Compare > , Tp, SegmentCompare< T, Compare > > | container_ |
underlying container | |
a map of Segments
A map with key Segment. The Segments cannot overlap.
|
inherited |
element type is same as key_type
's value_type.
If the key held is Segment<T>
, value_type
is T
.
|
inherited |
key type is same as Container
's key_type
.
Typically Segment<element_type>.
|
inherited |
value type is same as Container
's value_type
.
Typically a Segment<element_type> or pair<const Segment<element_type>, Data>.
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
true
if size is zero
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
erase values in range [first, last)
|
inlineinherited |
erase value pointed to by pos
|
inherited |
If no value contains element, end() is returned.
|
inherited |
|
inherited |
insert value
if value does not overlap with container, insert segment; otherwise do nothing.
|
inlineinherited |
|
inherited |
similar to lower_bound in std::set and std::map
|
inherited |
similar to lower_bound in std::set and std::map
|
inlineprotectedinherited |
pair.first first (smallest) segment that overlaps with segment and pair.second first (smallest) segment that does not overlap with segment.
|
inlineinherited |
|
inherited |
|
inherited |
similar to upper_bound in std::set and std::map
|
inlineinherited |
value_compare
object used by the class to sort values