SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
THitInfo Class Reference

#include <cascdynetinf.h>

Collaboration diagram for THitInfo:

Public Member Functions

 THitInfo (const int &NodeId=-1, const double &HitTime=0)
 
 THitInfo (TSIn &SIn)
 
void AddKeyword (const int &KId)
 
void DelKeywords ()
 
void Save (TSOut &SOut) const
 
bool operator< (const THitInfo &Hit) const
 
 THitInfo (const int &NodeId=-1, const double &HitTime=0)
 
 THitInfo (TSIn &SIn)
 
void Save (TSOut &SOut) const
 
bool operator< (const THitInfo &Hit) const
 

Public Attributes

TInt NId
 
TFlt Tm
 
TIntV Keywords
 
TInt Parent
 

Detailed Description

Definition at line 68 of file cascdynetinf.h.

Constructor & Destructor Documentation

THitInfo::THitInfo ( const int &  NodeId = -1,
const double &  HitTime = 0 
)
inline

Definition at line 74 of file cascdynetinf.h.

74 : NId(NodeId), Tm(HitTime) { }
TInt NId
Definition: cascdynetinf.h:70
THitInfo::THitInfo ( TSIn SIn)
inline

Definition at line 75 of file cascdynetinf.h.

75 : NId(SIn), Tm(SIn), Keywords(SIn) { }
TIntV Keywords
Definition: cascdynetinf.h:72
TInt NId
Definition: cascdynetinf.h:70
THitInfo::THitInfo ( const int &  NodeId = -1,
const double &  HitTime = 0 
)
inline

Definition at line 12 of file cascnetinf.h.

12 : NId(NodeId), Parent(-1), Tm(HitTime) { }
TInt NId
Definition: cascdynetinf.h:70
TInt Parent
Definition: cascnetinf.h:9
THitInfo::THitInfo ( TSIn SIn)
inline

Definition at line 13 of file cascnetinf.h.

13 : NId(SIn), Parent(SIn), Tm(SIn) { }
TInt NId
Definition: cascdynetinf.h:70
TInt Parent
Definition: cascnetinf.h:9

Member Function Documentation

void THitInfo::AddKeyword ( const int &  KId)
inline

Definition at line 76 of file cascdynetinf.h.

References TVec< TVal, TSizeTy >::AddUnique().

76 { Keywords.AddUnique(KId); }
TSizeTy AddUnique(const TVal &Val)
Adds element Val to a vector only if the element Val is not already in the vector.
Definition: ds.h:1162
TIntV Keywords
Definition: cascdynetinf.h:72

Here is the call graph for this function:

void THitInfo::DelKeywords ( )
inline

Definition at line 77 of file cascdynetinf.h.

References TVec< TVal, TSizeTy >::Clr().

77 { Keywords.Clr(); }
TIntV Keywords
Definition: cascdynetinf.h:72
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
Definition: ds.h:1022

Here is the call graph for this function:

bool THitInfo::operator< ( const THitInfo Hit) const
inline

Definition at line 15 of file cascnetinf.h.

References Tm.

15  {
16  return Tm < Hit.Tm; }
bool THitInfo::operator< ( const THitInfo Hit) const
inline

Definition at line 79 of file cascdynetinf.h.

References Tm.

79  {
80  return Tm < Hit.Tm; }
void THitInfo::Save ( TSOut SOut) const
inline

Definition at line 14 of file cascnetinf.h.

References TInt::Save(), and TFlt::Save().

14 { NId.Save(SOut); Parent.Save(SOut); Tm.Save(SOut); }
TInt NId
Definition: cascdynetinf.h:70
void Save(TSOut &SOut) const
Definition: dt.h:1153
TInt Parent
Definition: cascnetinf.h:9
void Save(TSOut &SOut) const
Definition: dt.h:1402

Here is the call graph for this function:

void THitInfo::Save ( TSOut SOut) const
inline

Definition at line 78 of file cascdynetinf.h.

References TVec< TVal, TSizeTy >::Save(), TInt::Save(), and TFlt::Save().

78 { NId.Save(SOut); Tm.Save(SOut); Keywords.Save(SOut); }
TIntV Keywords
Definition: cascdynetinf.h:72
TInt NId
Definition: cascdynetinf.h:70
void Save(TSOut &SOut) const
Definition: dt.h:1153
void Save(TSOut &SOut) const
Definition: ds.h:954
void Save(TSOut &SOut) const
Definition: dt.h:1402

Here is the call graph for this function:

Member Data Documentation

TIntV THitInfo::Keywords

Definition at line 72 of file cascdynetinf.h.

TInt THitInfo::NId

Definition at line 70 of file cascdynetinf.h.

TInt THitInfo::Parent

Definition at line 9 of file cascnetinf.h.

Referenced by TCascade::GetParent(), TCascade::GetProb(), and TCascade::UpdateProb().

TFlt THitInfo::Tm

Definition at line 71 of file cascdynetinf.h.

Referenced by TCascade::GetTm(), and operator<().


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