Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Functions
OpenMS::Helpers Namespace Reference

Functions

template<class T >
const std::vector< boost::shared_ptr< const T > > & constifyPointerVector (const std::vector< boost::shared_ptr< T > > &vec)
 Helper function to add constness to a vector of shared pointers. More...
 
template<class PtrType >
bool cmpPtrSafe (const PtrType &a, const PtrType &b)
 Helper comparing two pointers for equality (taking NULL into account) More...
 
template<class ContainerType >
bool cmpPtrContainer (const ContainerType &a, const ContainerType &b)
 Helper function to compare two pointer-containers for equality of all elements. More...
 

Function Documentation

◆ cmpPtrContainer()

bool OpenMS::Helpers::cmpPtrContainer ( const ContainerType &  a,
const ContainerType &  b 
)
inline

Helper function to compare two pointer-containers for equality of all elements.

References cmpPtrSafe().

◆ cmpPtrSafe()

bool OpenMS::Helpers::cmpPtrSafe ( const PtrType &  a,
const PtrType &  b 
)
inline

Helper comparing two pointers for equality (taking NULL into account)

Referenced by cmpPtrContainer().

◆ constifyPointerVector()

const std::vector<boost::shared_ptr<const T> >& OpenMS::Helpers::constifyPointerVector ( const std::vector< boost::shared_ptr< T > > &  vec)

Helper function to add constness to a vector of shared pointers.


OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:14 using doxygen 1.8.13