14#ifndef FETCH_CONTAINERS_HPP
15#define FETCH_CONTAINERS_HPP
19#include <opencv2/opencv.hpp>
20#include <sl/Camera.hpp>
25enum class PIXEL_FORMATS
92 PIXEL_FORMATS eFrameType;
93 std::shared_ptr<std::promise<bool>> pCopiedFrameStatus;
105 FrameFetchContainer(T& tFrame, PIXEL_FORMATS eFrameType) : pFrame(&tFrame), eFrameType(eFrameType), pCopiedFrameStatus(std::make_shared<std::promise<bool>>())
117 pFrame(stOtherFrameContainer.pFrame), eFrameType(stOtherFrameContainer.eFrameType), pCopiedFrameStatus(stOtherFrameContainer.pCopiedFrameStatus)
132 if (
this != &stOtherFrameContainer)
135 this->pFrame = stOtherFrameContainer.pFrame;
136 this->eFrameType = stOtherFrameContainer.eFrameType;
137 this->pCopiedFrameStatus = stOtherFrameContainer.pCopiedFrameStatus;
168 std::shared_ptr<std::promise<bool>> pCopiedDataStatus;
178 DataFetchContainer(T& tData) : pData(&tData), pCopiedDataStatus(std::make_shared<std::promise<bool>>()) {}
189 pData(stOtherDataContainer.pData), pCopiedDataStatus(stOtherDataContainer.pCopiedDataStatus)
204 if (
this != &stOtherDataContainer)
207 this->pData = stOtherDataContainer.pData;
208 this->pCopiedDataStatus = stOtherDataContainer.pCopiedDataStatus;
Namespace containing functions or objects/struct used to aid in data storage and passage between thre...
Definition FetchContainers.hpp:68
This struct is used to carry references to any datatype for scheduling and copying....
Definition FetchContainers.hpp:164
DataFetchContainer & operator=(const DataFetchContainer &stOtherDataContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:201
DataFetchContainer(const DataFetchContainer &stOtherDataContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:188
DataFetchContainer(T &tData)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:178
This struct is used to carry references to camera frames for scheduling and copying....
Definition FetchContainers.hpp:88
FrameFetchContainer(T &tFrame, PIXEL_FORMATS eFrameType)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:105
FrameFetchContainer(const FrameFetchContainer &stOtherFrameContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:116
FrameFetchContainer & operator=(const FrameFetchContainer &stOtherFrameContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:129