14#ifndef FETCH_CONTAINERS_HPP
15#define FETCH_CONTAINERS_HPP
19#include <opencv2/opencv.hpp>
20#include <sl/Camera.hpp>
25enum class PIXEL_FORMATS
93 PIXEL_FORMATS eFrameType;
94 std::shared_ptr<std::promise<bool>> pCopiedFrameStatus;
106 FrameFetchContainer(T& tFrame, PIXEL_FORMATS eFrameType) : pFrame(&tFrame), eFrameType(eFrameType), pCopiedFrameStatus(
std::make_shared<
std::promise<bool>>())
118 pFrame(stOtherFrameContainer.pFrame), eFrameType(stOtherFrameContainer.eFrameType), pCopiedFrameStatus(stOtherFrameContainer.pCopiedFrameStatus)
133 if (
this != &stOtherFrameContainer)
136 this->pFrame = stOtherFrameContainer.pFrame;
137 this->eFrameType = stOtherFrameContainer.eFrameType;
138 this->pCopiedFrameStatus = stOtherFrameContainer.pCopiedFrameStatus;
169 std::shared_ptr<std::promise<bool>> pCopiedDataStatus;
190 pData(stOtherDataContainer.pData), pCopiedDataStatus(stOtherDataContainer.pCopiedDataStatus)
205 if (
this != &stOtherDataContainer)
208 this->pData = stOtherDataContainer.pData;
209 this->pCopiedDataStatus = stOtherDataContainer.pCopiedDataStatus;
Namespace containing functions or objects/struct used to aid in data storage and passage between thre...
Definition FetchContainers.hpp:69
This struct is used to carry references to any datatype for scheduling and copying....
Definition FetchContainers.hpp:165
DataFetchContainer & operator=(const DataFetchContainer &stOtherDataContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:202
DataFetchContainer(const DataFetchContainer &stOtherDataContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:189
DataFetchContainer(T &tData)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:179
This struct is used to carry references to camera frames for scheduling and copying....
Definition FetchContainers.hpp:89
FrameFetchContainer(T &tFrame, PIXEL_FORMATS eFrameType)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:106
FrameFetchContainer(const FrameFetchContainer &stOtherFrameContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:117
FrameFetchContainer & operator=(const FrameFetchContainer &stOtherFrameContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:130