SNAP Library 4.0, User Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
THitInfo Class Reference

#include <cascdynetinf.h>

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.

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
void THitInfo::DelKeywords ( )
inline

Definition at line 77 of file cascdynetinf.h.

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
bool THitInfo::operator< ( const THitInfo Hit) const
inline

Definition at line 15 of file cascnetinf.h.

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

Definition at line 79 of file cascdynetinf.h.

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

Definition at line 14 of file cascnetinf.h.

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

Definition at line 78 of file cascdynetinf.h.

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:1150
void Save(TSOut &SOut) const
Definition: ds.h:954
void Save(TSOut &SOut) const
Definition: dt.h:1399

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.

TFlt THitInfo::Tm

Definition at line 71 of file cascdynetinf.h.


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