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) |
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 65 of file SyncNode.h.
struct SyncBaseStruct* SyncNodeComposite::base [read] |
kind bits
Definition at line 67 of file SyncNode.h.
Referenced by SyncEndComposite(), SyncParseComposite(), and SyncStartNodeFetch().
reference count
Definition at line 68 of file SyncNode.h.
Referenced by SyncNodeDecRC(), SyncNodeIncRC(), and SyncResetComposite().
any error saved here
Definition at line 69 of file SyncNode.h.
Referenced by SyncCheckCompErr(), SyncParseComposite(), SyncResetComposite(), SyncSetCompErr(), and testGenComposite().
unsigned SyncNodeComposite::leafCount |
leaf count (includes this node)
Definition at line 70 of file SyncNode.h.
Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddName(), SyncNodeAddNode(), SyncParseComposite(), and SyncResetComposite().
unsigned SyncNodeComposite::treeDepth |
max tree depth (includes this node)
Definition at line 71 of file SyncNode.h.
Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddNode(), SyncParseComposite(), SyncResetComposite(), and UpdateAction().
unsigned SyncNodeComposite::byteCount |
byte count sum for child nodes (this node NOT included)
Definition at line 72 of file SyncNode.h.
Referenced by formatStats(), SyncEndComposite(), SyncNodeAddNode(), SyncParseComposite(), and SyncResetComposite().
number of references
Definition at line 74 of file SyncNode.h.
Referenced by doComparison(), doPreload(), printTreeInner(), SyncExtendComposite(), SyncResetComposite(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), and SyncTreeWorkerGetElem().
space allocated for references
Definition at line 75 of file SyncNode.h.
Referenced by SyncExtendComposite().
struct SyncNodeElem* SyncNodeComposite::refs [read] |
pointer to references array
Definition at line 76 of file SyncNode.h.
Referenced by doPreload(), printTreeInner(), SyncExtendComposite(), SyncFreeComposite(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), and SyncTreeWorkerGetElem().
struct ccn_charbuf* SyncNodeComposite::cb [read] |
pointer to ccnb encoding
Definition at line 77 of file SyncNode.h.
Referenced by formatStats(), newNodeCommon(), nodeFromNodes(), SyncCacheEntryStore(), SyncEndComposite(), SyncFreeComposite(), SyncInitDecoderFromElem(), SyncInitDecoderFromOffset(), SyncInterestArrived(), SyncNodeAddName(), SyncNodeAddNode(), SyncParseComposite(), SyncResetComposite(), SyncWriteComposite(), and testEncodeDecode().
struct SyncLongHashStruct SyncNodeComposite::longHash [read] |
space for accumulated hash
Definition at line 78 of file SyncNode.h.
Referenced by SyncEndComposite(), SyncNodeAddName(), SyncNodeAddNode(), SyncNodeAppendLongHash(), SyncParseComposite(), SyncResetComposite(), and UpdateAction().
struct ccn_charbuf* SyncNodeComposite::hash [read] |
combined hash (no tag, requires SyncEndComposite)
Definition at line 79 of file SyncNode.h.
Referenced by newNodeCommon(), nodeFromNodes(), printTreeInner(), SyncEndComposite(), SyncParseComposite(), and SyncResetComposite().
struct ccn_charbuf* SyncNodeComposite::minName [read] |
minimum name
Definition at line 80 of file SyncNode.h.
Referenced by doComparison(), SyncEndComposite(), SyncNodeAddNode(), SyncNodeCompareMinMax(), SyncNodeMaintainMinMax(), SyncParseComposite(), and SyncResetComposite().
struct ccn_charbuf* SyncNodeComposite::maxName [read] |
maximum name
Definition at line 81 of file SyncNode.h.
Referenced by doComparison(), SyncEndComposite(), SyncNodeAddNode(), SyncNodeCompareMinMax(), SyncNodeMaintainMinMax(), SyncParseComposite(), and SyncResetComposite().
struct ccn_charbuf* SyncNodeComposite::content [read] |
the signed content node (may be NULL)
Definition at line 82 of file SyncNode.h.
Referenced by SyncInterestArrived(), and SyncResetComposite().