Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

amn::IReference Class Reference

Reference counter for safe deallocation of memory. More...

#include <IReference.h>

Inheritance diagram for amn::IReference:

amn::IEngine amn::IFileManager amn::IReadFile amn::IReadFileXML amn::ISceneGraph amn::ISoundDevice amn::IVideoDevice amn::IWriteFile List of all members.

Public Member Functions

 IReference ()
 Constructor.
virtual ~IReference ()
 Destructor.
virtual bool drop ()
 Subtracts one from the reference count.
virtual void grab ()
 Adds one to the reference count.

Detailed Description

Reference counter for safe deallocation of memory.


Constructor & Destructor Documentation

amn::IReference::IReference  )  [inline]
 

Constructor.

virtual amn::IReference::~IReference  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual bool amn::IReference::drop  )  [inline, virtual]
 

Subtracts one from the reference count.

Subtracts one from the reference count. If the reference count is equal to 0, then it deletes itself.

Returns:
True if the pointer is deleted, otherwise false.

virtual void amn::IReference::grab  )  [inline, virtual]
 

Adds one to the reference count.


The documentation for this class was generated from the following file:
Generated on Wed Feb 1 22:23:26 2006 for AmnesiaEngine by  doxygen 1.4.2