Cortex 6.0.0
Public Types | Public Member Functions

IECore::RefCounted Class Reference

#include <RefCounted.h>

Inheritance diagram for IECore::RefCounted:

List of all members.

Public Types

typedef size_t RefCount

Public Member Functions

 IE_CORE_DECLAREMEMBERPTR (RefCounted)
void addRef () const
 Add a reference to the current object.
void removeRef () const
 Remove a reference from the current object.
RefCount refCount () const
 Returns the current reference count.

Detailed Description

A simple class to count references.

Todo:
Disallow construction on the heap by having a private destructor - do we need to do this for all derived classes as well?

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends