#include <unihashtree.h>
Inherited by UniConfTree< UniConfValueTree >, UniConfTree< UniMountTree >, and UniConfTree< UniWatchInfoTree >.
Collaboration diagram for UniHashTreeBase:
Public Member Functions | |
~UniHashTreeBase () | |
const UniConfKey & | key () const |
Returns the key field. | |
bool | haschildren () const |
Returns true if the node has children. | |
Protected Types | |
typedef WvScatterHash< UniHashTreeBase, UniConfKey, Accessor > | Container |
typedef UniHashTreeBaseComparator | BaseComparator |
Protected Member Functions | |
UniHashTreeBase (UniHashTreeBase *parent, const UniConfKey &key) | |
void | _setparent (UniHashTreeBase *parent) |
UniHashTreeBase * | _root () const |
UniConfKey | _fullkey (const UniHashTreeBase *ancestor=NULL) const |
UniHashTreeBase * | _find (const UniConfKey &key) const |
UniHashTreeBase * | _findchild (const UniConfKey &key) const |
Static Protected Member Functions | |
void | _recursivecompare (const UniHashTreeBase *a, const UniHashTreeBase *b, const UniHashTreeBaseComparator &comparator, void *userdata) |
Protected Attributes | |
UniConfKey | xkey |
UniHashTreeBase * | xparent |
Container * | xchildren |
Friends | |
class | Iter |
|
Definition at line 33 of file unihashtree.h. |
|
Definition at line 32 of file unihashtree.h. Referenced by ~UniHashTreeBase(). |
|
Definition at line 11 of file unihashtree.cc. |
|
Definition at line 23 of file unihashtree.cc. |
|
Definition at line 90 of file unihashtree.cc. References _findchild(), UniConfKey::Iter::next(), and UniConfKey::Iter::rewind(). |
|
Definition at line 104 of file unihashtree.cc. References UniConfKey::isempty(), and xchildren. Referenced by _find(). |
|
Definition at line 63 of file unihashtree.cc. References key(), UniConfKey::prepend(), and xparent. |
|
Definition at line 140 of file unihashtree.cc. References UniHashTreeBaseComparator. |
|
Definition at line 54 of file unihashtree.cc. References xparent. |
|
Definition at line 42 of file unihashtree.cc. |
|
Returns true if the node has children.
Definition at line 113 of file unihashtree.cc. References WvScatterHashBase::isempty(), and xchildren. Referenced by UniTempGen::haschildren(), UniMountTreeGen::haschildren(), UniMountTree::isessential(), and UniWatchInfoTree::isessential(). |
|
Returns the key field.
Definition at line 62 of file unihashtree.h. Referenced by _fullkey(), and UniHashTreeBase::Accessor::get_key(). |
|
Definition at line 59 of file unihashtree.h. |
|
the hash table of children Definition at line 34 of file unihashtree.h. Referenced by _findchild(), haschildren(), UniHashTreeBase(), and ~UniHashTreeBase(). |
|
the name of this entry Definition at line 23 of file unihashtree.h. |
|
the parent of this subtree Definition at line 24 of file unihashtree.h. Referenced by _fullkey(), _root(), _setparent(), UniHashTreeBase(), and ~UniHashTreeBase(). |