|
AGX Dynamics 2.41.1.2
|
Smart pointer for handling referenced counted objects. More...
#include <ref_ptr.h>
Inheritance diagram for agx::ref_ptr< T >:Public Types | |
| typedef T | element_type |
| The type of the referenced class. | |
Public Member Functions | |
| ref_ptr () | |
| Constructor. | |
| ref_ptr (const ref_ptr &rp) | |
| Copy constructor. Will increment reference count with one. | |
| ref_ptr (T *ptr) | |
Will take ownership and reference ptr. | |
| ~ref_ptr () | |
| Destructor, will decrement reference count with one. | |
| void | forceClear () |
| Force the pointer to the referenced object to be null. Without deleting or decrement counters. Use with caution! | |
| T * | get () const |
| bool | isValid () const |
| operator T* () const | |
| Cast operator that will cast the ref_ptr to its native type. | |
| bool | operator! () const |
| template<typename U > | |
| bool | operator!= (ref_ptr< U > const &rp) const |
| template<typename U > | |
| bool | operator!= (U *p) const |
| template<typename U > | |
| bool | operator!= (U const *p) const |
| T & | operator* () const |
| T * | operator-> () const |
| automatic cast to native pointer and use the dereferencing operator | |
| bool | operator< (const ref_ptr &rp) const |
| ref_ptr & | operator= (const ref_ptr &rp) |
| Assignment operator, will increment reference count. | |
| ref_ptr & | operator= (T *ptr) |
Assignment operator, will reference and increment its reference count with one. | |
| template<typename U > | |
| bool | operator== (ref_ptr< U > const &rp) const |
| template<typename U > | |
| bool | operator== (U *p) const |
| template<typename U > | |
| bool | operator== (U const *p) const |
| T * | release () |
| Release the reference (without decrementing) to the referenced object and return a native pointer. | |
| void | swap (ref_ptr &rp) |
Swap rb with this reference without changing reference count. | |
Smart pointer for handling referenced counted objects.
| typedef T agx::ref_ptr< T >::element_type |
| agx::ref_ptr< T >::ref_ptr |
| agx::ref_ptr< T >::ref_ptr | ( | T * | ptr | ) |
| agx::ref_ptr< T >::ref_ptr | ( | const ref_ptr< T > & | rp | ) |
| agx::ref_ptr< T >::~ref_ptr |
| void agx::ref_ptr< T >::forceClear |
| T * agx::ref_ptr< T >::get |
Definition at line 256 of file ref_ptr.h.
Referenced by agx::PointGravityField::calculateGravity(), agxData::EntityStorage::capacity(), agx::const_pointer_cast(), agx::dynamic_pointer_cast(), agx::ScalarParameter::get(), agx::get_pointer(), agxSDK::Simulation::getDynamicsSystem(), agxData::Buffer::getElementArraySize(), agx::ObserverFrame::getFrame(), agxSDK::Assembly::getFrame(), agx::PointGravityField::getGravity(), agxCollide::Mesh::getMeshData(), agx::ObserverFrame::getRigidBody(), agxSDK::Simulation::getSpace(), agx::ref_ptr< T >::operator!=(), agx::RefPtrAccessor< Type >::operator()(), agx::HashFn< ref_ptr< T > >::operator()(), agx::ref_ptr< T >::operator==(), agx::AttachmentPair::operator[](), agx::ScalarParameter::set(), agxData::Value::set(), and agx::static_pointer_cast().
| bool agx::ref_ptr< T >::isValid |
Definition at line 268 of file ref_ptr.h.
Referenced by agx::ScalarParameter::get(), and agxWire::Wire::hasPropertyContainer().
| agx::ref_ptr< T >::operator T* |
| bool agx::ref_ptr< T >::operator! |
| bool agx::ref_ptr< T >::operator!= | ( | ref_ptr< U > const & | rp | ) | const |
rp Definition at line 208 of file ref_ptr.h.
References agx::ref_ptr< T >::get().
| T & agx::ref_ptr< T >::operator* |
| T * agx::ref_ptr< T >::operator-> |
| bool agx::ref_ptr< T >::operator< | ( | const ref_ptr< T > & | rp | ) | const |
| ref_ptr< T > & agx::ref_ptr< T >::operator= | ( | const ref_ptr< T > & | rp | ) |
| ref_ptr< T > & agx::ref_ptr< T >::operator= | ( | T * | ptr | ) |
| bool agx::ref_ptr< T >::operator== | ( | ref_ptr< U > const & | rp | ) | const |
rp Definition at line 202 of file ref_ptr.h.
References agx::ref_ptr< T >::get().
| T * agx::ref_ptr< T >::release |
| void agx::ref_ptr< T >::swap | ( | ref_ptr< T > & | rp | ) |
Swap rb with this reference without changing reference count.
Definition at line 289 of file ref_ptr.h.
Referenced by std::swap().