#include <Node.hpp>
|
bool | getBlocking () const |
|
Node & | getParent () |
|
const Node & | getParent () const |
|
int | getQueueSize () const |
|
bool | getReusePreviousMessage () const |
|
bool | getWaitForMessage () const |
|
| Input (Node &par, std::string group, std::string n, Type t, bool blocking, int queueSize, bool waitForMessage, std::vector< DatatypeHierarchy > types) |
| Constructs Input with specified blocking and queueSize as well as additional options. More...
|
|
| Input (Node &par, std::string n, Type t, bool blocking, int queueSize, bool waitForMessage, std::vector< DatatypeHierarchy > types) |
| Constructs Input with specified blocking and queueSize as well as additional options. More...
|
|
| Input (Node &par, std::string n, Type t, bool blocking, int queueSize, std::vector< DatatypeHierarchy > types) |
| Constructs Input with specified blocking and queueSize options. More...
|
|
| Input (Node &par, std::string n, Type t, std::vector< DatatypeHierarchy > types) |
| Constructs Input with default blocking and queueSize options. More...
|
|
void | setBlocking (bool blocking) |
|
void | setQueueSize (int size) |
|
void | setReusePreviousMessage (bool reusePreviousMessage) |
|
void | setWaitForMessage (bool waitForMessage) |
|
std::string | toString () const |
| Input to string representation. More...
|
|
Definition at line 147 of file Node.hpp.
◆ Type
Enumerator |
---|
SReceiver | |
MReceiver | |
Definition at line 151 of file Node.hpp.
◆ Input() [1/4]
Constructs Input with default blocking and queueSize options.
Definition at line 166 of file Node.hpp.
◆ Input() [2/4]
dai::Node::Input::Input |
( |
Node & |
par, |
|
|
std::string |
n, |
|
|
Type |
t, |
|
|
bool |
blocking, |
|
|
int |
queueSize, |
|
|
std::vector< DatatypeHierarchy > |
types |
|
) |
| |
|
inline |
Constructs Input with specified blocking and queueSize options.
Definition at line 170 of file Node.hpp.
◆ Input() [3/4]
dai::Node::Input::Input |
( |
Node & |
par, |
|
|
std::string |
n, |
|
|
Type |
t, |
|
|
bool |
blocking, |
|
|
int |
queueSize, |
|
|
bool |
waitForMessage, |
|
|
std::vector< DatatypeHierarchy > |
types |
|
) |
| |
|
inline |
Constructs Input with specified blocking and queueSize as well as additional options.
Definition at line 174 of file Node.hpp.
◆ Input() [4/4]
dai::Node::Input::Input |
( |
Node & |
par, |
|
|
std::string |
group, |
|
|
std::string |
n, |
|
|
Type |
t, |
|
|
bool |
blocking, |
|
|
int |
queueSize, |
|
|
bool |
waitForMessage, |
|
|
std::vector< DatatypeHierarchy > |
types |
|
) |
| |
|
inline |
Constructs Input with specified blocking and queueSize as well as additional options.
Definition at line 184 of file Node.hpp.
◆ getBlocking()
bool dai::Node::Input::getBlocking |
( |
| ) |
const |
Get input queue behavior
- Returns
- True blocking, false overwriting
Definition at line 98 of file Node.cpp.
◆ getParent() [1/2]
Node& dai::Node::Input::getParent |
( |
| ) |
|
|
inline |
◆ getParent() [2/2]
const Node& dai::Node::Input::getParent |
( |
| ) |
const |
|
inline |
◆ getQueueSize()
int dai::Node::Input::getQueueSize |
( |
| ) |
const |
Get input queue size.
- Returns
- Maximum input queue size
Definition at line 109 of file Node.cpp.
◆ getReusePreviousMessage()
bool dai::Node::Input::getReusePreviousMessage |
( |
| ) |
const |
Equivalent to getWaitForMessage but with inverted logic.
Definition at line 128 of file Node.cpp.
◆ getWaitForMessage()
bool dai::Node::Input::getWaitForMessage |
( |
| ) |
const |
Get behavior whether to wait for this input when a Node processes certain data or not
- Returns
- Whether to wait for message to arrive to this input or not
Definition at line 120 of file Node.cpp.
◆ setBlocking()
void dai::Node::Input::setBlocking |
( |
bool |
blocking | ) |
|
Overrides default input queue behavior.
- Parameters
-
blocking | True blocking, false overwriting |
Definition at line 94 of file Node.cpp.
◆ setQueueSize()
void dai::Node::Input::setQueueSize |
( |
int |
size | ) |
|
Overrides default input queue size. If queue size fills up, behavior depends on blocking
attribute
- Parameters
-
size | Maximum input queue size |
Definition at line 105 of file Node.cpp.
◆ setReusePreviousMessage()
void dai::Node::Input::setReusePreviousMessage |
( |
bool |
reusePreviousMessage | ) |
|
Equivalent to setWaitForMessage but with inverted logic.
Definition at line 124 of file Node.cpp.
◆ setWaitForMessage()
void dai::Node::Input::setWaitForMessage |
( |
bool |
waitForMessage | ) |
|
Overrides default wait for message behavior. Applicable for nodes with multiple inputs. Specifies behavior whether to wait for this input when a Node processes certain data or not.
- Parameters
-
waitForMessage | Whether to wait for message to arrive to this input or not |
Definition at line 116 of file Node.cpp.
◆ toString()
std::string dai::Node::Input::toString |
( |
| ) |
const |
◆ Output
◆ blocking
◆ defaultBlocking
bool dai::Node::Input::defaultBlocking {true} |
◆ defaultQueueSize
int dai::Node::Input::defaultQueueSize {8} |
◆ defaultWaitForMessage
bool dai::Node::Input::defaultWaitForMessage {false} |
◆ group
std::string dai::Node::Input::group = "" |
◆ name
std::string dai::Node::Input::name |
◆ parent
Node& dai::Node::Input::parent |
|
private |
◆ possibleDatatypes
◆ queueSize
◆ type
Type dai::Node::Input::type |
◆ waitForMessage
The documentation for this class was generated from the following files: