38 #include <boost/shared_ptr.hpp>
49 const std::vector<boost::shared_ptr<const T> >&
52 return reinterpret_cast<const std::vector<boost::shared_ptr<const T>
>&>(vec);
59 template <
class PtrType>
60 inline bool cmpPtrSafe(
const PtrType& a,
const PtrType& b)
64 if (a ==
nullptr && b ==
nullptr)
68 else if (a ==
nullptr || b ==
nullptr)
82 template <
class ContainerType>
85 if (a.size() != b.size())
return false;
89 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:60
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:50
bool cmpPtrContainer(const ContainerType &a, const ContainerType &b)
Helper function to compare two pointer-containers for equality of all elements.
Definition: Helpers.h:83
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47