SNAP Library 4.0, Developer 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
Counter2D Class Reference

#include <temporalmotifs.h>

Collaboration diagram for Counter2D:

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.

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

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

Here is the call graph for this function:

Member Function Documentation

int Counter2D::m ( )
inline

Definition at line 37 of file temporalmotifs.h.

References m_.

Referenced by Counter2D().

37 { return m_; }

Here is the caller graph for this function:

int Counter2D::n ( )
inline

Definition at line 38 of file temporalmotifs.h.

References n_.

Referenced by Counter2D().

38 { return n_; }

Here is the caller graph for this function:

const TUInt64& Counter2D::operator() ( int  i,
int  j 
) const
inline

Definition at line 35 of file temporalmotifs.h.

References data_, and m_.

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

Definition at line 36 of file temporalmotifs.h.

References data_, and m_.

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

Member Data Documentation

TUInt64V Counter2D::data_
private

Definition at line 43 of file temporalmotifs.h.

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

int Counter2D::m_
private

Definition at line 41 of file temporalmotifs.h.

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

int Counter2D::n_
private

Definition at line 42 of file temporalmotifs.h.

Referenced by n().


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