SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TTree< TVal > Class Template Reference

List of all members.

Public Member Functions

 TTree ()
 TTree (const TTree &Tree)
 TTree (TSIn &SIn)
void Save (TSOut &SOut) const
void LoadXml (const PXmlTok &XmlTok, const TStr &Nm="")
void SaveXml (TSOut &SOut, const TStr &Nm) const
TTreeoperator= (const TTree &Tree)
bool operator== (const TTree &Tree) const
bool operator< (const TTree &Tree) const
int GetPrimHashCd () const
int GetSecHashCd () const
int GetMemUsed () const
void Clr ()
int AddNode (const int &ParentNodeId, const TVal &NodeVal=TVal())
int AddRoot (const TVal &NodeVal=TVal())
int GetNodes () const
void GetNodeIdV (TIntV &NodeIdV, const int &NodeId=0)
int GetParentNodeId (const int &NodeId) const
int GetChildren (const int &NodeId) const
int GetChildNodeId (const int &NodeId, const int &ChildN) const
TVal & GetNodeVal (const int &NodeId)
void GenRandomTree (const int &Nodes, TRnd &Rnd=TRnd())
void DelNode (const int &NodeId)
void CopyTree (const int &SrcNodeId, TTree &DstTree, const int &DstParentNodeId=-1)
void WrTree (const int &NodeId=0, const int &Lev=0)

template<class TVal>
class TTree< TVal >


Constructor & Destructor Documentation

template<class TVal >
TTree< TVal >::TTree ( ) [inline]
template<class TVal >
TTree< TVal >::TTree ( const TTree< TVal > &  Tree) [inline]
template<class TVal >
TTree< TVal >::TTree ( TSIn SIn) [inline, explicit]

Member Function Documentation

template<class TVal >
int TTree< TVal >::AddNode ( const int &  ParentNodeId,
const TVal &  NodeVal = TVal() 
) [inline]
template<class TVal >
int TTree< TVal >::AddRoot ( const TVal &  NodeVal = TVal()) [inline]
template<class TVal >
void TTree< TVal >::Clr ( ) [inline]
template<class TVal >
void TTree< TVal >::CopyTree ( const int &  SrcNodeId,
TTree< TVal > &  DstTree,
const int &  DstParentNodeId = -1 
)
template<class TVal >
void TTree< TVal >::DelNode ( const int &  NodeId)
template<class TVal >
void TTree< TVal >::GenRandomTree ( const int &  Nodes,
TRnd Rnd = TRnd() 
)
template<class TVal >
int TTree< TVal >::GetChildNodeId ( const int &  NodeId,
const int &  ChildN 
) const [inline]
template<class TVal >
int TTree< TVal >::GetChildren ( const int &  NodeId) const [inline]
template<class TVal >
int TTree< TVal >::GetMemUsed ( ) const [inline]
template<class TVal >
void TTree< TVal >::GetNodeIdV ( TIntV NodeIdV,
const int &  NodeId = 0 
)
template<class TVal >
int TTree< TVal >::GetNodes ( ) const [inline]
template<class TVal >
TVal& TTree< TVal >::GetNodeVal ( const int &  NodeId) [inline]
template<class TVal >
int TTree< TVal >::GetParentNodeId ( const int &  NodeId) const [inline]
template<class TVal >
int TTree< TVal >::GetPrimHashCd ( ) const [inline]
template<class TVal >
int TTree< TVal >::GetSecHashCd ( ) const [inline]
template<class TVal >
void TTree< TVal >::LoadXml ( const PXmlTok &  XmlTok,
const TStr Nm = "" 
)
template<class TVal >
bool TTree< TVal >::operator< ( const TTree< TVal > &  Tree) const [inline]
template<class TVal >
TTree& TTree< TVal >::operator= ( const TTree< TVal > &  Tree) [inline]
template<class TVal >
bool TTree< TVal >::operator== ( const TTree< TVal > &  Tree) const [inline]
template<class TVal >
void TTree< TVal >::Save ( TSOut SOut) const [inline]
template<class TVal >
void TTree< TVal >::SaveXml ( TSOut SOut,
const TStr Nm 
) const
template<class TVal >
void TTree< TVal >::WrTree ( const int &  NodeId = 0,
const int &  Lev = 0 
)

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