# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CRefCount Class Reference

To use CSmartPtr or CRefPtr, derive from this class. More...

#include <smart_ptr.h>

Inheritance diagram for NLMISC::CRefCount:

NL3D::CAnimationPlaylist NL3D::CAnimationSet NL3D::CBoneBase NL3D::CChannelMixer NL3D::CLandscape NL3D::CMaterial NL3D::CMaterialBase NL3D::CMorphBase NL3D::CParticleSystem NL3D::CPatchRdrPass NL3D::CTextureDrvShare NL3D::CVertexBuffer NL3D::CVertexProgram NL3D::CZone::CTessBaseVertex NL3D::IDriver NL3D::IMeshVertexProgram NL3D::IModel NL3D::IObs NL3D::IShader NL3D::IShape NL3D::ITexture NL3D::ITextureDrvInfos NL3D::ITrav NL3D::IVBDrvInfos NL3D::IVertexBufferHard NL3D::IVertexProgramDrvInfos NLGEORGES::UForm NLGEORGES::UFormDfn NLGEORGES::UType NLMISC::IEventEmitter List of all members.

Public Methods

 ~CRefCount ()
 Destructor which release pinfo if necessary. More...

 CRefCount ()
 Default constructor init crefs to 0. More...

CRefCount & operator= (const CRefCount &)
 operator= must NOT copy crefs/pinfo!! More...

 CRefCount (const CRefCount &)
 copy cons must NOT copy crefs/pinfo!! More...


Public Attributes

sint crefs
CPtrInfopinfo

Static Public Attributes

CPtrInfo NullPtrInfo

Friends

struct CPtrInfo

Detailed Description

To use CSmartPtr or CRefPtr, derive from this class.

Your class doens't have to be virtual, or doesn't have to provide a virtual dtor.

Author:
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 47 of file smart_ptr.h.


Constructor & Destructor Documentation

NLMISC::CRefCount::~CRefCount   [inline]
 

Destructor which release pinfo if necessary.

Definition at line 44 of file smart_ptr_inline.h.

References NLMISC::CRefCount::CPtrInfo::IsNullPtrInfo, pinfo, and NLMISC::CRefCount::CPtrInfo::Ptr.

NLMISC::CRefCount::CRefCount   [inline]
 

Default constructor init crefs to 0.

Definition at line 78 of file smart_ptr.h.

References crefs.

Referenced by CRefCount, and operator=.

NLMISC::CRefCount::CRefCount const CRefCount &    [inline]
 

copy cons must NOT copy crefs/pinfo!!

Definition at line 82 of file smart_ptr.h.

References CRefCount, and crefs.


Member Function Documentation

CRefCount& NLMISC::CRefCount::operator= const CRefCount &    [inline]
 

operator= must NOT copy crefs/pinfo!!

Definition at line 80 of file smart_ptr.h.

References CRefCount.


Friends And Related Function Documentation

friend struct CPtrInfo [friend]
 

Definition at line 66 of file smart_ptr.h.


Member Data Documentation

sint NLMISC::CRefCount::crefs
 

Definition at line 72 of file smart_ptr.h.

Referenced by CRefCount.

CRefCount::CPtrInfo NLMISC::CRefCount::NullPtrInfo [static]
 

CPtrInfo* NLMISC::CRefCount::pinfo
 

Definition at line 73 of file smart_ptr.h.

Referenced by ~CRefCount.


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