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
Counter1D Class Reference

#include <temporalmotifs.h>

Collaboration diagram for Counter1D:

Public Member Functions

 Counter1D (int m=0)
 
const TUInt64operator() (int i) const
 
TUInt64operator() (int i)
 
int m ()
 

Private Attributes

int m_
 
TUInt64V data_
 

Detailed Description

Definition at line 10 of file temporalmotifs.h.

Constructor & Destructor Documentation

Counter1D::Counter1D ( int  m = 0)
inline

Definition at line 12 of file temporalmotifs.h.

References data_, m(), and TVec< TVal, TSizeTy >::PutAll().

12  : m_(m) {
13  if (m > 0) {
14  data_ = TUInt64V(m);
15  data_.PutAll(0);
16  }
17  }
TUInt64V data_
void PutAll(const TVal &Val)
Sets all elements of the vector to value Val.
Definition: ds.h:1229
TVec< TUInt64 > TUInt64V
Definition: ds.h:1595

Here is the call graph for this function:

Member Function Documentation

int Counter1D::m ( )
inline

Definition at line 20 of file temporalmotifs.h.

References m_.

Referenced by Counter1D().

20 { return m_; }

Here is the caller graph for this function:

const TUInt64& Counter1D::operator() ( int  i) const
inline

Definition at line 18 of file temporalmotifs.h.

References data_.

18 { return data_[i]; }
TUInt64V data_
TUInt64& Counter1D::operator() ( int  i)
inline

Definition at line 19 of file temporalmotifs.h.

References data_.

19 { return data_[i]; }
TUInt64V data_

Member Data Documentation

TUInt64V Counter1D::data_
private

Definition at line 24 of file temporalmotifs.h.

Referenced by Counter1D(), and operator()().

int Counter1D::m_
private

Definition at line 23 of file temporalmotifs.h.

Referenced by m().


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