m2etis
0.4
|
SegmentTree handles integer values and stores segments of set values e.g. inserting values 2, 3 and 4 results in a segment [2,4]. More...
#include <SegmentTree.h>
Public Member Functions | |
SegmentTree () | |
~SegmentTree () | |
void | insert (const T &value) |
inserts a value into the tree More... | |
bool | contains (const T &value) |
returns whether value is stored in the tree or not More... | |
size_t | size () const |
returns the amount of segments, is always <= count() More... | |
size_t | count () const |
returns the amount of stored elements More... | |
SegmentTree handles integer values and stores segments of set values e.g. inserting values 2, 3 and 4 results in a segment [2,4].
Definition at line 37 of file SegmentTree.h.
|
inline |
Definition at line 39 of file SegmentTree.h.
|
inline |
Definition at line 42 of file SegmentTree.h.
|
inline |
returns whether value is stored in the tree or not
Definition at line 94 of file SegmentTree.h.
|
inline |
returns the amount of stored elements
Definition at line 122 of file SegmentTree.h.
|
inline |
inserts a value into the tree
Definition at line 49 of file SegmentTree.h.
|
inline |
returns the amount of segments, is always <= count()
Definition at line 115 of file SegmentTree.h.