11 #include <boost/shared_ptr.hpp>
24 const std::vector<boost::shared_ptr<const T> >&
27 return reinterpret_cast<const std::vector<boost::shared_ptr<const T>
>&>(vec);
34 template <
class PtrType>
35 inline bool cmpPtrSafe(
const PtrType& a,
const PtrType& b)
39 if (a ==
nullptr && b ==
nullptr)
43 else if (a ==
nullptr || b ==
nullptr)
57 template <
class ContainerType>
60 if (a.size() != b.size())
return false;
64 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:35
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:25
bool cmpPtrContainer(const ContainerType &a, const ContainerType &b)
Helper function to compare two pointer-containers for equality of all elements.
Definition: Helpers.h:58
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19