Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

UniHashTreeBase Class Reference

#include <unihashtree.h>

Inherited by UniConfTree< UniConfValueTree >, UniConfTree< UniMountTree >, and UniConfTree< UniWatchInfoTree >.

Collaboration diagram for UniHashTreeBase:

[legend]
List of all members.

Public Member Functions

 ~UniHashTreeBase ()
const UniConfKeykey () 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
UniHashTreeBasexparent
Containerxchildren

Friends

class Iter

Member Typedef Documentation

typedef UniHashTreeBaseComparator UniHashTreeBase::BaseComparator [protected]
 

Definition at line 33 of file unihashtree.h.

typedef WvScatterHash<UniHashTreeBase, UniConfKey, Accessor> UniHashTreeBase::Container [protected]
 

Definition at line 32 of file unihashtree.h.

Referenced by ~UniHashTreeBase().


Constructor & Destructor Documentation

UniHashTreeBase::UniHashTreeBase UniHashTreeBase parent,
const UniConfKey key
[protected]
 

Definition at line 11 of file unihashtree.cc.

References link(), xchildren, and xparent.

UniHashTreeBase::~UniHashTreeBase  ) 
 

Definition at line 23 of file unihashtree.cc.

References Container, unlink(), xchildren, and xparent.


Member Function Documentation

UniHashTreeBase * UniHashTreeBase::_find const UniConfKey key  )  const [protected]
 

Definition at line 90 of file unihashtree.cc.

References _findchild(), UniConfKey::Iter::next(), and UniConfKey::Iter::rewind().

UniHashTreeBase * UniHashTreeBase::_findchild const UniConfKey key  )  const [protected]
 

Definition at line 104 of file unihashtree.cc.

References UniConfKey::isempty(), and xchildren.

Referenced by _find().

UniConfKey UniHashTreeBase::_fullkey const UniHashTreeBase ancestor = NULL  )  const [protected]
 

Definition at line 63 of file unihashtree.cc.

References key(), UniConfKey::prepend(), and xparent.

void UniHashTreeBase::_recursivecompare const UniHashTreeBase a,
const UniHashTreeBase b,
const UniHashTreeBaseComparator comparator,
void *  userdata
[static, protected]
 

Definition at line 140 of file unihashtree.cc.

References UniHashTreeBaseComparator.

UniHashTreeBase * UniHashTreeBase::_root  )  const [protected]
 

Definition at line 54 of file unihashtree.cc.

References xparent.

void UniHashTreeBase::_setparent UniHashTreeBase parent  )  [protected]
 

Definition at line 42 of file unihashtree.cc.

References link(), unlink(), and xparent.

bool UniHashTreeBase::haschildren  )  const
 

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().

const UniConfKey& UniHashTreeBase::key  )  const [inline]
 

Returns the key field.

Definition at line 62 of file unihashtree.h.

Referenced by _fullkey(), and UniHashTreeBase::Accessor::get_key().


Friends And Related Function Documentation

friend class Iter [friend]
 

Definition at line 59 of file unihashtree.h.


Member Data Documentation

Container* UniHashTreeBase::xchildren [protected]
 

the hash table of children

Definition at line 34 of file unihashtree.h.

Referenced by _findchild(), haschildren(), UniHashTreeBase(), and ~UniHashTreeBase().

UniConfKey UniHashTreeBase::xkey [protected]
 

the name of this entry

Definition at line 23 of file unihashtree.h.

UniHashTreeBase* UniHashTreeBase::xparent [protected]
 

the parent of this subtree

Definition at line 24 of file unihashtree.h.

Referenced by _fullkey(), _root(), _setparent(), UniHashTreeBase(), and ~UniHashTreeBase().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 15:08:26 2004 for WvStreams by  doxygen 1.3.9.1