AGX Dynamics 2.41.2.0
Loading...
Searching...
No Matches
agxData::ValueRefT< T > Class Template Reference

Templated value-reference. More...

#include <Value.h>

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

Public Types

typedef agx::ref_ptr< ValueT< T > > RefT
 
- Public Types inherited from agx::ref_ptr< ValueT< T > >
typedef ValueT< T > element_type
 The type of the referenced class.
 

Public Member Functions

 ValueRefT ()
 
 ValueRefT (ValueT< T > *val)
 
 operator const ValueT< T > * () const
 
ValueT< T > & operator* () const
 
ValueT< T > * operator-> () const
 
- Public Member Functions inherited from agx::ref_ptr< ValueT< T > >
 ref_ptr ()
 Constructor.
 
 ref_ptr (const ref_ptr &rp)
 Copy constructor. Will increment reference count with one.
 
 ref_ptr (ValueT< 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!
 
ValueT< T > * get () const
 
bool isValid () const
 
 operator ValueT< T > * () const
 Cast operator that will cast the ref_ptr to its native type.
 
bool operator! () const
 
bool operator!= (ref_ptr< U > const &rp) const
 
bool operator!= (U *p) const
 
bool operator!= (U const *p) const
 
ValueT< T > & operator* () const
 
ValueT< T > * operator-> () const
 automatic cast to native pointer and use the dereferencing operator
 
bool operator< (const ref_ptr &rp) const
 
ref_ptroperator= (const ref_ptr &rp)
 Assignment operator, will increment reference count.
 
ref_ptroperator= (ValueT< T > *ptr)
 Assignment operator, will reference and increment its reference count with one.
 
bool operator== (ref_ptr< U > const &rp) const
 
bool operator== (U *p) const
 
bool operator== (U const *p) const
 
ValueT< 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.
 

Detailed Description

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

Templated value-reference.

Definition at line 262 of file Value.h.

Member Typedef Documentation

◆ RefT

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

Definition at line 265 of file Value.h.

Constructor & Destructor Documentation

◆ ValueRefT() [1/2]

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

Definition at line 268 of file Value.h.

◆ ValueRefT() [2/2]

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

Definition at line 269 of file Value.h.

Member Function Documentation

◆ operator const ValueT< T > *()

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

Definition at line 271 of file Value.h.

◆ operator*()

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

Definition at line 272 of file Value.h.

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

◆ operator->()

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

Definition at line 273 of file Value.h.

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


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