XLinkIn node. Receives messages over XLink. More...
#include <XLinkIn.hpp>
Public Member Functions | |
std::uint32_t | getMaxDataSize () const |
Get maximum messages size in bytes. More... | |
std::uint32_t | getNumFrames () const |
Get number of frames in pool. More... | |
std::string | getStreamName () const |
Get stream name. More... | |
void | setMaxDataSize (std::uint32_t maxDataSize) |
void | setNumFrames (std::uint32_t numFrames) |
void | setStreamName (const std::string &name) |
XLinkIn (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId) | |
XLinkIn (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId, std::unique_ptr< Properties > props) | |
![]() | |
std::unique_ptr< Node > | clone () const override |
const char * | getName () const override |
![]() | |
virtual std::unique_ptr< Node > | clone () const =0 |
Deep copy the node. More... | |
AssetManager & | getAssetManager () |
Get node AssetManager as a reference. More... | |
const AssetManager & | getAssetManager () const |
Get node AssetManager as a const reference. More... | |
std::vector< Input * > | getInputRefs () |
Retrieves reference to node inputs. More... | |
std::vector< const Input * > | getInputRefs () const |
Retrieves reference to node inputs. More... | |
std::vector< Input > | getInputs () |
Retrieves all nodes inputs. More... | |
virtual const char * | getName () const =0 |
Retrieves nodes name. More... | |
std::vector< Output * > | getOutputRefs () |
Retrieves reference to node outputs. More... | |
std::vector< const Output * > | getOutputRefs () const |
Retrieves reference to node outputs. More... | |
std::vector< Output > | getOutputs () |
Retrieves all nodes outputs. More... | |
Pipeline | getParentPipeline () |
const Pipeline | getParentPipeline () const |
Node (const std::shared_ptr< PipelineImpl > &p, Id nodeId, std::unique_ptr< Properties > props) | |
Constructs Node. More... | |
virtual | ~Node ()=default |
Public Attributes | |
Output | out {*this, "out", Output::Type::MSender, {{DatatypeEnum::Buffer, true}}} |
![]() | |
Properties & | properties |
Underlying properties. More... | |
![]() | |
const Id | id |
Id of node. More... | |
Properties & | properties |
Static Public Attributes | |
constexpr static const char * | NAME = "XLinkIn" |
Additional Inherited Members | |
![]() | |
using | Properties = XLinkInProperties |
![]() | |
using | Id = std::int64_t |
Node identificator. Unique for every node on a single Pipeline. More... | |
![]() | |
virtual Properties & | getProperties () |
virtual tl::optional< OpenVINO::Version > | getRequiredOpenVINOVersion () |
void | setInputMapRefs (InputMap *inMapRef) |
void | setInputMapRefs (std::initializer_list< InputMap * > l) |
void | setInputRefs (Input *inRef) |
void | setInputRefs (std::initializer_list< Input * > l) |
void | setOutputMapRefs (OutputMap *outMapRef) |
void | setOutputMapRefs (std::initializer_list< OutputMap * > l) |
void | setOutputRefs (Output *outRef) |
void | setOutputRefs (std::initializer_list< Output * > l) |
![]() | |
AssetManager | assetManager |
std::unordered_map< std::string, InputMap * > | inputMapRefs |
std::unordered_map< std::string, Input * > | inputRefs |
std::unordered_map< std::string, OutputMap * > | outputMapRefs |
std::unordered_map< std::string, Output * > | outputRefs |
std::weak_ptr< PipelineImpl > | parent |
copyable_unique_ptr< Properties > | propertiesHolder |
XLinkIn node. Receives messages over XLink.
Definition at line 14 of file XLinkIn.hpp.
dai::node::XLinkIn::XLinkIn | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId | ||
) |
Definition at line 6 of file XLinkIn.cpp.
dai::node::XLinkIn::XLinkIn | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId, | ||
std::unique_ptr< Properties > | props | ||
) |
Definition at line 7 of file XLinkIn.cpp.
std::uint32_t dai::node::XLinkIn::getMaxDataSize | ( | ) | const |
Get maximum messages size in bytes.
Definition at line 28 of file XLinkIn.cpp.
std::uint32_t dai::node::XLinkIn::getNumFrames | ( | ) | const |
Get number of frames in pool.
Definition at line 32 of file XLinkIn.cpp.
std::string dai::node::XLinkIn::getStreamName | ( | ) | const |
Get stream name.
Definition at line 24 of file XLinkIn.cpp.
void dai::node::XLinkIn::setMaxDataSize | ( | std::uint32_t | maxDataSize | ) |
Set maximum message size it can receive
maxDataSize | Maximum size in bytes |
Definition at line 16 of file XLinkIn.cpp.
void dai::node::XLinkIn::setNumFrames | ( | std::uint32_t | numFrames | ) |
Set number of frames in pool for sending messages forward
numFrames | Maximum number of frames in pool |
Definition at line 20 of file XLinkIn.cpp.
void dai::node::XLinkIn::setStreamName | ( | const std::string & | name | ) |
Specifies XLink stream name to use.
The name should not start with double underscores '__', as those are reserved for internal use.
name | Stream name |
Definition at line 12 of file XLinkIn.cpp.
|
staticconstexpr |
Definition at line 16 of file XLinkIn.hpp.
Output dai::node::XLinkIn::out {*this, "out", Output::Type::MSender, {{DatatypeEnum::Buffer, true}}} |
Outputs message of same type as send from host.
Definition at line 25 of file XLinkIn.hpp.