23 auto it = _namedInputs.find(name);
24 if (it == _namedInputs.end())
throw PortAccessError(
25 "Pothos::Block::input("+name+
")",
"input port name does not exist");
31 if (index >= _indexedInputs.size())
throw PortAccessError(
32 "Pothos::Block::input("+std::to_string(index)+
")",
"input port index does not exist");
33 return _indexedInputs[index];
38 auto it = _namedOutputs.find(name);
39 if (it == _namedOutputs.end())
throw PortAccessError(
40 "Pothos::Block::output("+name+
")",
"output port name does not exist");
46 if (index >= _indexedOutputs.size())
throw PortAccessError(
47 "Pothos::Block::output("+std::to_string(index)+
")",
"output port index does not exist");
48 return _indexedOutputs[index];
53 return _indexedInputs;
58 return _indexedOutputs;
Definition: WorkInfo.hpp:23
const std::vector< InputPort * > & inputs(void) const
Definition: BlockImpl.hpp:51
Definition: OutputPort.hpp:30
const WorkInfo & workInfo(void) const
Definition: BlockImpl.hpp:16
OutputPort * output(const std::string &name) const
Definition: BlockImpl.hpp:36
const std::map< std::string, InputPort * > & allInputs(void) const
Definition: BlockImpl.hpp:61
InputPort * input(const std::string &name) const
Definition: BlockImpl.hpp:21
const std::vector< OutputPort * > & outputs(void) const
Definition: BlockImpl.hpp:56
const std::map< std::string, OutputPort * > & allOutputs(void) const
Definition: BlockImpl.hpp:66