SNAP Library 6.0, User 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>

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.

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

Member Function Documentation

int Counter1D::m ( )
inline

Definition at line 20 of file temporalmotifs.h.

20 { return m_; }
const TUInt64& Counter1D::operator() ( int  i) const
inline

Definition at line 18 of file temporalmotifs.h.

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

Definition at line 19 of file temporalmotifs.h.

19 { return data_[i]; }
TUInt64V data_

Member Data Documentation

TUInt64V Counter1D::data_
private

Definition at line 24 of file temporalmotifs.h.

int Counter1D::m_
private

Definition at line 23 of file temporalmotifs.h.


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