My Project
List of all members
ParaEngine::CRefCountedOne Class Reference

Base class for a reference counted asset. More...

#include <PERef.h>

Inheritance diagram for ParaEngine::CRefCountedOne:
ParaEngine::CRefCounted ParaEngine::Font ParaEngine::FontAtlas ParaEngine::GLProgram ParaEngine::GLProgramCache ParaEngine::Image ParaEngine::Label ParaEngine::MetaObject ParaEngine::MetaWorldFragment ParaEngine::Texture2D

Additional Inherited Members

- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

Base class for a reference counted asset.

This class differs from IRef that it has 0 reference count, instead of 1 during creation. such its derived class usually use asset_ptr<CRefCountedOne> to store a newly allocated object. and can use traditional new, delete pairs if not managed.


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