12 #include <boost/shared_ptr.hpp> 
   23     const std::vector<boost::shared_ptr<const T> >&
 
   26       return reinterpret_cast<const std::vector<boost::shared_ptr<const T> 
>&>(vec);
 
   33     template <
class PtrType>
 
   34     inline bool cmpPtrSafe(
const PtrType& a, 
const PtrType& b)
 
   38       if (a == 
nullptr && b == 
nullptr)
 
   42       else if (a == 
nullptr || b == 
nullptr)
 
   56     template <
class ContainerType>
 
   59       if (a.size() != b.size()) 
return false;
 
   63       for (
typename ContainerType::size_type i = 0; i < a.size(); i++)
 
bool cmpPtrSafe(const PtrType &a, const PtrType &b)
Helper comparing two pointers for equality (taking NULL into account)
Definition: Helpers.h:34
 
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.
Definition: Helpers.h:24
 
bool cmpPtrContainer(const ContainerType &a, const ContainerType &b)
Helper function to compare two pointer-containers for equality of all elements.
Definition: Helpers.h:57
 
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19