SNAP Library 2.1, Developer Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
TSVec (int capacity) | |
bool | Contains (int nodeId) const |
void | Push (int nodeId) |
void | Pop () |
int | Capacity () const |
int | Size () const |
const TIntV & | getVec () const |
int | operator[] (int i) const |
Protected Attributes | |
int | m_capacity |
int | m_size |
int * | m_arr |
TIntV | m_v |
Definition at line 38 of file subgraphenum.h.
TSubGraphEnum< TGraphCounter >::TSVec::TSVec | ( | int | capacity | ) | [inline] |
Definition at line 45 of file subgraphenum.h.
References TVec< TVal, TSizeTy >::BegI(), TVec< TVal, TSizeTy >::Gen(), TSubGraphEnum< TGraphCounter >::TSVec::m_arr, TSubGraphEnum< TGraphCounter >::TSVec::m_capacity, TSubGraphEnum< TGraphCounter >::TSVec::m_size, and TSubGraphEnum< TGraphCounter >::TSVec::m_v.
{ m_v.Gen(capacity); m_arr = (int *) m_v.BegI(); for(int i=0; i<capacity; i++) { m_arr[i]=-1; } m_capacity = capacity; m_size = 0; }
int TSubGraphEnum< TGraphCounter >::TSVec::Capacity | ( | ) | const [inline] |
Definition at line 55 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_capacity.
{ return m_capacity; }
bool TSubGraphEnum< TGraphCounter >::TSVec::Contains | ( | int | nodeId | ) | const [inline] |
Definition at line 50 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_arr, and TSubGraphEnum< TGraphCounter >::TSVec::m_size.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
const TIntV& TSubGraphEnum< TGraphCounter >::TSVec::getVec | ( | ) | const [inline] |
Definition at line 57 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_v.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
{ return m_v; }
int TSubGraphEnum< TGraphCounter >::TSVec::operator[] | ( | int | i | ) | const [inline] |
Definition at line 58 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_arr.
{ return m_arr[i]; }
void TSubGraphEnum< TGraphCounter >::TSVec::Pop | ( | ) | [inline] |
Definition at line 54 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_arr, and TSubGraphEnum< TGraphCounter >::TSVec::m_size.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
void TSubGraphEnum< TGraphCounter >::TSVec::Push | ( | int | nodeId | ) | [inline] |
Definition at line 53 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_arr, and TSubGraphEnum< TGraphCounter >::TSVec::m_size.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs(), and TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
int TSubGraphEnum< TGraphCounter >::TSVec::Size | ( | ) | const [inline] |
Definition at line 56 of file subgraphenum.h.
References TSubGraphEnum< TGraphCounter >::TSVec::m_size.
Referenced by TSubGraphEnum< TGraphCounter >::GetSubGraphs_recursive().
{ return m_size; }
int* TSubGraphEnum< TGraphCounter >::TSVec::m_arr [protected] |
Definition at line 42 of file subgraphenum.h.
Referenced by TSubGraphEnum< TGraphCounter >::TSVec::Contains(), TSubGraphEnum< TGraphCounter >::TSVec::operator[](), TSubGraphEnum< TGraphCounter >::TSVec::Pop(), TSubGraphEnum< TGraphCounter >::TSVec::Push(), and TSubGraphEnum< TGraphCounter >::TSVec::TSVec().
int TSubGraphEnum< TGraphCounter >::TSVec::m_capacity [protected] |
Definition at line 40 of file subgraphenum.h.
Referenced by TSubGraphEnum< TGraphCounter >::TSVec::Capacity(), and TSubGraphEnum< TGraphCounter >::TSVec::TSVec().
int TSubGraphEnum< TGraphCounter >::TSVec::m_size [protected] |
Definition at line 41 of file subgraphenum.h.
Referenced by TSubGraphEnum< TGraphCounter >::TSVec::Contains(), TSubGraphEnum< TGraphCounter >::TSVec::Pop(), TSubGraphEnum< TGraphCounter >::TSVec::Push(), TSubGraphEnum< TGraphCounter >::TSVec::Size(), and TSubGraphEnum< TGraphCounter >::TSVec::TSVec().
TIntV TSubGraphEnum< TGraphCounter >::TSVec::m_v [protected] |
Definition at line 43 of file subgraphenum.h.
Referenced by TSubGraphEnum< TGraphCounter >::TSVec::getVec(), and TSubGraphEnum< TGraphCounter >::TSVec::TSVec().