35 #ifndef OPENMS_CONCEPT_HELPERS_H    36 #define OPENMS_CONCEPT_HELPERS_H    39 #include <boost/shared_ptr.hpp>    50     const std::vector<boost::shared_ptr<const T> >&
    53       return reinterpret_cast<const std::vector<boost::shared_ptr<const T> 
>&>(vec);
    60     template <
class PtrType>
    61     inline bool cmpPtrSafe(
const PtrType& a, 
const PtrType& b)
    65       if (a == NULL && b == NULL)
    69       else if (a == NULL || b == NULL)
    83     template <
class ContainerType>
    86       if (a.size() != b.size()) 
return false;
    90       for (
Size i = 0; i < a.size(); i++)
   104 #endif //OPENMS_CONCEPT_HELPERS_H 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:51
 
Main OpenMS namespace. 
Definition: FeatureDeconvolution.h:47
 
bool cmpPtrContainer(const ContainerType &a, const ContainerType &b)
Helper function to compare two pointer-containers for equality of all elements. 
Definition: Helpers.h:84
 
bool cmpPtrSafe(const PtrType &a, const PtrType &b)
Helper comparing two pointers for equality (taking NULL into account) 
Definition: Helpers.h:61
 
size_t Size
Size type e.g. used as variable which can hold result of size() 
Definition: Types.h:128