Represents a named output to a Region.
More...
#include <Output.hpp>
Represents a named output to a Region.
Definition at line 43 of file Output.hpp.
Constructor.
- Parameters
-
region | The region that the output belongs to. |
type | The type of the output, TODO |
isRegionLevel | Whether the output is region level, i.e. TODO |
void nupic::Output::addLink |
( |
Link * |
link | ) |
|
const Array& nupic::Output::getData |
( |
| ) |
const |
Get the data of the output.
- Returns
- A constant reference to the data of the output as an
Array
- Note
- It's mportant to return a const array so caller can't reallocate the buffer.
const std::string& nupic::Output::getName |
( |
| ) |
const |
Get the name of the output.
- Returns
- The name of the output
size_t nupic::Output::getNodeOutputElementCount |
( |
| ) |
const |
Get the count of node output element.
- Returns
- The count of node output element, previously set by initialize().
Region& nupic::Output::getRegion |
( |
| ) |
const |
Get the Region that the output belongs to.
- Returns
- The mutable reference to the Region that the output belongs to
bool nupic::Output::hasOutgoingLinks |
( |
| ) |
|
Tells whether the output has outgoing links.
- Note
- We cannot delete a region if there are any outgoing links This allows us to check in Network.removeRegion() and Network.~Network().
- Returns
- Whether the output has outgoing links
void nupic::Output::initialize |
( |
size_t |
size | ) |
|
Initialize the Output .
- Parameters
-
size | The count of node output element, i.e. TODO |
- Note
- It's safe to reinitialize an initialized Output with the same parameters.
bool nupic::Output::isRegionLevel |
( |
| ) |
const |
Tells whether the output is region level.
- Returns
- Whether the output is region level, i.e. TODO
void nupic::Output::removeLink |
( |
Link * |
link | ) |
|
void nupic::Output::setName |
( |
const std::string & |
name | ) |
|
Set the name for the output.
Output need to know their own name for error messages.
- Parameters
-
name | The name of the output |
The documentation for this class was generated from the following file: