Class TimeCacheInterface
Defined in File time_cache.h
Inheritance Relationships
Derived Types
public tf2::StaticCache
(Class StaticCache)public tf2::TimeCache
(Class TimeCache)
Class Documentation
-
class TimeCacheInterface
Subclassed by tf2::StaticCache, tf2::TimeCache
Public Functions
-
virtual ~TimeCacheInterface() = default
-
virtual bool getData(tf2::TimePoint time, tf2::TransformStorage &data_out, std::string *error_str = 0, TF2Error *error_code = 0) = 0
Access data from the cache returns false if data unavailable (should be thrown as lookup exception)
-
virtual bool insertData(const tf2::TransformStorage &new_data) = 0
Insert data into the cache.
-
virtual void clearList() = 0
Clear the list of stored values.
-
virtual CompactFrameID getParent(tf2::TimePoint time, std::string *error_str = 0, TF2Error *error_code = 0) = 0
Retrieve the parent at a specific time.
-
virtual P_TimeAndFrameID getLatestTimeAndParent() = 0
Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no data.
-
virtual unsigned int getListLength() = 0
Debugging information methods.
Get the length of the stored list
-
virtual ~TimeCacheInterface() = default