A SyncNodeComposite object holds the necessary data for a sync tree node. More...
Data Fields | |
struct SyncBaseStruct * | base |
SyncNodeKind | kind |
kind bits | |
int | rc |
reference count | |
int | err |
any error saved here | |
unsigned | leafCount |
leaf count (includes this node) | |
unsigned | treeDepth |
max tree depth (includes this node) | |
unsigned | byteCount |
byte count sum for child nodes (this node NOT included) | |
int | refLen |
number of references | |
int | refLim |
space allocated for references | |
struct SyncNodeElem * | refs |
pointer to references array | |
struct ccn_charbuf * | cb |
pointer to ccnb encoding | |
struct SyncLongHashStruct | longHash |
space for accumulated hash | |
struct ccn_charbuf * | hash |
combined hash (no tag, requires SyncEndComposite) | |
struct ccn_charbuf * | minName |
minimum name | |
struct ccn_charbuf * | maxName |
maximum name | |
struct ccn_charbuf * | content |
the signed content node (may be NULL) |
A SyncNodeComposite object holds the necessary data for a sync tree node.
It is the instantiated version, and there are routines for converting to and from the ccnb encoded version, which has a very different format than the type presented here.
This type may be used while building a new node from components, and it may be used for a node representation parsed from an external ccnb encoding.
Definition at line 69 of file SyncNode.h.
Definition at line 70 of file SyncNode.h.
Referenced by SyncAllocComposite().
unsigned SyncNodeComposite::byteCount |
byte count sum for child nodes (this node NOT included)
Definition at line 76 of file SyncNode.h.
Referenced by formatStats(), SyncEndComposite(), SyncNodeAddNode(), SyncParseComposite(), and SyncResetComposite().
struct ccn_charbuf* SyncNodeComposite::cb |
pointer to ccnb encoding
Definition at line 81 of file SyncNode.h.
Referenced by formatStats(), newNodeCommon(), nodeFromNodes(), SyncCacheEntryStore(), SyncEndComposite(), SyncFreeComposite(), SyncInitDecoderFromElem(), SyncInitDecoderFromOffset(), SyncInterestArrived(), SyncNodeAddName(), SyncNodeAddNode(), SyncParseComposite(), SyncResetComposite(), SyncWriteComposite(), and testEncodeDecode().
the signed content node (may be NULL)
Definition at line 86 of file SyncNode.h.
Referenced by SyncInterestArrived(), and SyncResetComposite().
any error saved here
Definition at line 73 of file SyncNode.h.
Referenced by SyncCheckCompErr(), SyncParseComposite(), SyncResetComposite(), SyncSetCompErr(), and testGenComposite().
struct ccn_charbuf* SyncNodeComposite::hash |
combined hash (no tag, requires SyncEndComposite)
Definition at line 83 of file SyncNode.h.
Referenced by newNodeCommon(), nodeFromNodes(), printTreeInner(), SyncEndComposite(), SyncParseComposite(), and SyncResetComposite().
kind bits
Definition at line 71 of file SyncNode.h.
Referenced by ccns_send_root_advise_interest(), SyncEndComposite(), SyncParseComposite(), and SyncStartNodeFetch().
unsigned SyncNodeComposite::leafCount |
leaf count (includes this node)
Definition at line 74 of file SyncNode.h.
Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddName(), SyncNodeAddNode(), SyncParseComposite(), and SyncResetComposite().
space for accumulated hash
Definition at line 82 of file SyncNode.h.
Referenced by SyncEndComposite(), SyncNodeAddName(), SyncNodeAddNode(), SyncNodeAppendLongHash(), SyncParseComposite(), SyncResetComposite(), and UpdateAction().
maximum name
Definition at line 85 of file SyncNode.h.
Referenced by doComparison(), SyncEndComposite(), SyncNodeAddNode(), SyncNodeCompareMinMax(), SyncNodeMaintainMinMax(), SyncParseComposite(), and SyncResetComposite().
minimum name
Definition at line 84 of file SyncNode.h.
Referenced by doComparison(), SyncEndComposite(), SyncNodeAddNode(), SyncNodeCompareMinMax(), SyncNodeMaintainMinMax(), SyncParseComposite(), and SyncResetComposite().
reference count
Definition at line 72 of file SyncNode.h.
Referenced by SyncNodeDecRC(), SyncNodeIncRC(), and SyncResetComposite().
number of references
Definition at line 78 of file SyncNode.h.
Referenced by doComparison(), doPreload(), printTreeInner(), SyncExtendComposite(), SyncResetComposite(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), and SyncTreeWorkerGetElem().
space allocated for references
Definition at line 79 of file SyncNode.h.
Referenced by SyncExtendComposite().
struct SyncNodeElem* SyncNodeComposite::refs |
pointer to references array
Definition at line 80 of file SyncNode.h.
Referenced by doPreload(), printTreeInner(), SyncExtendComposite(), SyncFreeComposite(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), and SyncTreeWorkerGetElem().
unsigned SyncNodeComposite::treeDepth |
max tree depth (includes this node)
Definition at line 75 of file SyncNode.h.
Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddNode(), SyncParseComposite(), SyncResetComposite(), and UpdateAction().