Binary tree. More...
#include <BTree.h>
Classes | |
| class | const_iterator |
| Const iterator Not trivial: iterator keeps a stack to indicate current path from root_. More... | |
| struct | Node |
Public Types | |
| typedef const_iterator | iterator |
| typedef std::pair< KEY, VALUE > | value_type |
Public Member Functions | |
| BTree | add (const value_type &xd) const |
| BTree | add (const KEY &x, const VALUE &d) const |
| const_iterator | begin () const |
| BTree () | |
| BTree (const BTree &other) | |
| BTree (const value_type &keyValue) | |
| BTree (const BTree &l, const value_type &keyValue, const BTree &r) | |
| bool | empty () const |
| const_iterator | end () const |
| const VALUE & | find (const KEY &k) const |
| template<class ACC > | |
| ACC | fold (std::function< ACC(const KEY &, const VALUE &, const ACC &)> f, const ACC &a) const |
| size_t | height () const |
| void | iter (std::function< void(const KEY &, const VALUE &)> f) const |
| template<class TO > | |
| BTree< KEY, TO > | map (std::function< TO(const KEY &, const VALUE &)> f) const |
| bool | mem (const KEY &x) const |
| const value_type & | min () const |
| bool | operator!= (const BTree &other) const |
| BTree & | operator= (const BTree &other) |
| bool | operator== (const BTree &other) const |
| void | print (const std::string &s="") const |
| BTree | remove (const KEY &x) const |
| BTree | remove_min () const |
| bool | same (const BTree &other) const |
| size_t | size () const |
Static Public Member Functions | |
| static BTree | merge (const BTree &t1, const BTree &t2) |
Private Types | |
| typedef std::shared_ptr< const Node > | sharedNode |
Private Member Functions | |
| const KEY & | key () const |
| const value_type & | keyValue () const |
| const BTree & | left () const |
| const BTree & | right () const |
| const VALUE & | value () const |
Static Private Member Functions | |
| static BTree | balance (const BTree &l, const value_type &xd, const BTree &r) |
Private Attributes | |
| sharedNode | root_ |
Binary tree.
| typedef const_iterator gtsam::BTree< KEY, VALUE >::iterator |
|
private |
| typedef std::pair<KEY, VALUE> gtsam::BTree< KEY, VALUE >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
private |