AGX Dynamics  2.37.2.0
ref_ptr.h File Reference
#include <agx/macros.h>
#include <agx/hash.h>
#include <agx/HashFunction.h>

Go to the source code of this file.

Classes

struct  agx::HashFn< ref_ptr< T > >
 
class  agx::ref_ptr< T >
 Smart pointer for handling referenced counted objects. More...
 
struct  agx::RefPtrAccessor< Type >
 

Namespaces

 agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Functions

template<class T , class Y >
ref_ptr< T > agx::const_pointer_cast (const ref_ptr< Y > &rp)
 
template<class T , class Y >
ref_ptr< T > agx::dynamic_pointer_cast (const ref_ptr< Y > &rp)
 
template<class T >
T * agx::get_pointer (const ref_ptr< T > &rp)
 
template<typename T , typename U >
bool agx::operator!= (T const *p, ref_ptr< U > const &rp)
 
template<typename T , typename U >
bool agx::operator!= (T *p, ref_ptr< U > const &rp)
 
template<typename T , typename U >
bool agx::operator== (T const *p, ref_ptr< U > const &rp)
 
template<typename T , typename U >
bool agx::operator== (T *p, ref_ptr< U > const &rp)
 
template<class T , class Y >
ref_ptr< T > agx::static_pointer_cast (const ref_ptr< Y > &rp)
 
template<class T >
void std::swap (agx::ref_ptr< T > &rp1, agx::ref_ptr< T > &rp2)
 

Function Documentation

◆ swap()

template<class T >
void std::swap ( agx::ref_ptr< T > &  rp1,
agx::ref_ptr< T > &  rp2 
)

Definition at line 352 of file ref_ptr.h.

References agx::ref_ptr< T >::swap(), and std::swap().