AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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.

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

Definition at line 259 of file Value.h.

Constructor & Destructor Documentation

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

Definition at line 262 of file Value.h.

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

Definition at line 263 of file Value.h.

Member Function Documentation

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!

ValueT< T > * agx::ref_ptr< ValueT< T > >::get ( ) const
inherited
Returns
a native pointer to the referenced object
bool agx::ref_ptr< ValueT< T > >::isValid ( ) const
inherited
Returns
true if the referenced pointer is != null
template<typename T>
agxData::ValueRefT< T >::operator const ValueT< T > * ( ) const
inline

Definition at line 265 of file Value.h.

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

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

bool agx::ref_ptr< ValueT< T > >::operator! ( ) const
inherited
Returns
true if the referenced pointer is == null
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
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
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
template<typename T>
ValueT<T>& agxData::ValueRefT< T >::operator* ( ) const
inline

Definition at line 266 of file Value.h.

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

Definition at line 267 of file Value.h.

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.
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
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
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
ValueT< T > * agx::ref_ptr< ValueT< T > >::release ( )
inherited

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

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

Swap rb with this reference without changing reference count.


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