|
AGX Dynamics
2.37.2.0
|
Smart pointer for handling referenced counted objects. More...
#include <ref_ptr.h>
Public Types | |
| typedef T | element_type |
| The type of the referenced class. More... | |
Public Member Functions | |
| ref_ptr () | |
| Constructor. More... | |
| ref_ptr (T *ptr) | |
Will take ownership and reference ptr. More... | |
| ref_ptr (const ref_ptr &rp) | |
| Copy constructor. Will increment reference count with one. More... | |
| ~ref_ptr () | |
| Destructor, will decrement reference count with one. More... | |
| void | forceClear () |
| Force the pointer to the referenced object to be null. Without deleting or decrement counters. Use with caution! More... | |
| T * | get () const |
| bool | isValid () const |
| operator T* () const | |
| Cast operator that will cast the ref_ptr to its native type. More... | |
| bool | operator! () const |
| template<typename U > | |
| bool | operator!= (ref_ptr< U > const &rp) const |
| template<typename U > | |
| bool | operator!= (U const *p) const |
| template<typename U > | |
| bool | operator!= (U *p) const |
| T & | operator* () const |
| T * | operator-> () const |
| automatic cast to native pointer and use the dereferencing operator More... | |
| bool | operator< (const ref_ptr &rp) const |
| ref_ptr & | operator= (const ref_ptr &rp) |
| Assignment operator, will increment reference count. More... | |
| ref_ptr & | operator= (T *ptr) |
Assignment operator, will reference and increment its reference count with one. More... | |
| template<typename U > | |
| bool | operator== (ref_ptr< U > const &rp) const |
| template<typename U > | |
| bool | operator== (U const *p) const |
| template<typename U > | |
| bool | operator== (U *p) const |
| T * | release () |
| Release the reference (without decrementing) to the referenced object and return a native pointer. More... | |
| void | swap (ref_ptr &rp) |
Swap rb with this reference without changing reference count. More... | |
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 | ( | ) | const |
Definition at line 256 of file ref_ptr.h.
Referenced by agxData::Vector< T >::commit(), agx::const_pointer_cast(), agx::dynamic_pointer_cast(), agx::get_pointer(), agxSDK::ExecuteFilterT< T1, T2 >::match(), agx::ref_ptr< ValueT< T > >::operator!=(), agx::HashFn< ref_ptr< T > >::operator()(), agx::RefPtrAccessor< Type >::operator()(), agx::ref_ptr< ValueT< T > >::operator==(), agxData::Value::set(), and agx::static_pointer_cast().
| bool agx::ref_ptr< T >::isValid | ( | ) | const |
Definition at line 268 of file ref_ptr.h.
Referenced by agxCollide::Geometry::hasPropertyContainer(), and agxWire::Wire::hasPropertyContainer().
| agx::ref_ptr< T >::operator T* | ( | ) | const |
| bool agx::ref_ptr< T >::operator! | ( | ) | const |
| bool agx::ref_ptr< T >::operator!= | ( | ref_ptr< U > const & | rp | ) | const |
| T & agx::ref_ptr< T >::operator* | ( | ) | const |
| T * agx::ref_ptr< T >::operator-> | ( | ) | const |
| 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 |
| 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().