Go to the documentation of this file. 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
bool operator==(const HcalIndexLookup &r) const
bool operator!=(const HcalIndexLookup &r) const
void reserve(const unsigned n)
unsigned largestIndex() const
static const unsigned InvalidIndex
friend class boost::serialization::access
void add(unsigned transformedId, unsigned index)
void load(Archive &ar, const unsigned)
unsigned find(unsigned detId) const
std::vector< std::pair< uint32_t, uint32_t > > data_
void save(Archive &ar, const unsigned) const