Rosetta Utilities  2015.02
Classes | Typedefs | Functions
utility::pointer Namespace Reference

Classes

class  ReferenceCount
 Base class for reference-counted polymorphic classes. More...
 
class  ReferenceCountMI
 Interface class for reference counted polymorphic classes. More...
 
class  ReferenceCountMI_
 Base class for reference counted polymorphic classes. More...
 

Typedefs

typedef shared_ptr
< ReferenceCount
ReferenceCountOP
 
typedef shared_ptr
< ReferenceCount const > 
ReferenceCountCOP
 

Functions

template<typename T , typename U >
bool equal (weak_ptr< T > const &a, weak_ptr< U > const &b)
 Equality comparator. More...
 
template<typename T , typename U >
bool equal (weak_ptr< T > &a, shared_ptr< U > const &bs)
 Equality comparator. More...
 
template<typename T , typename U >
bool equal (weak_ptr< T > &a, U *const b)
 Equality comparator. More...
 
template<typename T >
void delete_and_assign (T *&p, T *n)
 Delete a pointer and assign a new pointer. More...
 
template<typename T >
void delete_and_zero (T *&p)
 Delete a pointer and assign and set it to zero. More...
 
template<typename T >
void delete_and_assign_array (T *&p, T *n)
 Delete a pointer to an array and assign a new pointer. More...
 
template<typename T >
void delete_and_zero_array (T *&p)
 Delete a pointer to an array and set it to zero. More...
 

Typedef Documentation

Function Documentation

template<typename T >
void utility::pointer::delete_and_assign ( T *&  p,
T *  n 
)
inline

Delete a pointer and assign a new pointer.

template<typename T >
void utility::pointer::delete_and_assign_array ( T *&  p,
T *  n 
)
inline

Delete a pointer to an array and assign a new pointer.

template<typename T >
void utility::pointer::delete_and_zero ( T *&  p)
inline

Delete a pointer and assign and set it to zero.

template<typename T >
void utility::pointer::delete_and_zero_array ( T *&  p)
inline

Delete a pointer to an array and set it to zero.

template<typename T , typename U >
bool utility::pointer::equal ( weak_ptr< T > const &  a,
weak_ptr< U > const &  b 
)
inline

Equality comparator.

Referenced by utility::file::equali(), and numeric::operator==().

template<typename T , typename U >
bool utility::pointer::equal ( weak_ptr< T > &  a,
shared_ptr< U > const &  bs 
)
inline

Equality comparator.

template<typename T , typename U >
bool utility::pointer::equal ( weak_ptr< T > &  a,
U *const  b 
)
inline

Equality comparator.