![]() |
![]() |
#include <value_ptr.h>
Public Member Functions | |
operator bool_type () const | |
T & | operator* () const |
T * | operator-> () const |
value_ptr & | operator= (value_ptr const &orig) |
template<typename U > | |
value_ptr & | operator= (value_ptr< U > const &orig) |
value_ptr & | operator= (std::auto_ptr< T > orig) |
void | swap (value_ptr &orig) |
value_ptr (value_ptr const &orig) | |
template<typename U > | |
value_ptr (value_ptr< U > const &orig) | |
value_ptr (std::auto_ptr< T > orig) | |
value_ptr (T *p=0) | |
~value_ptr () | |
Private Types | |
typedef void(value_ptr::* | bool_type )() const |
Private Member Functions | |
template<typename U > | |
T * | createFrom (U const *p) const |
void | this_type_does_not_support_comparisons () const |
Private Attributes | |
T * | myP |
Definition at line 62 of file value_ptr.h.
typedef void(value_ptr::* edm::value_ptr< T >::bool_type)() const [private] |
Definition at line 137 of file value_ptr.h.
edm::value_ptr< T >::value_ptr | ( | T * | p = 0 | ) | [inline, explicit] |
Definition at line 70 of file value_ptr.h.
edm::value_ptr< T >::~value_ptr | ( | ) | [inline] |
Definition at line 71 of file value_ptr.h.
{ delete myP; }
edm::value_ptr< T >::value_ptr | ( | value_ptr< T > const & | orig | ) | [inline] |
Definition at line 77 of file value_ptr.h.
: myP(createFrom(orig.myP)) { }
edm::value_ptr< T >::value_ptr | ( | value_ptr< U > const & | orig | ) | [inline] |
Definition at line 105 of file value_ptr.h.
: myP(createFrom(orig.operator->())) { }
edm::value_ptr< T >::value_ptr | ( | std::auto_ptr< T > | orig | ) | [inline] |
Definition at line 120 of file value_ptr.h.
: myP(orig.release()) { }
T* edm::value_ptr< T >::createFrom | ( | U const * | p | ) | const [inline, private] |
Definition at line 154 of file value_ptr.h.
{ return p ? value_ptr_traits<U>::clone(p) : 0; }
edm::value_ptr< T >::operator bool_type | ( | ) | const [inline] |
Definition at line 141 of file value_ptr.h.
{ return myP != 0 ? &value_ptr<T>::this_type_does_not_support_comparisons : 0; }
T& edm::value_ptr< T >::operator* | ( | void | ) | const [inline] |
Definition at line 91 of file value_ptr.h.
{ return *myP; }
T* edm::value_ptr< T >::operator-> | ( | ) | const [inline] |
Definition at line 92 of file value_ptr.h.
{ return myP; }
value_ptr& edm::value_ptr< T >::operator= | ( | value_ptr< T > const & | orig | ) | [inline] |
Definition at line 81 of file value_ptr.h.
value_ptr& edm::value_ptr< T >::operator= | ( | value_ptr< U > const & | orig | ) | [inline] |
Definition at line 110 of file value_ptr.h.
value_ptr& edm::value_ptr< T >::operator= | ( | std::auto_ptr< T > | orig | ) | [inline] |
Definition at line 124 of file value_ptr.h.
void edm::value_ptr< T >::swap | ( | value_ptr< T > & | orig | ) | [inline] |
Definition at line 98 of file value_ptr.h.
Referenced by edm::value_ptr< ParameterSet >::operator=(), edm::swap(), and edm::value_ptr< ParameterSet >::swap().
void edm::value_ptr< T >::this_type_does_not_support_comparisons | ( | ) | const [inline, private] |
Definition at line 138 of file value_ptr.h.
Referenced by edm::operator!=(), and edm::operator==().
{}
T* edm::value_ptr< T >::myP [private] |