23 #ifndef OPAL_INDEXMAP_H
24 #define OPAL_INDEXMAP_H
47 typedef std::set<std::shared_ptr<Component> >
value_t;
57 void print(std::ostream&)
const;
87 if (x.
end < y.
end)
return true;
94 typedef std::map<key_t, value_t, myCompare>
map_t;
std::ostream & operator<<(std::ostream &out, const IndexMap &im)
T * value_type(const SliceIterator< T > &)
MMatrix< double > im(MMatrix< m_complex > mc)
std::map< key_t, value_t, myCompare > map_t
static const double oneMinusEpsilon_m
void add(key_t::first_type initialStep, key_t::second_type finalStep, const value_t &val)
size_t numElements() const
void tidyUp(double zstop)
std::set< std::shared_ptr< Component > > value_t
value_t getTouchingElements(const key_t &range) const
invertedMap_t mapElement2Range_m
key_t getRange(const IndexMap::value_t::value_type &element, double position) const
std::multimap< value_t::value_type, key_t > invertedMap_t
static bool almostEqual(double, double)
void saveSDDS(double startS) const
void print(std::ostream &) const
value_t query(key_t::first_type s, key_t::second_type ds)
OutOfBounds(const std::string &meth, const std::string &msg)
OutOfBounds(const OutOfBounds &rhs)
bool operator()(const key_t x, const key_t y) const
The base class for all OPAL exceptions.
std::ostream & getStream()