14#ifndef FETCH_CONTAINERS_HPP
15#define FETCH_CONTAINERS_HPP
19#include <opencv2/opencv.hpp>
20#include <sl/Camera.hpp>
25enum class PIXEL_FORMATS
90 PIXEL_FORMATS eFrameType;
91 std::shared_ptr<std::promise<bool>> pCopiedFrameStatus;
103 FrameFetchContainer(T& tFrame, PIXEL_FORMATS eFrameType) : pFrame(&tFrame), eFrameType(eFrameType), pCopiedFrameStatus(
std::make_shared<
std::promise<bool>>())
115 pFrame(stOtherFrameContainer.pFrame), eFrameType(stOtherFrameContainer.eFrameType), pCopiedFrameStatus(stOtherFrameContainer.pCopiedFrameStatus)
130 if (
this != &stOtherFrameContainer)
133 this->pFrame = stOtherFrameContainer.pFrame;
134 this->eFrameType = stOtherFrameContainer.eFrameType;
135 this->pCopiedFrameStatus = stOtherFrameContainer.pCopiedFrameStatus;
166 std::shared_ptr<std::promise<bool>> pCopiedDataStatus;
187 pData(stOtherDataContainer.pData), pCopiedDataStatus(stOtherDataContainer.pCopiedDataStatus)
202 if (
this != &stOtherDataContainer)
205 this->pData = stOtherDataContainer.pData;
206 this->pCopiedDataStatus = stOtherDataContainer.pCopiedDataStatus;
Namespace containing functions or objects/struct used to aid in data storage and passage between thre...
Definition FetchContainers.hpp:66
This struct is used to carry references to any datatype for scheduling and copying....
Definition FetchContainers.hpp:162
DataFetchContainer & operator=(const DataFetchContainer &stOtherDataContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:199
DataFetchContainer(const DataFetchContainer &stOtherDataContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:186
DataFetchContainer(T &tData)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:176
This struct is used to carry references to camera frames for scheduling and copying....
Definition FetchContainers.hpp:86
FrameFetchContainer(T &tFrame, PIXEL_FORMATS eFrameType)
Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:103
FrameFetchContainer(const FrameFetchContainer &stOtherFrameContainer)
Copy Construct a new Frame Fetch Container object.
Definition FetchContainers.hpp:114
FrameFetchContainer & operator=(const FrameFetchContainer &stOtherFrameContainer)
Operator equals for FrameFetchContainer. Shallow Copy.
Definition FetchContainers.hpp:127