SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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
TCRef Class Reference

#include <bd.h>

Public Member Functions

 TCRef ()
 
 ~TCRef ()
 
void MkRef ()
 
void UnRef ()
 
bool NoRef () const
 
int GetRefs () const
 

Private Member Functions

TCRefoperator= (const TCRef &)
 
 TCRef (const TCRef &)
 

Private Attributes

int Refs
 

Detailed Description

Definition at line 440 of file bd.h.

Constructor & Destructor Documentation

TCRef::TCRef ( const TCRef )
private
TCRef::TCRef ( )
inline

Definition at line 447 of file bd.h.

447 : Refs(0){}
int Refs
Definition: bd.h:442
TCRef::~TCRef ( )
inline

Definition at line 448 of file bd.h.

448 {Assert(Refs==0);}
int Refs
Definition: bd.h:442
#define Assert(Cond)
Definition: bd.h:251

Member Function Documentation

int TCRef::GetRefs ( ) const
inline

Definition at line 453 of file bd.h.

453 {return Refs;}
int Refs
Definition: bd.h:442
void TCRef::MkRef ( )
inline

Definition at line 450 of file bd.h.

450 {Refs++;}
int Refs
Definition: bd.h:442
bool TCRef::NoRef ( ) const
inline

Definition at line 452 of file bd.h.

452 {return Refs==0;}
int Refs
Definition: bd.h:442
TCRef& TCRef::operator= ( const TCRef )
private
void TCRef::UnRef ( )
inline

Definition at line 451 of file bd.h.

451 {Assert(Refs>0); Refs--;}
int Refs
Definition: bd.h:442
#define Assert(Cond)
Definition: bd.h:251

Member Data Documentation

int TCRef::Refs
private

Definition at line 442 of file bd.h.


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