1 #ifndef CondFormats_HcalObjects_HcalIndexLookup_h 2 #define CondFormats_HcalObjects_HcalIndexLookup_h 9 #include "boost/serialization/access.hpp" 10 #include "boost/serialization/version.hpp" 11 #include "boost/serialization/vector.hpp" 12 #include "boost/serialization/utility.hpp" 27 void add(
unsigned transformedId,
unsigned index);
39 inline std::size_t
size()
const {
return data_.size();}
49 unsigned find(
unsigned detId)
const;
57 {
return !(*
this ==
r);}
60 std::vector<std::pair<uint32_t,uint32_t> >
data_;
65 template<
class Archive>
66 inline void save(Archive & ar,
const unsigned )
const 74 template<
class Archive>
75 inline void load(Archive & ar,
const unsigned )
79 "In HcalIndexLookup::load: invalid data");
82 BOOST_SERIALIZATION_SPLIT_MEMBER()
87 #endif // CondFormats_HcalObjects_HcalIndexLookup_h
void load(Archive &ar, const unsigned)
unsigned largestIndex() const
void reserve(const unsigned n)
void add(unsigned transformedId, unsigned index)
friend class boost::serialization::access
bool operator==(const HcalIndexLookup &r) const
void save(Archive &ar, const unsigned) const
std::vector< std::pair< uint32_t, uint32_t > > data_
unsigned find(unsigned detId) const
static const unsigned InvalidIndex
bool operator!=(const HcalIndexLookup &r) const