metric_set.h
Go to the documentation of this file.
101 metric_set(const header_type &header = header_type::default_header(), const ::int16_t version = 0)
303 metric_type &operator[](const size_t n) INTEROP_THROW_SPEC((model::index_out_of_bounds_exception))
314 const metric_type &operator[](const size_t n)const INTEROP_THROW_SPEC((model::index_out_of_bounds_exception))
338 const metric_type &at(const size_t n)const INTEROP_THROW_SPEC((model::index_out_of_bounds_exception))
605 INTEROP_THROW( index_out_of_bounds_exception, "Index map empty: Run rebuild_index(true) on this metric_set" );
624 metric_type &get_metric_ref(id_t key) INTEROP_THROW_SPEC((model::index_out_of_bounds_exception))
627 INTEROP_THROW( index_out_of_bounds_exception, "Index map empty: Run rebuild_index(true) on this metric_set" );
680 INTEROP_THROW( index_out_of_bounds_exception, "Index map empty: Run rebuild_index(true) on this metric_set" );
709 const metric_type &get_metric(const id_t key) const INTEROP_THROW_SPEC((model::index_out_of_bounds_exception))
712 INTEROP_THROW( index_out_of_bounds_exception, "Index map empty: Run rebuild_index(true) on this metric_set" );
Definition: metric_set.h:85
static const char * prefix()
Definition: metric_set.h:564
void insert(const metric_type &metric)
Definition: metric_set.h:267
size_t find(const uint_t lane, const uint_t tile, const uint_t cycle=0) const
Definition: metric_set.h:644
const metric_type & at(const size_t n) const INTEROP_THROW_SPEC((model
Definition: metric_set.h:338
Definition: metric_set.h:40
Definition: metric_set.h:34
::int16_t version() const
Definition: metric_set.h:535
Definition: enum_description.h:15
void data_source_exists(const bool exists)
Definition: metric_set.h:158
size_t find(const id_t id) const
Definition: metric_set.h:654
::int16_t m_version
Definition: metric_set.h:876
metric_type & get_metric_ref(uint_t lane, uint_t tile, uint_t cycle=0) INTEROP_THROW_SPEC((model
Definition: metric_set.h:595
bool empty() const
Definition: metric_set.h:525
size_t lane_count() const
Definition: metric_set.h:384
void append_tiles(const metric_set< T > &origin, const base_metric &tile_id)
Definition: metric_set.h:136
T::header_type header_type
Definition: metric_set.h:47
static const char * suffix()
Definition: metric_set.h:571
Metric::uint_t uint_t
Definition: metric_set.h:916
metric_set< Metric > metric_set_t
Definition: metric_set.h:941
void trim(const size_t n)
Definition: metric_set.h:258
id_vector lanes() const
Definition: metric_set.h:373
Definition: enums.h:291
std::set< uint_t > id_set_t
Definition: metric_set.h:65
static id_t lane_from_id(const id_t id)
Definition: base_metric.h:239
inline::uint32_t surface(const ::uint32_t tile_id, const constants::tile_naming_method method)
Definition: tile_metric.h:93
Definition: base_metric.h:130
T::uint_t uint_t
Definition: metric_set.h:57
size_t size() const
Definition: metric_set.h:519
static id_t to_id(const MetricT &metric)
Definition: metric_set.h:893
size_t max_lane() const
Definition: metric_set.h:393
Metric::id_t id_t
Definition: metric_set.h:889
metric_array_t::size_type size_type
Definition: metric_set.h:63
void reserve(const size_t n)
Definition: metric_set.h:250
id_vector tile_numbers_for_lane(const uint_t lane) const
Definition: metric_set.h:406
std::vector< id_t > key_vector
Definition: metric_set.h:61
static uint_t to_lane(const MetricT &metric)
Definition: metric_set.h:899
metric_type & get_metric_ref(id_t key) INTEROP_THROW_SPEC((model
Definition: metric_set.h:624
metric_set< Metric > metric_set_t
Definition: metric_set.h:948
std::vector< T > metric_array_t
Definition: metric_set.h:45
bool m_data_source_exists
Definition: metric_set.h:878
metric_set(const header_type &header=header_type::default_header(), const ::int16_t version=0)
Definition: metric_set.h:101
const metric_type & get_metric(const id_t key) const INTEROP_THROW_SPEC((model
Definition: metric_set.h:709
std::map< id_t, size_t > offset_map_t
Definition: metric_set.h:70
metric_array_t::iterator iterator
Definition: metric_set.h:79
bool data_source_exists() const
Definition: metric_set.h:150
id_vector cycles() const
Definition: metric_set.h:496
T::base_t base_t
Definition: metric_set.h:49
static id_t tile_from_id(const id_t id)
Definition: base_metric.h:258
offset_map_t m_id_map
Definition: metric_set.h:882
void copy_by_tile(const metric_set< T > &origin, const base_metric &tile_id)
Definition: metric_set.h:126
Definition: type_traits.h:131
id_vector tile_numbers() const
Definition: metric_set.h:453
void populate_tile_numbers_for_lane(id_set_t &tile_number_set, const uint_t lane) const
Definition: metric_set.h:420
const metric_type & operator[](const size_t n) const INTEROP_THROW_SPEC((model
Definition: metric_set.h:314
const metric_array_t & metrics() const
Definition: metric_set.h:555
const metric_type & get_metric(const uint_t lane, const uint_t tile, const uint_t cycle=0) const INTEROP_THROW_SPEC((model
Definition: metric_set.h:670
metric_set(const ::int16_t version)
Definition: metric_set.h:93
Metric::id_t id_t
Definition: metric_set.h:914
static uint_t to_tile(const MetricT &)
Definition: metric_set.h:930
void rebuild_index(const bool update_ids=false)
Definition: metric_set.h:213
Definition: base_metric.h:32
metric_type & at(const size_t n) INTEROP_THROW_SPEC((model
Definition: metric_set.h:326
bool has_metric(const uint_t lane, const uint_t tile, const uint_t cycle=0) const
Definition: metric_set.h:698
constant_type< metric_base_type, BaseCycleType > base_cycle_t
Definition: typedefs.h:20
Definition: enums.h:301
static uint_t to_tile(const MetricT &metric)
Definition: metric_set.h:905
metric_comparison< T > metric_comparison_t
Definition: metric_set.h:75
void set_version(const ::int16_t version)
Definition: metric_set.h:353
std::vector< uint_t > id_vector
Definition: metric_set.h:59
static id_t to_id(const MetricT &)
Definition: metric_set.h:918
T metric_type
Definition: metric_set.h:51
const_iterator begin() const
Definition: metric_set.h:166
metric_type & operator[](const size_t n) INTEROP_THROW_SPEC((model
Definition: metric_set.h:303
void metrics_for_lane(metric_array_t &lane_metrics, const uint_t lane) const
Definition: metric_set.h:481
void populate_tile_numbers_for_lane_surface(id_set_t &tile_number_set, const uint_t lane, const uint_t surface, const constants::tile_naming_method naming_convention) const
Definition: metric_set.h:437
Definition: metric_set.h:83
bool has_metric(const id_t id) const
Definition: metric_set.h:729
constant_type< metric_base_type, BaseRunType > base_run_t
Definition: typedefs.h:26
Definition: enums.h:291
key_vector keys() const
Definition: metric_set.h:362
offset_map_t & offset_map()
Definition: metric_set.h:580
void resize(const size_t n)
Definition: metric_set.h:242
Definition: metric_exceptions.h:25
Definition: metric_set.h:938
Definition: enums.h:291
Definition: enums.h:291
const_iterator end() const
Definition: metric_set.h:175
void clear_lookup()
Definition: metric_set.h:735
metric_array_t metrics_for_cycle(const uint_t cycle) const
Definition: metric_set.h:509
metric_array_t m_data
Definition: metric_set.h:874
metric_array_t metrics_for_lane(const uint_t lane) const
Definition: metric_set.h:469
metric_set(const metric_array_t &vec, const ::int16_t version, const header_type &header)
Definition: metric_set.h:111
metric_set< T > metric_set_type
Definition: metric_set.h:53
static uint_t to_lane(const MetricT &)
Definition: metric_set.h:924
iterator begin()
Definition: metric_set.h:184
void insert(const id_t id, const metric_type &metric)
Definition: metric_set.h:277
metric_array_t::const_iterator const_iterator
Definition: metric_set.h:77
Metric::uint_t uint_t
Definition: metric_set.h:891