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

#include <temporalmotifs.h>

Public Member Functions

 Counter2D (int m=0, int n=0)
 
const TUInt64operator() (int i, int j) const
 
TUInt64operator() (int i, int j)
 
int m ()
 
int n ()
 

Private Attributes

int m_
 
int n_
 
TUInt64V data_
 

Detailed Description

Definition at line 27 of file temporalmotifs.h.

Constructor & Destructor Documentation

Counter2D::Counter2D ( int  m = 0,
int  n = 0 
)
inline

Definition at line 29 of file temporalmotifs.h.

29  : m_(m), n_(n) {
30  if (m * n > 0) {
31  data_ = TUInt64V(m * n);
32  data_.PutAll(0);
33  }
34  }
void PutAll(const TVal &Val)
Sets all elements of the vector to value Val.
Definition: ds.h:1229
TUInt64V data_
TVec< TUInt64 > TUInt64V
Definition: ds.h:1595

Member Function Documentation

int Counter2D::m ( )
inline

Definition at line 37 of file temporalmotifs.h.

37 { return m_; }
int Counter2D::n ( )
inline

Definition at line 38 of file temporalmotifs.h.

38 { return n_; }
const TUInt64& Counter2D::operator() ( int  i,
int  j 
) const
inline

Definition at line 35 of file temporalmotifs.h.

35 { return data_[i + j * m_]; }
TUInt64V data_
TUInt64& Counter2D::operator() ( int  i,
int  j 
)
inline

Definition at line 36 of file temporalmotifs.h.

36 { return data_[i + j * m_]; }
TUInt64V data_

Member Data Documentation

TUInt64V Counter2D::data_
private

Definition at line 43 of file temporalmotifs.h.

int Counter2D::m_
private

Definition at line 41 of file temporalmotifs.h.

int Counter2D::n_
private

Definition at line 42 of file temporalmotifs.h.


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