15 #ifndef DETECTORGRAPH_INCLUDE_STATESNAPSHOT_HPP_ 16 #define DETECTORGRAPH_INCLUDE_STATESNAPSHOT_HPP_ 49 StateSnapshot(
const std::list< ptr::shared_ptr<const TopicState> >& arTopicStates);
81 return ptr::static_pointer_cast<
const T>(
GetState(DetectorGraph::TopicState::GetId<T>()));
103 void GetTopicStates(std::list< ptr::shared_ptr<const TopicState> >& aOutTopicStateList)
const;
106 void UpdateValues(
const std::list< ptr::shared_ptr<const TopicState> >& arTopicStates);
109 std::map< TopicStateIdType, ptr::shared_ptr<const TopicState> > mStateStore;
110 unsigned int mStateVersion;
115 #endif // DETECTORGRAPH_INCLUDE_STATESNAPSHOT_HPP_ void GetTopicStates(std::list< ptr::shared_ptr< const TopicState > > &aOutTopicStateList) const
Gets TopicStates stored in this snapshot.
StateSnapshot()
T=0 Constructor.
unsigned int GetStateVersion() const
Returns the version of this snapshot.
~StateSnapshot()
Destructor.
The collection of TopicStates that represents the graph state so far.
ptr::shared_ptr< const T > GetState() const
Returns the specific TopicState for a given its type.
size_t GetMapSize() const
Returns the number of TopicStates in the Snapshot.