Skip to main content

DPF C++ client library 2023 R2

ansys::dpf::PinDefinition Struct Reference

Last update: 10.07.2023

#include <dpf_api.h>

Public Member Functions

 PinDefinition (int pin_position)
 
PinDefinitionsetName (std::string const &n)
 
PinDefinitionsetPosition (int n)
 
PinDefinitionsetDoc (std::string const &n)
 
PinDefinitionsetOptional (bool n)
 
PinDefinitionsetEllipsis (bool n)
 
PinDefinitionsetAcceptedTypes (std::vector< TypeDescriptor > const &n)
 

Data Fields

std::string name
 
int position
 
std::string documentation
 
bool is_optional
 
bool is_ellipsis
 
std::vector< TypeDescriptoraccepted_types
 

Detailed Description

Definition of an Operator pin.

Constructor & Destructor Documentation

◆ PinDefinition()

ansys::dpf::PinDefinition::PinDefinition ( int  pin_position)
inline

Create pin definition for given pin.

Parameters
[in]pin_positionPin for which to create definition.

Member Function Documentation

◆ setAcceptedTypes()

PinDefinition & ansys::dpf::PinDefinition::setAcceptedTypes ( std::vector< TypeDescriptor > const &  n)
inline
Returns
Pin definition.

◆ setDoc()

PinDefinition & ansys::dpf::PinDefinition::setDoc ( std::string const &  n)
inline

Set description of pin.

Returns
Pin definition.
Parameters
[in]nPin description.

◆ setEllipsis()

PinDefinition & ansys::dpf::PinDefinition::setEllipsis ( bool  n)
inline
Returns
Pin definition.

◆ setName()

PinDefinition & ansys::dpf::PinDefinition::setName ( std::string const &  n)
inline

Set name of pin.

Returns
Pin definition.
Parameters
[in]nName of pin.

◆ setOptional()

PinDefinition & ansys::dpf::PinDefinition::setOptional ( bool  n)
inline

Set indication that pin is optional.

Returns
Pin definition.
Parameters
[in]nFlag indicating if pin is optional.

◆ setPosition()

PinDefinition & ansys::dpf::PinDefinition::setPosition ( int  n)
inline

Set input pin position.

Returns
Pin definition.
Parameters
[in]nPostion of pin.

Field Documentation

◆ documentation

std::string ansys::dpf::PinDefinition::documentation

Description of pin.

◆ name

std::string ansys::dpf::PinDefinition::name

Name of pin.

◆ position

int ansys::dpf::PinDefinition::position

Pin position number.