BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DataPtr.h File Reference
#include <algorithm>
#include <cassert>
#include <typeinfo>

Go to the source code of this file.

Classes

class  DataPtr< T >

Functions

template<typename T>
bool operator== (const DataPtr< T > &lhs, const DataPtr< T > &rhs)
template<typename T>
bool operator!= (const DataPtr< T > &lhs, const DataPtr< T > &rhs)

Function Documentation

◆ operator!=()

template<typename T>
bool operator!= ( const DataPtr< T > & lhs,
const DataPtr< T > & rhs )
inline

Definition at line 144 of file Event/GeneratorObject/include/DataModel/DataPtr.h.

144 {
145 return !( lhs == rhs );
146}

◆ operator==()

template<typename T>
bool operator== ( const DataPtr< T > & lhs,
const DataPtr< T > & rhs )
inline

Definition at line 136 of file Event/GeneratorObject/include/DataModel/DataPtr.h.

136 {
137 return ( lhs.ptr() == rhs.ptr() );
138 // FIXME this requires T to be concrete
139 // boost::function_requires< boost::EqualityComparableConcept<T> >();
140 // FIXME this requires T to have an == oper
141 // return ((lhs.operator->() == 0 && rhs.operator->() == 0) ||
142 // (lhs.operator->() != 0 && rhs.operator->() != 0 && *lhs == *rhs) );
143}
T * ptr() const
explicit pointer accessors (sometimes necessary to help the compiler)