klee
|
#include <ImmutableTree.h>
Classes | |
class | iterator |
class | Node |
Public Types | |
typedef K | key_type |
typedef V | value_type |
typedef KOV | key_of_value |
typedef CMP | key_compare |
Public Member Functions | |
ImmutableTree () | |
ImmutableTree (const ImmutableTree &s) | |
~ImmutableTree () | |
ImmutableTree & | operator= (const ImmutableTree &s) |
bool | empty () const |
size_t | count (const key_type &key) const |
const value_type * | lookup (const key_type &key) const |
const value_type * | lookup_previous (const key_type &key) const |
const value_type & | min () const |
const value_type & | max () const |
size_t | size () const |
ImmutableTree | insert (const value_type &value) const |
ImmutableTree | replace (const value_type &value) const |
ImmutableTree | remove (const key_type &key) const |
ImmutableTree | popMin (value_type &valueOut) const |
ImmutableTree | popMax (value_type &valueOut) const |
iterator | begin () const |
iterator | end () const |
iterator | find (const key_type &key) const |
iterator | lower_bound (const key_type &key) const |
iterator | upper_bound (const key_type &key) const |
Static Public Member Functions | |
static size_t | getAllocated () |
Static Public Attributes | |
static size_t | allocated = 0 |
Private Member Functions | |
ImmutableTree (Node *_node) | |
Private Attributes | |
Node * | node |
Definition at line 18 of file ImmutableTree.h.
typedef CMP klee::ImmutableTree< K, V, KOV, CMP >::key_compare |
Definition at line 26 of file ImmutableTree.h.
typedef KOV klee::ImmutableTree< K, V, KOV, CMP >::key_of_value |
Definition at line 25 of file ImmutableTree.h.
typedef K klee::ImmutableTree< K, V, KOV, CMP >::key_type |
Definition at line 23 of file ImmutableTree.h.
typedef V klee::ImmutableTree< K, V, KOV, CMP >::value_type |
Definition at line 24 of file ImmutableTree.h.
klee::ImmutableTree< K, V, KOV, CMP >::ImmutableTree |
Definition at line 424 of file ImmutableTree.h.
klee::ImmutableTree< K, V, KOV, CMP >::ImmutableTree | ( | const ImmutableTree< K, V, KOV, CMP > & | s | ) |
Definition at line 434 of file ImmutableTree.h.
klee::ImmutableTree< K, V, KOV, CMP >::~ImmutableTree |
Definition at line 439 of file ImmutableTree.h.
|
private |
Definition at line 429 of file ImmutableTree.h.
|
inline |
Definition at line 563 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::begin(), and klee::ImmutableSet< T, CMP >::begin().
size_t klee::ImmutableTree< K, V, KOV, CMP >::count | ( | const key_type & | key | ) | const |
Definition at line 457 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::Node::left, klee::ImmutableTree< K, V, KOV, CMP >::Node::right, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::count(), and klee::ImmutableSet< T, CMP >::count().
bool klee::ImmutableTree< K, V, KOV, CMP >::empty |
Definition at line 452 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::empty(), and klee::ImmutableSet< T, CMP >::empty().
|
inline |
Definition at line 569 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::end(), and klee::ImmutableSet< T, CMP >::end().
|
inline |
Definition at line 575 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::find(), and klee::ImmutableSet< T, CMP >::find().
|
inlinestatic |
Definition at line 60 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::allocated.
ImmutableTree< K, V, KOV, CMP > klee::ImmutableTree< K, V, KOV, CMP >::insert | ( | const value_type & | value | ) | const |
Definition at line 533 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::insert(), and klee::ImmutableSet< T, CMP >::insert().
const ImmutableTree< K, V, KOV, CMP >::value_type * klee::ImmutableTree< K, V, KOV, CMP >::lookup | ( | const key_type & | key | ) | const |
Definition at line 474 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::Node::left, klee::ImmutableTree< K, V, KOV, CMP >::Node::right, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::lookup(), and klee::ImmutableSet< T, CMP >::lookup().
const ImmutableTree< K, V, KOV, CMP >::value_type * klee::ImmutableTree< K, V, KOV, CMP >::lookup_previous | ( | const key_type & | key | ) | const |
Definition at line 491 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::Node::left, klee::ImmutableTree< K, V, KOV, CMP >::Node::right, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::lookup_previous().
|
inline |
Definition at line 586 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::iterator::stack, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::lower_bound(), and klee::ImmutableSet< T, CMP >::lower_bound().
const ImmutableTree< K, V, KOV, CMP >::value_type & klee::ImmutableTree< K, V, KOV, CMP >::max |
Definition at line 519 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::Node::right, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::max(), and klee::ImmutableSet< T, CMP >::max().
const ImmutableTree< K, V, KOV, CMP >::value_type & klee::ImmutableTree< K, V, KOV, CMP >::min |
Definition at line 510 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::isTerminator(), klee::ImmutableTree< K, V, KOV, CMP >::Node::left, and klee::ImmutableTree< K, V, KOV, CMP >::Node::value.
Referenced by klee::ImmutableMap< K, D, CMP >::min(), klee::ImmutableSet< T, CMP >::min(), and klee::ImmutableTree< K, V, KOV, CMP >::Node::remove().
ImmutableTree< K, V, KOV, CMP > & klee::ImmutableTree< K, V, KOV, CMP >::operator= | ( | const ImmutableTree< K, V, KOV, CMP > & | s | ) |
Definition at line 444 of file ImmutableTree.h.
References klee::ImmutableTree< K, V, KOV, CMP >::Node::decref(), klee::ImmutableTree< K, V, KOV, CMP >::Node::incref(), and klee::ImmutableTree< K, V, KOV, CMP >::node.
ImmutableTree< K, V, KOV, CMP > klee::ImmutableTree< K, V, KOV, CMP >::popMax | ( | value_type & | valueOut | ) | const |
Definition at line 557 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::popMax(), and klee::ImmutableSet< T, CMP >::popMax().
ImmutableTree< K, V, KOV, CMP > klee::ImmutableTree< K, V, KOV, CMP >::popMin | ( | value_type & | valueOut | ) | const |
Definition at line 551 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::popMin(), and klee::ImmutableSet< T, CMP >::popMin().
ImmutableTree< K, V, KOV, CMP > klee::ImmutableTree< K, V, KOV, CMP >::remove | ( | const key_type & | key | ) | const |
Definition at line 545 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::remove(), and klee::ImmutableSet< T, CMP >::remove().
ImmutableTree< K, V, KOV, CMP > klee::ImmutableTree< K, V, KOV, CMP >::replace | ( | const value_type & | value | ) | const |
Definition at line 539 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::replace(), and klee::ImmutableSet< T, CMP >::replace().
size_t klee::ImmutableTree< K, V, KOV, CMP >::size |
Definition at line 527 of file ImmutableTree.h.
Referenced by klee::ImmutableSet< T, CMP >::size(), and klee::ImmutableMap< K, D, CMP >::size().
ImmutableTree< K, V, KOV, CMP >::iterator klee::ImmutableTree< K, V, KOV, CMP >::upper_bound | ( | const key_type & | key | ) | const |
Definition at line 610 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::upper_bound(), and klee::ImmutableSet< T, CMP >::upper_bound().
|
static |
Definition at line 20 of file ImmutableTree.h.
Referenced by klee::ImmutableMap< K, D, CMP >::getAllocated(), klee::ImmutableSet< T, CMP >::getAllocated(), klee::ImmutableTree< K, V, KOV, CMP >::getAllocated(), klee::ImmutableTree< K, V, KOV, CMP >::Node::Node(), and klee::ImmutableTree< K, V, KOV, CMP >::Node::~Node().
|
private |
Definition at line 65 of file ImmutableTree.h.
Referenced by klee::ImmutableTree< K, V, KOV, CMP >::operator=().