class
#include <FAST/Data/DataObject.hpp>
DataObject Abstract data object class.
Contents
All data which should flow between process objects should derive from this class.
Base classes
- class Object
- Base class for all FAST objects.
Derived classes
- class Camera
-
template<class DataType>class SimpleDataObject
- class SpatialDataObject
- Abstract base class for all spatial data objects.
- class Transform
- Data object for a 3D affine transform.
-
template<class DataType>class SimpleDataObject
-
template<class DataType>class SimpleDataObject
Public types
- using pointer = std::shared_ptr<DataObject>
Public static functions
- static auto getStaticNameOfClass() -> std::string
Constructors, destructors, conversion operators
- DataObject()
- ~DataObject() virtual
Public functions
- void setMetadata(std::string name, std::string value)
- void setMetadata(std::map<std::string, std::string> metadata)
- auto getMetadata(std::string name) const -> std::string
- auto getMetadata() const -> std::map<std::string, std::string>
- void deleteMetadata(std::string name)
- auto getTimestamp() const -> uint64_t
- void updateModifiedTimestamp()
- auto getNameOfClass() const -> std::string pure virtual
- auto getCreationTimestamp() const -> uint64_t
- void setCreationTimestamp(uint64_t timestamp)
- void setLastFrame(std::string streamer)
- auto isLastFrame() -> bool
- auto isLastFrame(std::string streamer) -> bool
- void removeLastFrame(std::string streamer)
- void clearLastFrame()
- auto getLastFrame() -> std::set<std::string>
- void setFrameData(std::string name, std::string value)
- void setFrameData(std::map<std::string, std::string> frameData)
- auto getFrameData(std::string name) -> std::string
-
template<class T>auto getFrameData(std::string name) -> T
- auto hasFrameData(std::string name) const -> bool
- auto getFrameData() -> std::map<std::string, std::string>
- void accessFinished()
-
template<>auto getFrameData(std::string name) -> int
Protected functions
-
void free(ExecutionDevice::
pointer device) pure virtual - void freeAll() pure virtual
- void blockIfBeingWrittenTo()
- void blockIfBeingAccessed()
Protected variables
- std::mutex mDataIsBeingWrittenToMutex
- std::condition_variable mDataIsBeingWrittenToCondition
- bool mDataIsBeingWrittenTo
- std::mutex mDataIsBeingAccessedMutex
- std::condition_variable mDataIsBeingAccessedCondition
- bool mDataIsBeingAccessed
Function documentation
#include <FAST/Data/DataObject.cpp>
template<>
int fast:: DataObject:: getFrameData(std::string name)