OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Friends
osg::ref_ptr Class Reference

Smart pointer for handling referenced counted objects. More...

List of all members.

Public Types

typedef T element_type

Public Member Functions

 ref_ptr ()
 ref_ptr (T *ptr)
 ref_ptr (const ref_ptr &rp)
template<class Other >
 ref_ptr (const ref_ptr< Other > &rp)
 ref_ptr (observer_ptr< T > &optr)
 ~ref_ptr ()
ref_ptroperator= (const ref_ptr &rp)
template<class Other >
ref_ptroperator= (const ref_ptr< Other > &rp)
ref_ptroperator= (T *ptr)
bool operator== (const ref_ptr &rp) const
bool operator== (const T *ptr) const
bool operator!= (const ref_ptr &rp) const
bool operator!= (const T *ptr) const
bool operator< (const ref_ptr &rp) const
 operator unspecified_bool_type () const
T & operator* () const
T * operator-> () const
T * get () const
bool operator! () const
bool valid () const
T * release ()
void swap (ref_ptr &rp)

Friends

class ref_ptr
bool operator== (const T *ptr, const ref_ptr &rp)
bool operator!= (const T *ptr, const ref_ptr &rp)

Detailed Description

Smart pointer for handling referenced counted objects.


Member Typedef Documentation


Constructor & Destructor Documentation

osg::ref_ptr::ref_ptr ( ) [inline]
osg::ref_ptr::ref_ptr ( T *  ptr) [inline]
osg::ref_ptr::ref_ptr ( const ref_ptr rp) [inline]
template<class Other >
osg::ref_ptr::ref_ptr ( const ref_ptr< Other > &  rp) [inline]
osg::ref_ptr::ref_ptr ( observer_ptr< T > &  optr) [inline]
osg::ref_ptr::~ref_ptr ( ) [inline]

Member Function Documentation

T* osg::ref_ptr::get ( ) const [inline]

Referenced by osg::Camera::getImplicitBufferAttachmentRenderMask(), osg::Camera::getImplicitBufferAttachmentResolveMask(), osg::CullStack::getModelViewMatrix(), osg::CullStack::getProjectionMatrix(), osg::CullStack::getMVPW(), osg::clone(), osg::cloneType(), osg::observer_ptr< Skeleton >::observer_ptr(), osg::observer_ptr< Skeleton >::operator=(), osg::DrawElements::getElementBufferObject(), osg::get_pointer(), osg::RenderInfo::getState(), osg::RenderInfo::getUserData(), osg::State::getGlobalDefaultAttribute(), osg::State::getGlobalDefaultTextureAttribute(), osg::State::applyGlobalDefaultAttribute(), osg::State::applyGlobalDefaultAttributeOnTexUnit(), osgAnimation::TemplateChannel::getTarget(), osgAnimation::TemplateChannel::setTarget(), osgAnimation::TemplateChannel::getOrCreateSampler(), osgAnimation::TemplateChannel::getSampler(), osgAnimation::TemplateChannel::getSamplerTyped(), osgAnimation::TemplateChannel::getTargetTyped(), osgAnimation::RigGeometry::UpdateVertex::update(), osgAnimation::TemplateSampler::getKeyframeContainer(), osgAnimation::TemplateSampler::getKeyframeContainerTyped(), osgAnimation::TemplateSampler::getOrCreateKeyframeContainer(), osgDB::RegisterReaderWriterProxy::RegisterReaderWriterProxy(), osgDB::RegisterReaderWriterProxy::~RegisterReaderWriterProxy(), osgDB::RegisterReaderWriterProxy::get(), osgDB::RegisterImageProcessorProxy::RegisterImageProcessorProxy(), osgDB::RegisterImageProcessorProxy::~RegisterImageProcessorProxy(), osgDB::RegisterImageProcessorProxy::get(), osgFX::BumpMapping::getOverrideDiffuseTexture(), osgFX::BumpMapping::getOverrideNormalMapTexture(), osgParticle::ModularEmitter::getCounter(), osgParticle::ModularEmitter::getPlacer(), osgParticle::ModularEmitter::getShooter(), osgParticle::Particle::getSizeInterpolator(), osgParticle::Particle::getAlphaInterpolator(), osgParticle::Particle::getColorInterpolator(), and osgParticle::ParticleProcessor::getParticleSystem().

osg::ref_ptr::operator unspecified_bool_type ( ) const [inline]
bool osg::ref_ptr::operator! ( ) const [inline]
bool osg::ref_ptr::operator!= ( const ref_ptr rp) const [inline]
bool osg::ref_ptr::operator!= ( const T *  ptr) const [inline]
T& osg::ref_ptr::operator* ( ) const [inline]
T* osg::ref_ptr::operator-> ( ) const [inline]
bool osg::ref_ptr::operator< ( const ref_ptr rp) const [inline]
ref_ptr& osg::ref_ptr::operator= ( const ref_ptr rp) [inline]
template<class Other >
ref_ptr& osg::ref_ptr::operator= ( const ref_ptr< Other > &  rp) [inline]
ref_ptr& osg::ref_ptr::operator= ( T *  ptr) [inline]
bool osg::ref_ptr::operator== ( const ref_ptr rp) const [inline]
bool osg::ref_ptr::operator== ( const T *  ptr) const [inline]
T* osg::ref_ptr::release ( ) [inline]

Referenced by osg::clone(), and osg::cloneType().

void osg::ref_ptr::swap ( ref_ptr rp) [inline]

Referenced by osg::swap().

bool osg::ref_ptr::valid ( ) const [inline]

Friends And Related Function Documentation

bool operator!= ( const T *  ptr,
const ref_ptr rp 
) [friend]
bool operator== ( const T *  ptr,
const ref_ptr rp 
) [friend]
friend class ref_ptr [friend]

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

osg logo
Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.