Class StaticCache

Inheritance Relationships

Base Type

Class Documentation

class StaticCache : public tf2::TimeCacheInterface

Public Functions

virtual bool getData(TimePoint time, TransformStorage &data_out, std::string *error_str = 0, TF2Error *error_code = 0)

Virtual methods.

virtual bool insertData(const TransformStorage &new_data)

Insert data into the cache.

virtual void clearList()

Clear the list of stored values.

virtual CompactFrameID getParent(TimePoint time, std::string *error_str = 0, TF2Error *error_code = 0)

Retrieve the parent at a specific time.

virtual P_TimeAndFrameID getLatestTimeAndParent()

Get the latest time stored in this cache, and the parent associated with it. Returns parent = 0 if no data.

virtual unsigned int getListLength()

Debugging information methods.

virtual TimePoint getLatestTimestamp()

Get the latest timestamp cached.

virtual TimePoint getOldestTimestamp()

Get the oldest timestamp cached.