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

#include <temporalmotifs.h>

Public Member Functions

 Counter3D (int m=0, int n=0, int p=0)
 
const TUInt64operator() (int i, int j, int k) const
 
TUInt64operator() (int i, int j, int k)
 
int m ()
 
int n ()
 
int p ()
 

Private Attributes

int m_
 
int n_
 
int p_
 
TUInt64V data_
 

Detailed Description

Definition at line 46 of file temporalmotifs.h.

Constructor & Destructor Documentation

Counter3D::Counter3D ( int  m = 0,
int  n = 0,
int  p = 0 
)
inline

Definition at line 48 of file temporalmotifs.h.

48  : m_(m), n_(n), p_(p) {
49  if (m * n * p > 0) {
50  data_ = TUInt64V(m * n * p);
51  data_.PutAll(0);
52  }
53  }
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 Counter3D::m ( )
inline

Definition at line 60 of file temporalmotifs.h.

60 { return m_; }
int Counter3D::n ( )
inline

Definition at line 61 of file temporalmotifs.h.

61 { return n_; }
const TUInt64& Counter3D::operator() ( int  i,
int  j,
int  k 
) const
inline

Definition at line 54 of file temporalmotifs.h.

54  {
55  return data_[i + j * n_ + k * m_ * n_];
56  }
TUInt64V data_
TUInt64& Counter3D::operator() ( int  i,
int  j,
int  k 
)
inline

Definition at line 57 of file temporalmotifs.h.

57  {
58  return data_[i + j * m_ + k * m_ * n_];
59  }
TUInt64V data_
int Counter3D::p ( )
inline

Definition at line 62 of file temporalmotifs.h.

62 { return p_; }

Member Data Documentation

TUInt64V Counter3D::data_
private

Definition at line 68 of file temporalmotifs.h.

int Counter3D::m_
private

Definition at line 65 of file temporalmotifs.h.

int Counter3D::n_
private

Definition at line 66 of file temporalmotifs.h.

int Counter3D::p_
private

Definition at line 67 of file temporalmotifs.h.


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