AGXDynamics  2.31.1.0
agxData::ValueRefT< T > Class Template Reference

Templated value-reference. More...

#include <Value.h>

+ Inheritance diagram for agxData::ValueRefT< T >:

Public Types

typedef ValueT< T > element_type
 The type of the referenced class. More...
 
typedef agx::ref_ptr< ValueT< T > > RefT
 

Public Member Functions

 ValueRefT ()
 
 ValueRefT (ValueT< T > *val)
 
void forceClear ()
 Force the pointer to the referenced object to be null. Without deleting or decrement counters. Use with caution! More...
 
ValueT< T > * get () const
 
bool isValid () const
 
 operator const ValueT< T > * () const
 
 operator ValueT< T > * () const
 Cast operator that will cast the ref_ptr to its native type. More...
 
bool operator! () const
 
bool operator!= (ref_ptr< U > const &rp) const
 
bool operator!= (U const *p) const
 
bool operator!= (U *p) const
 
ValueT< T > & operator* () const
 
ValueT< T > * operator-> () const
 
bool operator< (const ref_ptr &rp) const
 
bool operator== (ref_ptr< U > const &rp) const
 
bool operator== (U const *p) const
 
bool operator== (U *p) const
 
ValueT< 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...
 

Detailed Description

template<typename T>
class agxData::ValueRefT< T >

Templated value-reference.

Definition at line 256 of file Value.h.

Member Typedef Documentation

◆ element_type

typedef ValueT< T > agx::ref_ptr< ValueT< T > >::element_type
inherited

The type of the referenced class.

Definition at line 36 of file ref_ptr.h.

◆ RefT

template<typename T>
typedef agx::ref_ptr< ValueT<T> > agxData::ValueRefT< T >::RefT

Definition at line 259 of file Value.h.

Constructor & Destructor Documentation

◆ ValueRefT() [1/2]

template<typename T>
agxData::ValueRefT< T >::ValueRefT ( )
inline

Definition at line 262 of file Value.h.

◆ ValueRefT() [2/2]

template<typename T>
agxData::ValueRefT< T >::ValueRefT ( ValueT< T > *  val)
inline

Definition at line 263 of file Value.h.

Member Function Documentation

◆ forceClear()

void agx::ref_ptr< ValueT< T > >::forceClear ( )
inherited

Force the pointer to the referenced object to be null. Without deleting or decrement counters. Use with caution!

Definition at line 283 of file ref_ptr.h.

◆ get()

ValueT< T > * agx::ref_ptr< ValueT< T > >::get ( ) const
inherited
Returns
a native pointer to the referenced object

Definition at line 256 of file ref_ptr.h.

◆ isValid()

bool agx::ref_ptr< ValueT< T > >::isValid ( ) const
inherited
Returns
true if the referenced pointer is != null

Definition at line 268 of file ref_ptr.h.

◆ operator const ValueT< T > *()

template<typename T>
agxData::ValueRefT< T >::operator const ValueT< T > * ( ) const
inline

Definition at line 265 of file Value.h.

◆ operator ValueT< T > *()

agx::ref_ptr< ValueT< T > >::operator ValueT< T > * ( ) const
inherited

Cast operator that will cast the ref_ptr to its native type.

Definition at line 196 of file ref_ptr.h.

◆ operator!()

bool agx::ref_ptr< ValueT< T > >::operator! ( ) const
inherited
Returns
true if the referenced pointer is == null

Definition at line 262 of file ref_ptr.h.

◆ operator!=() [1/3]

bool agx::ref_ptr< ValueT< T > >::operator!= ( ref_ptr< U > const &  rp) const
inherited
Returns
true if the reference pointer is NOT pointing to the same object as rp

Definition at line 208 of file ref_ptr.h.

References agx::ref_ptr< T >::get().

◆ operator!=() [2/3]

bool agx::ref_ptr< ValueT< T > >::operator!= ( U const *  p) const
inherited
Returns
true if the reference pointer is NOT pointing to the same object as p

Definition at line 220 of file ref_ptr.h.

◆ operator!=() [3/3]

bool agx::ref_ptr< ValueT< T > >::operator!= ( U *  p) const
inherited
Returns
true if the reference pointer is NOT pointing to the same object as p

Definition at line 232 of file ref_ptr.h.

◆ operator*()

template<typename T>
ValueT<T>& agxData::ValueRefT< T >::operator* ( ) const
inline

Definition at line 266 of file Value.h.

◆ operator->()

template<typename T>
ValueT<T>* agxData::ValueRefT< T >::operator-> ( ) const
inline

Definition at line 267 of file Value.h.

◆ operator<()

bool agx::ref_ptr< ValueT< T > >::operator< ( const ref_ptr< ValueT< T > > &  rp) const
inherited
Returns
true if the pointer this is referencing to is less than the one rp is referencing.

Definition at line 238 of file ref_ptr.h.

◆ operator==() [1/3]

bool agx::ref_ptr< ValueT< T > >::operator== ( ref_ptr< U > const &  rp) const
inherited
Returns
true if the reference pointer is pointing to the same object as rp

Definition at line 202 of file ref_ptr.h.

References agx::ref_ptr< T >::get().

◆ operator==() [2/3]

bool agx::ref_ptr< ValueT< T > >::operator== ( U const *  p) const
inherited
Returns
true if the reference pointer is pointing to the same object p

Definition at line 214 of file ref_ptr.h.

◆ operator==() [3/3]

bool agx::ref_ptr< ValueT< T > >::operator== ( U *  p) const
inherited
Returns
true if the reference pointer is pointing to the same object as p

Definition at line 226 of file ref_ptr.h.

◆ release()

ValueT< T > * agx::ref_ptr< ValueT< T > >::release ( )
inherited

Release the reference (without decrementing) to the referenced object and return a native pointer.

Definition at line 274 of file ref_ptr.h.

◆ swap()

void agx::ref_ptr< ValueT< T > >::swap ( ref_ptr< ValueT< T > > &  rp)
inherited

Swap rb with this reference without changing reference count.

Definition at line 289 of file ref_ptr.h.


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