SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
TSSet (int capacity) | |
TSSet (const TSSet &set) | |
~TSSet () | |
void | Add (int i) |
void | Remove (int i) |
bool | IsKey (int i) const |
int | Capacity () const |
int | Size () const |
bool | operator[] (int i) const |
Protected Attributes | |
int | m_capacity |
int | m_size |
bool * | m_nodes |
Definition at line 17 of file subgraphenum.h.
TSubGraphEnum< TGraphCounter >::TSSet::TSSet | ( | int | capacity | ) | [inline] |
Definition at line 23 of file subgraphenum.h.
{ m_nodes = (bool *)malloc(capacity); memset(m_nodes, 0, capacity); m_capacity = capacity; m_size = 0; }
TSubGraphEnum< TGraphCounter >::TSSet::TSSet | ( | const TSSet & | set | ) | [inline] |
Definition at line 26 of file subgraphenum.h.
{ m_nodes = (bool *)malloc(set.m_capacity); memcpy(m_nodes, set.m_nodes, set.m_capacity); m_capacity = set.m_capacity; m_size = set.m_size; }
TSubGraphEnum< TGraphCounter >::TSSet::~TSSet | ( | ) | [inline] |
Definition at line 29 of file subgraphenum.h.
{ free(m_nodes); }
void TSubGraphEnum< TGraphCounter >::TSSet::Add | ( | int | i | ) | [inline] |
Definition at line 31 of file subgraphenum.h.
int TSubGraphEnum< TGraphCounter >::TSSet::Capacity | ( | ) | const [inline] |
Definition at line 34 of file subgraphenum.h.
{ return m_capacity; }
bool TSubGraphEnum< TGraphCounter >::TSSet::IsKey | ( | int | i | ) | const [inline] |
Definition at line 33 of file subgraphenum.h.
{ return m_nodes[i]; }
bool TSubGraphEnum< TGraphCounter >::TSSet::operator[] | ( | int | i | ) | const [inline] |
Definition at line 36 of file subgraphenum.h.
{ return m_nodes[i]; }
void TSubGraphEnum< TGraphCounter >::TSSet::Remove | ( | int | i | ) | [inline] |
Definition at line 32 of file subgraphenum.h.
int TSubGraphEnum< TGraphCounter >::TSSet::Size | ( | ) | const [inline] |
Definition at line 35 of file subgraphenum.h.
{ return m_size; }
int TSubGraphEnum< TGraphCounter >::TSSet::m_capacity [protected] |
Definition at line 19 of file subgraphenum.h.
bool* TSubGraphEnum< TGraphCounter >::TSSet::m_nodes [protected] |
Definition at line 21 of file subgraphenum.h.
int TSubGraphEnum< TGraphCounter >::TSSet::m_size [protected] |
Definition at line 20 of file subgraphenum.h.