Skip to main content
Definition of an Operator pin.

Members

Public attributes

Variable name

Name of pin. Type: std::string

Variable position

Pin position number. Type: int

Variable documentation

Description of pin. Type: std::string

Variable is_optional

Type: bool

Variable is_ellipsis

Type: bool

Variable is_inplace

Type: bool

Variable derived_type_name

Type: std::string

Variable accepted_types

Type: std::vector< TypeDescriptor >

Variable aliases

Type: std::vector< std::string >

Public functions

Function PinDefinition

Return type:

Function PinDefinition

Create pin definition for given pin. Parameters:
  • int pin_position: [in] Pin for which to create definition.
Return type:

Function setName

Set name of pin. Returns: Pin definition. Parameters:
  • std::string const & n: [in] Name of pin.
Return type: PinDefinition &

Function setDerivedTypeName

Allows to give a custom container type as a pin type. Returns: Pin definition. Parameters:
  • std::string const & n: [in] Name of the derived class.
Return type: PinDefinition &

Function setPosition

Set input pin position. Returns: Pin definition. Parameters:
  • int n: [in] Postion of pin.
Return type: PinDefinition &

Function setDoc

Set description of pin. Returns: Pin definition. Parameters:
  • std::string const & n: [in] Pin description.
Return type: PinDefinition &

Function setOptional

Set indication that pin is optional. Returns: Pin definition. Parameters:
  • bool n: [in] Flag indicating if pin is optional.
Return type: PinDefinition &

Function setEllipsis

Returns: Pin definition. Parameters:
  • bool n
Return type: PinDefinition &

Function setAcceptedTypes

Returns: Pin definition. Parameters: Return type: PinDefinition &

Function setAliases

Returns: Pin definition. Parameters:
  • std::vector< std::string > const & n
Return type: PinDefinition &

Function addAlias

Returns: Pin definition. Parameters:
  • std::string const & alias
Return type: PinDefinition &