SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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.

References Assert.

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.

References Refs.

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.

References Assert.

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.

Referenced by GetRefs().


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