WvStreams
|
Public Types | |
typedef wv::function< void(const UniConfChangeTree *, void *)> | Visitor |
typedef wv::function< void(const UniConfChangeTree *, void *)> | Visitor |
typedef wv::function< bool(const UniConfChangeTree *, const UniConfChangeTree *)> | Comparator |
typedef wv::function< bool(const UniConfChangeTree *, const UniConfChangeTree *)> | Comparator |
Public Member Functions | |
UniConfChangeTree (UniConfChangeTree *parent, const UniConfKey &key) | |
UniConfChangeTree * | parent () const |
Returns a pointer to the parent node, or NULL if there is none. | |
UniConfChangeTree * | parent () const |
Returns a pointer to the parent node, or NULL if there is none. | |
void | setparent (UniConfChangeTree *parent) |
Reparents this node. | |
void | setparent (UniConfChangeTree *parent) |
Reparents this node. | |
UniConfChangeTree * | root () const |
Returns a pointer to the root node of the tree. | |
UniConfChangeTree * | root () const |
Returns a pointer to the root node of the tree. | |
UniConfKey | fullkey (const UniConfChangeTree *ancestor=NULL) const |
Returns full path of this node relative to an ancestor. | |
UniConfKey | fullkey (const UniConfChangeTree *ancestor=NULL) const |
Returns full path of this node relative to an ancestor. | |
UniConfChangeTree * | find (const UniConfKey &key) const |
Finds the sub-node with the specified key. | |
UniConfChangeTree * | find (const UniConfKey &key) const |
Finds the sub-node with the specified key. | |
UniConfChangeTree * | findchild (const UniConfKey &key) const |
Finds the direct child node with the specified key. | |
UniConfChangeTree * | findchild (const UniConfKey &key) const |
Finds the direct child node with the specified key. | |
void | remove (const UniConfKey &key) |
Removes the node for the specified key from the tree and deletes it along with any of its children. | |
void | remove (const UniConfKey &key) |
Removes the node for the specified key from the tree and deletes it along with any of its children. | |
void | zap () |
Removes and deletes all children of this node. | |
void | zap () |
Removes and deletes all children of this node. | |
void | visit (const Visitor &visitor, void *userdata, bool preorder=true, bool postorder=false) const |
Performs a traversal on this tree using the specified visitor function and traversal type(s). | |
void | visit (const Visitor &visitor, void *userdata, bool preorder=true, bool postorder=false) const |
Performs a traversal on this tree using the specified visitor function and traversal type(s). | |
bool | compare (const UniConfChangeTree *other, const Comparator &comparator) |
Compares this tree with another using the specified comparator function. | |
bool | compare (const UniConfChangeTree *other, const Comparator &comparator) |
Compares this tree with another using the specified comparator function. | |
const UniConfKey & | key () const |
Returns the key field. | |
const UniConfKey & | key () const |
Returns the key field. | |
bool | haschildren () const |
Returns true if the node has children. | |
bool | haschildren () const |
Returns true if the node has children. | |
Public Attributes | |
changeMode | mode |
WvString | newvalue |
UniConfValueTree * | newtree |
bool | was_null_or_empty |
Protected Types | |
typedef WvScatterHash< UniHashTreeBase, UniConfKey, Accessor > | Container |
typedef WvScatterHash< UniHashTreeBase, UniConfKey, Accessor > | Container |
typedef UniHashTreeBaseVisitor | BaseVisitor |
typedef UniHashTreeBaseVisitor | BaseVisitor |
typedef UniHashTreeBaseComparator | BaseComparator |
typedef UniHashTreeBaseComparator | BaseComparator |
Protected Member Functions | |
UniConfKey | _fullkey (const UniHashTreeBase *ancestor=NULL) const |
UniConfKey | _fullkey (const UniHashTreeBase *ancestor=NULL) const |
UniHashTreeBase * | _find (const UniConfKey &key) const |
UniHashTreeBase * | _find (const UniConfKey &key) const |
UniHashTreeBase * | _findchild (const UniConfKey &key) const |
UniHashTreeBase * | _findchild (const UniConfKey &key) const |
Static Protected Member Functions | |
static bool | _recursivecompare (const UniHashTreeBase *a, const UniHashTreeBase *b, const UniHashTreeBaseComparator &comparator) |
static bool | _recursivecompare (const UniHashTreeBase *a, const UniHashTreeBase *b, const UniHashTreeBaseComparator &comparator) |
static void | _recursive_unsorted_visit (const UniHashTreeBase *a, const UniHashTreeBaseVisitor &visitor, void *userdata, bool preorder, bool postorder) |
static void | _recursive_unsorted_visit (const UniHashTreeBase *a, const UniHashTreeBaseVisitor &visitor, void *userdata, bool preorder, bool postorder) |
Protected Attributes | |
UniHashTreeBase * | xparent |
Container * | xchildren |
Definition at line 47 of file unitransactiongen.cc.
|
inherited |
Definition at line 27 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inherited |
Definition at line 27 of file include/uniconftree.h.
|
inherited |
Definition at line 28 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inherited |
Definition at line 28 of file include/uniconftree.h.
|
protectedinherited |
Definition at line 32 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
|
protectedinherited |
Definition at line 32 of file include/unihashtree.h.
|
protectedinherited |
Definition at line 33 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
|
protectedinherited |
Definition at line 33 of file include/unihashtree.h.
|
protectedinherited |
Definition at line 34 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
|
protectedinherited |
Definition at line 34 of file include/unihashtree.h.
|
inline |
Definition at line 61 of file unitransactiongen.cc.
|
inline |
Definition at line 65 of file unitransactiongen.cc.
|
inlineinherited |
Returns a pointer to the parent node, or NULL if there is none.
Definition at line 40 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Returns a pointer to the parent node, or NULL if there is none.
Definition at line 40 of file include/uniconftree.h.
|
inlineinherited |
Reparents this node.
Definition at line 44 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Reparents this node.
Definition at line 44 of file include/uniconftree.h.
|
inlineinherited |
Returns a pointer to the root node of the tree.
Definition at line 48 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Returns a pointer to the root node of the tree.
Definition at line 48 of file include/uniconftree.h.
|
inlineinherited |
Returns full path of this node relative to an ancestor.
If ancestor is NULL, returns the root.
Definition at line 55 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Returns full path of this node relative to an ancestor.
If ancestor is NULL, returns the root.
Definition at line 55 of file include/uniconftree.h.
|
inlineinherited |
Finds the sub-node with the specified key.
If key.isempty(), returns this node.
Definition at line 62 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Finds the sub-node with the specified key.
If key.isempty(), returns this node.
Definition at line 62 of file include/uniconftree.h.
|
inlineinherited |
Finds the direct child node with the specified key.
If key.numsegments() == 1, then performs the same task as find(key), but a little faster. Otherwise returns NULL.
Definition at line 71 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Finds the direct child node with the specified key.
If key.numsegments() == 1, then performs the same task as find(key), but a little faster. Otherwise returns NULL.
Definition at line 71 of file include/uniconftree.h.
|
inlineinherited |
Removes the node for the specified key from the tree and deletes it along with any of its children.
If the key is UniConfKey::EMPTY, deletes this object.
Definition at line 80 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Removes the node for the specified key from the tree and deletes it along with any of its children.
If the key is UniConfKey::EMPTY, deletes this object.
Definition at line 80 of file include/uniconftree.h.
|
inlineinherited |
Removes and deletes all children of this node.
Definition at line 84 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Removes and deletes all children of this node.
Definition at line 84 of file include/uniconftree.h.
|
inlineinherited |
Performs a traversal on this tree using the specified visitor function and traversal type(s).
"visitor" is the tree visitor function "userdata" is userdata for the tree visitor function
Definition at line 108 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Performs a traversal on this tree using the specified visitor function and traversal type(s).
"visitor" is the tree visitor function "userdata" is userdata for the tree visitor function
Definition at line 108 of file include/uniconftree.h.
|
inlineinherited |
Compares this tree with another using the specified comparator function.
Comparison of a subtree ends when the comparator returns false. "comparator" is the value compare function "userdata" is userdata for the compare function Returns: true if the comparison function returned true each time
Definition at line 124 of file debian/libwvstreams-dev/usr/include/wvstreams/uniconftree.h.
|
inlineinherited |
Compares this tree with another using the specified comparator function.
Comparison of a subtree ends when the comparator returns false. "comparator" is the value compare function "userdata" is userdata for the compare function Returns: true if the comparison function returned true each time
Definition at line 124 of file include/uniconftree.h.
|
inlineinherited |
Returns the key field.
Definition at line 40 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
Referenced by UniConfTree< Sub >::find(), UniConfTree< Sub >::findchild(), UniConfTree< Sub >::remove(), and UniTransactionGen::setv().
|
inlineinherited |
Returns the key field.
Definition at line 40 of file include/unihashtree.h.
|
inherited |
Returns true if the node has children.
Definition at line 114 of file unihashtree.cc.
References UniHashTreeBase::xchildren.
Referenced by UniTempGen::haschildren(), and UniWatchInfoTree::isessential().
|
protectedinherited |
Definition at line 63 of file unihashtree.cc.
|
protectedinherited |
Definition at line 90 of file unihashtree.cc.
|
protectedinherited |
Definition at line 105 of file unihashtree.cc.
|
staticprotectedinherited |
Definition at line 163 of file unihashtree.cc.
|
staticprotectedinherited |
Definition at line 148 of file unihashtree.cc.
changeMode UniConfChangeTree::mode |
Definition at line 50 of file unitransactiongen.cc.
WvString UniConfChangeTree::newvalue |
Definition at line 56 of file unitransactiongen.cc.
UniConfValueTree* UniConfChangeTree::newtree |
Definition at line 57 of file unitransactiongen.cc.
bool UniConfChangeTree::was_null_or_empty |
Definition at line 58 of file unitransactiongen.cc.
|
protectedinherited |
the parent of this subtree
Definition at line 62 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
Referenced by UniConfTree< Sub >::parent().
|
protectedinherited |
the hash table of children
Definition at line 63 of file debian/libwvstreams-dev/usr/include/wvstreams/unihashtree.h.
Referenced by UniHashTreeBase::haschildren(), and UniConfTree< Sub >::zap().