Pipeline layout (Read Only). More...
#include <Pipeline.hpp>
Classes | |
struct | Connection |
Object describing connetion betwen elements in a pipeline. More... | |
Public Types | |
enum | ComponentKind { THIS_PIPELINE = -1, FILTER = 0, PIPELINE = 1 } |
Flags describing the component kind. More... | |
Public Member Functions | |
AbstractPipelineLayout (const AbstractPipelineLayout &c) | |
AbstractPipelineLayout constructor. More... | |
void | checkElement (int i) const |
Check if element exists and raise an exception if any errors occur. More... | |
int | getNumElements (void) const |
Get the number of elements. More... | |
int | getNumConnections (void) const |
Get the number of connections. More... | |
void | getInfoElements (int &numFilters, int &numPipelines, int &numUniformVariables) |
Get the total number of Filters and Pipelines contained by this pipeline. More... | |
int | getElementIndex (const std::string &name) const |
Get the ID of an element knowing its name. More... | |
bool | doesElementExist (const std::string &name) const |
Check if an element exists knowing its name. More... | |
ComponentKind | getElementKind (int i) const |
Get the kind of an element. More... | |
const std::string & | getElementName (int i) const |
Get the name of an element. More... | |
int | getElementID (int i) const |
Get element ID in global structure. More... | |
int | getElementID (const std::string &name) const |
Get element ID in global structure. More... | |
AbstractComponentLayout & | componentLayout (int i) const |
Get the component layout by its index. More... | |
AbstractComponentLayout & | componentLayout (const std::string &name) const |
Get the component layout by its name. More... | |
AbstractFilterLayout & | filterLayout (int i) const |
Get the filter layout by its index. More... | |
AbstractFilterLayout & | filterLayout (const std::string &name) const |
Get the filter layout by its name. More... | |
AbstractPipelineLayout & | pipelineLayout (int i) const |
Get the pipeline layout by its index. More... | |
AbstractPipelineLayout & | pipelineLayout (const std::string &name) const |
Get the pipeline layout by its name. More... | |
Connection | getConnection (int i) const |
Get the connection by its ID. More... | |
bool | check (bool exception=true) |
Check the validity of the pipeline layout. More... | |
Public Member Functions inherited from Glip::CorePipeline::AbstractComponentLayout | |
AbstractComponentLayout (const AbstractComponentLayout &) | |
AbstractComponentLayout constructor. More... | |
void | checkInputPort (int i) const |
Check the validity of an input port. Raise an exception if any errors occur. More... | |
void | checkOutputPort (int i) const |
Check the validity of an output port. Raise an exception if any errors occur. More... | |
virtual std::string | getFullName (void) const |
Returns the full name of this component (might be overloaded). More... | |
const std::string & | getLayoutName (void) const |
Returns the layout name of this component. More... | |
int | getNumInputPort (void) const |
Get the number of input ports. More... | |
const std::string & | getInputPortName (int i) const |
Return the name of an input port. Raise an exception if any errors occur. More... | |
int | getInputPortID (const std::string &name) const |
Get the index of an input port knowing its name. Raise an exception if any errors occur. More... | |
bool | doesInputPortExist (const std::string &name) const |
Check if an input port exists, knowing its name. More... | |
int | getNumOutputPort (void) const |
Get the number of output ports. More... | |
const std::string & | getOutputPortName (int i) const |
Return the name of an output port. Raise an exception if any errors occur. More... | |
int | getOutputPortID (const std::string &name) const |
Get the index of an output port knowing its name. Raise an exception if any errors occur. More... | |
bool | doesOutputPortExist (const std::string &name) const |
Check if an output port exists, knowing its name. More... | |
Protected Member Functions | |
AbstractPipelineLayout (const std::string &type) | |
AbstractPipelineLayout constructor. More... | |
void | setElementID (int i, int ID) |
Set element ID in global structure or raise an exception if any errors occur. More... | |
std::vector< Connection > | getConnectionDestinations (int id, int p) |
Get all destinations of an output port. More... | |
Connection | getConnectionSource (int id, int p) |
Get the source of an input port. More... | |
Protected Member Functions inherited from Glip::CorePipeline::AbstractComponentLayout | |
AbstractComponentLayout (const std::string &_layoutName) | |
AbstractComponentLayout constructor. More... | |
AbstractComponentLayout (const std::string &_layoutName, const std::vector< std::string > &_inputPorts, const std::vector< std::string > &_outputPorts) | |
AbstractComponentLayout constructor. More... | |
Pipeline layout (Read Only).
|
protected |
AbstractPipelineLayout constructor.
type | Typename of the pipeline. |
AbstractPipelineLayout::AbstractPipelineLayout | ( | const AbstractPipelineLayout & | c | ) |
AbstractPipelineLayout constructor.
c | Copy. |
bool AbstractPipelineLayout::check | ( | bool | exception = true | ) |
Check the validity of the pipeline layout.
exception | If set to true, an exception would be raised if any error is found. |
void AbstractPipelineLayout::checkElement | ( | int | i | ) | const |
Check if element exists and raise an exception if any errors occur.
i | The ID of the element. |
AbstractComponentLayout & AbstractPipelineLayout::componentLayout | ( | int | i | ) | const |
Get the component layout by its index.
i | The ID of the component. |
AbstractComponentLayout & AbstractPipelineLayout::componentLayout | ( | const std::string & | name | ) | const |
Get the component layout by its name.
name | The name of the element. |
bool AbstractPipelineLayout::doesElementExist | ( | const std::string & | name | ) | const |
Check if an element exists knowing its name.
name | The name of the element. |
AbstractFilterLayout & AbstractPipelineLayout::filterLayout | ( | int | i | ) | const |
Get the filter layout by its index.
i | The ID of the filter layout. |
AbstractFilterLayout & AbstractPipelineLayout::filterLayout | ( | const std::string & | name | ) | const |
Get the filter layout by its name.
name | The name of the filter layout. |
AbstractPipelineLayout::Connection AbstractPipelineLayout::getConnection | ( | int | i | ) | const |
Get the connection by its ID.
i | The ID of the connection. |
|
protected |
Get all destinations of an output port.
id | The ID of the output element. |
p | The port of the output element. |
|
protected |
Get the source of an input port.
id | The ID of the input element. |
p | The port of the input element. |
int AbstractPipelineLayout::getElementID | ( | int | i | ) | const |
Get element ID in global structure.
i | The ID of the element in the local pipeline layout. |
int AbstractPipelineLayout::getElementID | ( | const std::string & | name | ) | const |
Get element ID in global structure.
name | The ID of the element in the local pipeline layout. |
int AbstractPipelineLayout::getElementIndex | ( | const std::string & | name | ) | const |
Get the ID of an element knowing its name.
name | The name of the element. |
ComponentKind AbstractPipelineLayout::getElementKind | ( | int | i | ) | const |
Get the kind of an element.
i | The ID of the element. |
const std::string & AbstractPipelineLayout::getElementName | ( | int | i | ) | const |
Get the name of an element.
i | The name of the element. |
void AbstractPipelineLayout::getInfoElements | ( | int & | numFilters, |
int & | numPipelines, | ||
int & | numUniformVariables | ||
) |
Get the total number of Filters and Pipelines contained by this pipeline.
numFilters | The total number of filters. |
numPipelines | The total number of pipelines (including this one). |
numUniformVariables | APPROXIMATION to the total number of uniform variables : in some cases, the number might be larger than the actual number of uniform variables (this is because a variable can appear in both the vertex and fragment shader). |
int AbstractPipelineLayout::getNumConnections | ( | void | ) | const |
Get the number of connections.
int AbstractPipelineLayout::getNumElements | ( | void | ) | const |
Get the number of elements.
AbstractPipelineLayout & AbstractPipelineLayout::pipelineLayout | ( | int | i | ) | const |
Get the pipeline layout by its index.
i | The ID of the pipeline layout. |
AbstractPipelineLayout & AbstractPipelineLayout::pipelineLayout | ( | const std::string & | name | ) | const |
Get the pipeline layout by its name.
name | The name of the pipeline layout. |
|
protected |
Set element ID in global structure or raise an exception if any errors occur.
i | The ID of the element in the local pipeline layout. |
ID | The ID of the element in the global structure. |