1 #ifndef CondFormats_HcalObjects_HcalIndexLookup_h 2 #define CondFormats_HcalObjects_HcalIndexLookup_h 6 #include "boost/serialization/access.hpp" 7 #include "boost/serialization/version.hpp" 8 #include "boost/serialization/vector.hpp" 9 #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;
58 std::vector<std::pair<uint32_t, uint32_t> >
data_;
63 template <
class Archive>
64 inline void save(Archive& ar,
const unsigned )
const {
71 template <
class Archive>
72 inline void load(Archive& ar,
const unsigned ) {
78 BOOST_SERIALIZATION_SPLIT_MEMBER()
83 #endif // CondFormats_HcalObjects_HcalIndexLookup_h unsigned largestIndex() const
std::vector< std::pair< uint32_t, uint32_t > > data_
void load(Archive &ar, const unsigned)
void reserve(const unsigned n)
void add(unsigned transformedId, unsigned index)
friend class boost::serialization::access
void save(Archive &ar, const unsigned) const
bool operator!=(const HcalIndexLookup &r) const
unsigned find(unsigned detId) const
static const unsigned InvalidIndex
bool operator==(const HcalIndexLookup &r) const