IECore::RefCounted Class Reference

#include <RefCounted.h>

Inheritance diagram for IECore::RefCounted:

IECore::FileIndexedIO::FileIndexedIO::Index IECore::FileIndexedIO::FileIndexedIO::IndexedFile IECore::FileIndexedIO::FileIndexedIO::Node IECore::AttributeCache IECore::CachedReader IECore::Exception::Exception::RefCountedString IECore::HierarchicalCache IECore::IFFFile IECore::ImplicitSurfaceFunction< P, V > IECore::IndexedIOFilter IECore::IndexedIOInterface IECore::InterpolatedCache IECore::MarchingCubes< ImplicitFn, MeshBuilder > IECore::MeshPrimitiveBuilder IECore::MessageHandler IECore::Object::Object::LoadContext IECore::PrimitiveEvaluator::PrimitiveEvaluator::Result IECore::Renderer::Renderer::Procedural IECore::RunTimeTyped IECore::SimpleSubsurface IECore::Triangulator< PointIterator, MeshBuilder > IECore::TypedData< T >::TypedData::DataHolder IECoreGL::CameraController IECoreGL::ShaderManager IECoreGL::TextureLoader IECoreGL::Window IECoreMaya::MayaMeshBuilder< T > IECoreMaya::ParameterHandler IECoreMaya::PostLoadCallback IECoreMaya::ViewportPostProcess IECoreMaya::ViewportPostProcessCallback IECore::ImplicitSurfaceFunction< Imath::V3f, float > IECore::ImplicitSurfaceFunction< P, V > IECore::InterpolatedCache::InterpolatedCache::Implementation

List of all members.

Public Types

typedef size_t RefCount

Public Member Functions

 IE_CORE_DECLAREMEMBERPTR (RefCounted)
 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.

Protected Member Functions

virtual ~RefCounted ()


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?

Member Typedef Documentation


Constructor & Destructor Documentation

IECore::RefCounted::RefCounted (  ) 

IECore::RefCounted::~RefCounted (  )  [protected, virtual]


Member Function Documentation

void IECore::RefCounted::addRef (  )  const [inline]

Add a reference to the current object.

IECore::RefCounted::IE_CORE_DECLAREMEMBERPTR ( RefCounted   ) 

RefCount IECore::RefCounted::refCount (  )  const [inline]

Returns the current reference count.

void IECore::RefCounted::removeRef (  )  const [inline]

Remove a reference from the current object.

Referenced by IECore::intrusive_ptr_release().


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

Generated on Mon Jan 24 11:13:27 2011 for Cortex by doxygen 1.5.8