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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TCRef Class Reference

#include <bd.h>

List of all members.

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.

: Refs(0){}
TCRef::~TCRef ( ) [inline]

Definition at line 448 of file bd.h.

References Assert, and Refs.

{Assert(Refs==0);}

Member Function Documentation

int TCRef::GetRefs ( ) const [inline]

Definition at line 453 of file bd.h.

References Refs.

{return Refs;}
void TCRef::MkRef ( ) [inline]

Definition at line 450 of file bd.h.

References Refs.

{Refs++;}
bool TCRef::NoRef ( ) const [inline]

Definition at line 452 of file bd.h.

References Refs.

{return Refs==0;}
TCRef& TCRef::operator= ( const TCRef ) [private]
void TCRef::UnRef ( ) [inline]

Definition at line 451 of file bd.h.

References Assert, and Refs.

{Assert(Refs>0); Refs--;}

Member Data Documentation

int TCRef::Refs [private]

Definition at line 442 of file bd.h.

Referenced by GetRefs(), MkRef(), NoRef(), UnRef(), and ~TCRef().


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