SyncNodeComposite Struct Reference

A SyncNodeComposite object holds the necessary data for a sync tree node. More...


Data Fields

struct SyncBaseStructbase
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 SyncNodeElemrefs
 pointer to references array
struct ccn_charbufcb
 pointer to ccnb encoding
struct SyncLongHashStruct longHash
 space for accumulated hash
struct ccn_charbufhash
 combined hash (no tag, requires SyncEndComposite)
struct ccn_charbufminName
 minimum name
struct ccn_charbufmaxName
 maximum name
struct ccn_charbufcontent
 the signed content node (may be NULL)


Detailed Description

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 65 of file SyncNode.h.


Field Documentation

Definition at line 66 of file SyncNode.h.

Referenced by SyncAllocComposite().

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

leaf count (includes this node)

Definition at line 70 of file SyncNode.h.

Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddName(), SyncNodeAddNode(), SyncParseComposite(), and SyncResetComposite().

max tree depth (includes this node)

Definition at line 71 of file SyncNode.h.

Referenced by formatStats(), printTreeInner(), SyncEndComposite(), SyncNodeAddNode(), SyncParseComposite(), SyncResetComposite(), and UpdateAction().

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

space allocated for references

Definition at line 75 of file SyncNode.h.

Referenced by SyncExtendComposite().

combined hash (no tag, requires SyncEndComposite)

Definition at line 79 of file SyncNode.h.

Referenced by newNodeCommon(), nodeFromNodes(), printTreeInner(), SyncEndComposite(), SyncParseComposite(), and SyncResetComposite().

the signed content node (may be NULL)

Definition at line 82 of file SyncNode.h.

Referenced by SyncInterestArrived(), and SyncResetComposite().


The documentation for this struct was generated from the following file:

Generated on Thu Feb 16 00:44:37 2012 for Content-Centric Networking in C by  doxygen 1.5.6