|
MXL : Media eXchange Layer
MXL
|
#include <PosixDiscreteFlowReader.hpp>


Public Member Functions | |
| virtual mxlFlowConfigInfo | getFlowConfigInfo () const override |
| virtual FlowData const & | getFlowData () const override |
| virtual mxlFlowInfo | getFlowInfo () const override |
| virtual mxlFlowRuntimeInfo | getFlowRuntimeInfo () const override |
| virtual mxlStatus | getGrain (std::uint64_t in_index, std::uint16_t in_minValidSlices, mxlGrainInfo *out_grainInfo, std::uint8_t **out_payload) override |
| virtual mxlStatus | getGrain (std::uint64_t in_index, std::uint16_t in_minValidSlices, Timepoint in_deadline, mxlGrainInfo *out_grainInfo, std::uint8_t **out_payload) override |
| PosixDiscreteFlowReader (FlowManager const &manager, uuids::uuid const &flowId, std::unique_ptr< DiscreteFlowData > &&data) | |
| virtual mxlStatus | waitForGrain (std::uint64_t in_index, std::uint16_t in_minValidSlices, Timepoint in_deadline) const override |
| virtual | ~PosixDiscreteFlowReader () |
| Public Member Functions inherited from mxl::lib::FlowReader | |
| std::filesystem::path const & | getDomain () const |
| uuids::uuid const & | getId () const |
| virtual | ~FlowReader () |
Protected Member Functions | |
| virtual bool | isFlowValid () const override |
| Protected Member Functions inherited from mxl::lib::DiscreteFlowReader | |
| FlowReader (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| FlowReader (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
| Protected Member Functions inherited from mxl::lib::FlowReader | |
| bool | checkPermissions () const |
| FlowReader (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| FlowReader (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
Private Member Functions | |
| mxlStatus | getGrainImpl (std::uint64_t in_index, std::uint16_t in_minValidSlices, mxlGrainInfo *out_grainInfo, std::uint8_t **out_payload) const |
| mxlStatus | getGrainImpl (std::uint64_t in_index, std::uint16_t in_minValidSlices, Timepoint in_deadline, mxlGrainInfo *out_grainInfo, std::uint8_t **out_payload) const |
| bool | isFlowValidImpl () const |
Private Attributes | |
| int | _accessFileFd |
| std::unique_ptr< DiscreteFlowData > | _flowData |
Implementation of a flow reader based on POSIX shared memory.
Definition at line 21 of file PosixDiscreteFlowReader.hpp.
| mxl::lib::PosixDiscreteFlowReader::PosixDiscreteFlowReader | ( | FlowManager const & | manager, |
| uuids::uuid const & | flowId, | ||
| std::unique_ptr< DiscreteFlowData > && | data ) |
| [in] | manager | A referene to the flow manager used to obtain additional information about the flows context. |
Definition at line 40 of file PosixDiscreteFlowReader.cpp.
|
virtual |
Close the access file fd.
Definition at line 53 of file PosixDiscreteFlowReader.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 80 of file PosixDiscreteFlowReader.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 66 of file PosixDiscreteFlowReader.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 75 of file PosixDiscreteFlowReader.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 85 of file PosixDiscreteFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::DiscreteFlowReader.
Definition at line 136 of file PosixDiscreteFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::DiscreteFlowReader.
Definition at line 110 of file PosixDiscreteFlowReader.cpp.
|
private |
Implementation of the various forms of getGrain() that can also be used by other methods that have previously asserted that we're operating on a valid flow (i.e. that _flowData is a valid pointer).
Definition at line 162 of file PosixDiscreteFlowReader.cpp.
|
private |
Implementation of the blocking form of getGrain() and waitForGrain() that can also be used by other methods that have previously asserted that we're operating on a valid flow (i.e. that _flowData is a valid pointer).
Definition at line 227 of file PosixDiscreteFlowReader.cpp.
|
nodiscardoverrideprotectedvirtual |
Implements mxl::lib::FlowReader.
Definition at line 251 of file PosixDiscreteFlowReader.cpp.
|
nodiscardprivate |
Implementation of isFlowValid() that can be used by other methods that have previously asserted that we're operating on a valid flow (i.e. that _flowData is a valid pointer).
Definition at line 256 of file PosixDiscreteFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::DiscreteFlowReader.
Definition at line 90 of file PosixDiscreteFlowReader.cpp.
|
private |
Definition at line 96 of file PosixDiscreteFlowReader.hpp.
|
private |
Definition at line 95 of file PosixDiscreteFlowReader.hpp.