LIBINT  2.1.0-stable
Public Types | Static Public Member Functions | List of all members
libint2::PtrEquiv< T > Class Template Reference

PtrEquiv<T> provides a set of comparison functions named 'equiv' which take as arguments a mix of references, regular pointers, and smart pointers to T and it's various expected relatives. More...

#include <equiv.h>

Public Types

typedef T::parent_type P
 A shortcut for T::parent_type.
 

Static Public Member Functions

static bool equiv (const T &a, const T &b)
 
static bool equiv (const SafePtr< T > &a, const SafePtr< T > &b)
 
static bool equiv (const T *a, const SafePtr< T > &b)
 
static bool equiv (const SafePtr< T > &b, const T *a)
 
static bool equiv (const T *a, const T &b)
 
static bool equiv (const SafePtr< T > &a, const SafePtr< P > &b)
 
static bool equiv (const T *a, const SafePtr< P > &b)
 
static bool equiv (const T *a, const SafePtr< DGVertex > &b)
 
static bool equiv (const SafePtr< T > &a, const SafePtr< P > &b)
 
static bool equiv (const T *a, const SafePtr< DGVertex > &b)
 

Detailed Description

template<class T>
class libint2::PtrEquiv< T >

PtrEquiv<T> provides a set of comparison functions named 'equiv' which take as arguments a mix of references, regular pointers, and smart pointers to T and it's various expected relatives.

T must define the type of its parent publicly as 'parent_type'.


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