Emergency 20 Dokumentation  4.2.0
MapCacheStatistics-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9  namespace multiplayer
10  {
11 
12 
13  //[-------------------------------------------------------]
14  //[ Public methods ]
15  //[-------------------------------------------------------]
16  inline const std::vector<uint64>& ValueHistory::getValues() const
17  {
18  return mValues;
19  }
20 
21  inline const boost::container::flat_map<uint16, uint64>& ValueHistory::getPerSecondValues() const
22  {
23  return mPerSecondData;
24  }
25 
27  {
28  return mLowestValue;
29  }
30 
32  {
33  return mHighestValue;
34  }
35 
36  inline const std::unordered_map<uint8, ValueHistory>& ComponentValueHistory::getList() const
37  {
38  return mComponentValueHistory;
39  }
40 
42  {
43  return mValueCount;
44  }
45 
46  inline const std::unordered_map<uint8, ValueHistory>& MultiValueHistory::getList() const
47  {
48  return mMultiValueHistory;
49  }
50 
51  inline size_t MultiValueHistory::getValueCount() const
52  {
53  return mValueCount;
54  }
55 
56 
57 //[-------------------------------------------------------]
58 //[ Namespace ]
59 //[-------------------------------------------------------]
60  } // multiplayer
61 } // em5
Definition: ActionPriority.h:13
uint64 getLowestValue() const
Returns the lowest value which was added to the history.
Definition: MapCacheStatistics-inl.h:26
size_t getValueCount() const
Returns how many entries each value history entry has (This value is only correct for all entries...
Definition: MapCacheStatistics-inl.h:51
uint64_t uint64
Definition: PlatformTypes.h:184
const std::vector< uint64 > & getValues() const
Returns the stored values.
Definition: MapCacheStatistics-inl.h:16
const std::unordered_map< uint8, ValueHistory > & getList() const
Returns the list of the stored per component value history.
Definition: MapCacheStatistics-inl.h:46
uint64 getHighestValue() const
Returns the highest value which was added to the history.
Definition: MapCacheStatistics-inl.h:31
const std::unordered_map< uint8, ValueHistory > & getList() const
Returns the list of the stored per component value history.
Definition: MapCacheStatistics-inl.h:36
const boost::container::flat_map< uint16, uint64 > & getPerSecondValues() const
Returns the stored per second values.
Definition: MapCacheStatistics-inl.h:21
size_t getValueCount() const
Returns how many entries each value history entry has (This value is only correct for all entries...
Definition: MapCacheStatistics-inl.h:41