![]() |
Kactus2
Kactus2 reference guide
|
Interface for editing component ports. More...
#include <PortsInterface.h>
Public Member Functions | |
PortsInterface (const PortsInterface &other)=delete | |
No copying. No assignment. | |
PortsInterface (QSharedPointer< PortValidator > validator, QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~PortsInterface ()=default |
void | addTransactionalPort (std::string const &newPortName=std::string()) final |
void | addWirePort (std::string const &newPortName=std::string()) final |
bool | clearTypeDefinitions (std::string const &portName) |
int | getAllReferencesToIdInItem (const std::string &itemName, std::string const &valueID) const final |
std::string | getArrayLeftExpression (std::string const &portName) const |
std::string | getArrayLeftFormattedExpression (std::string const &portName) const |
std::string | getArrayLeftValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getArrayRightExpression (std::string const &portName) const |
std::string | getArrayRightFormattedExpression (std::string const &portName) const |
std::string | getArrayRightValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getBusWidthExpression (std::string const &portName) const |
std::string | getBusWidthFormattedExpression (std::string const &portName) const |
std::string | getBusWidthValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getDefaultValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getDefaultValueExpression (std::string const &portName) const |
std::string | getDefaultValueFormattedExpression (std::string const &portName) const |
std::string | getDirection (std::string const &portName) const |
DirectionTypes::Direction | getDirectionType (std::string const &portName) const |
std::string | getIconPathForPort (std::string const &portName) const |
std::string | getIndexedItemName (int itemIndex) const final |
std::string | getInitiative (std::string const &portName) const |
QSharedPointer< NameGroup > | getItem (std::string const &portName) const final |
int | getItemIndex (std::string const &itemName) const final |
std::vector< std::string > | getItemNames () const final |
std::string | getKind (std::string const &portName) const |
std::string | getLeftBoundExpression (std::string const &portName) const |
std::string | getLeftBoundFormattedExpression (std::string const &portName) const |
std::string | getLeftBoundValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getMaxConnectionsExpression (std::string const &portName) const |
std::string | getMaxConnectionsFormattedExpression (std::string const &portName) const |
std::string | getMaxConnectionsValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getMinConnectionsExpression (std::string const &portName) const |
std::string | getMinConnectionsFormattedExpression (std::string const &portName) const |
std::string | getMinConnectionsValue (std::string const &portName, unsigned int baseNumber=0) const |
QSharedPointer< Port > | getPort (std::string const &portName) const |
std::string | getProtocolType (std::string const &portName) const |
std::string | getRightBoundExpression (std::string const &portName) const |
std::string | getRightBoundFormattedExpression (std::string const &portName) const |
std::string | getRightBoundValue (std::string const &portName, unsigned int baseNumber=0) const |
std::string | getTags (std::string const &portName) const |
std::vector< std::pair< std::string, std::vector< std::string > > > | getTypeDefinitions (std::string const &portName) const |
std::string | getTypeName (std::string const &portName) const |
std::vector< std::pair< std::string, std::vector< std::string > > > | getTypeNameViews (std::string const &portName) const |
std::string | getWidth (std::string const &portName) const |
bool | hasExpressionInLeftOrRightBound (std::string const &portName) const |
bool | hasPorts () const |
bool | isAdHoc (std::string const &portName) const |
int | itemCount () const final |
bool | itemHasValidName (std::string const &itemName) const final |
PortsInterface & | operator= (const PortsInterface &other)=delete |
bool | portExists (std::string const &portName) const |
bool | portHasValidBusWidth (std::string const &portName) const |
bool | portHasValidDefaultValue (std::string const &portName) const |
bool | portHasValidInitiative (std::string const &portName) const |
bool | portHasValidKind (std::string const &portName) const |
bool | portHasValidLeftBound (std::string const &portName) const |
bool | portHasValidMaxConnections (std::string const &portName) const |
bool | portHasValidMinConnections (std::string const &portName) const |
bool | portHasValidProtocol (std::string const &portName) const |
bool | portHasValidRightBound (std::string const &portName) const |
bool | portHasValidTypes (std::string const &portName) const |
bool | portIsTransactional (QSharedPointer< Port > port) const |
bool | portIsTransactional (std::string const &portName) const final |
bool | portIsWire (QSharedPointer< Port > port) const |
bool | portIsWire (std::string const &portName) const final |
bool | portLeftArrayValueIsValid (std::string const &portName) const |
bool | portRightArrayValueIsValid (std::string const &portName) const |
bool | removePort (std::string const &portName) const |
bool | setAdHoc (std::string const &portName, bool newAdHocVisibility) const |
bool | setArrayLeft (std::string const &portName, std::string const &newArrayLeft) const |
bool | setArrayRight (std::string const &portName, std::string const &newArrayRight) const |
bool | setBusWidth (std::string const &portName, std::string const &newBusWidth) const |
bool | setDefaultValue (std::string const &portName, std::string const &newDefaultValue) const |
bool | setDirection (std::string const &portName, std::string const &newDirection) const |
bool | setInitiative (std::string const &portName, std::string const &newInitiative) const |
bool | setKind (std::string const &portName, std::string const &newKind) const |
bool | setLeftBound (std::string const &portName, std::string const &newLeftBound) const |
bool | setMaxConnections (std::string const &portName, std::string const &newMaxConnections) const |
bool | setMinConnections (std::string const &portName, std::string const &newMinConnections) const |
bool | setName (std::string const ¤tName, std::string const &newName) final |
void | setPorts (Port::List ports) |
bool | setProtocolType (std::string const &portName, std::string const &newProtocolType) const |
bool | setRightBound (std::string const &portName, std::string const &newRightBound) const |
bool | setTags (std::string const &portName, std::string const &tagList) const |
bool | setTypeDefDefinitions (std::string const &portName, std::vector< std::pair< std::string, std::vector< std::string > > > const &typeDefinitions) |
bool | setTypeDefViewRefs (std::string const &portName, std::vector< std::pair< std::string, std::vector< std::string > > > const &typeNameViews) |
bool | setTypeName (std::string const &portName, std::string const &newType) const |
bool | setWidth (std::string const &portName, std::string const &newWidth) const |
bool | validateItems () const final |
![]() | |
ParameterizableInterface (const ParameterizableInterface &other)=delete | |
No copying. No assignment. | |
ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~ParameterizableInterface ()=default |
ParameterizableInterface & | operator= (const ParameterizableInterface &other)=delete |
![]() | |
MasterPortInterface () | |
MasterPortInterface (const MasterPortInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~MasterPortInterface ()=default |
std::string | getIconPathForDirection (DirectionTypes::Direction direction) const |
std::string | getIconPathForInitiative (QString const &initiative) const |
std::string | getIconPathForMissingPort () const |
MasterPortInterface & | operator= (const MasterPortInterface &other)=delete |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
virtual std::string | getDescription (std::string const &itemName) const |
virtual std::string | getDisplayName (std::string const &itemName) const |
virtual std::string | getShortDescription (std::string const &itemName) const |
NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) |
virtual bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) const |
bool | setShortDescription (std::string const &itemName, std::string const &newShortDescription) const |
![]() | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
CommonInterface & | operator= (const CommonInterface &other)=delete |
Additional Inherited Members | |
![]() | |
QString | formattedValueFor (QString const &expression) const |
QString | parseExpressionToBaseNumber (QString const &expression, unsigned int const &baseNumber, bool *expressionIsValid=nullptr) const |
QString | parseExpressionToDecimal (QString const &expression, bool *expressionIsValid=nullptr) const |
![]() | |
QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Interface for editing component ports.
Definition at line 29 of file PortsInterface.h.
PortsInterface::PortsInterface | ( | QSharedPointer< PortValidator > | validator, |
QSharedPointer< ExpressionParser > | expressionParser, | ||
QSharedPointer< ExpressionFormatter > | expressionFormatter ) |
The constructor.
[in] | validator | Validator for ports. |
[in] | expressionParser | Parser for expressions. |
[in] | expressionFormatter | Formatter for expressions. |
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
|
finalvirtual |
Add a transactional port.
[in] | newPortName | Name of the new port. |
Implements MasterPortInterface.
|
finalvirtual |
bool PortsInterface::clearTypeDefinitions | ( | std::string const & | portName | ) |
Clear the type definitions of a selected port.
[in] | portName | Name of the selected port. |
|
finalvirtual |
Calculate all the references to the selected ID in the selected port.
[in] | portName | Name of the selected port. |
[in] | valueID | The selected ID. |
Implements ParameterizableInterface.
std::string PortsInterface::getArrayLeftExpression | ( | std::string const & | portName | ) | const |
Get the array left expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getArrayLeftFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted array left expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getArrayLeftValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated array left value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getArrayRightExpression | ( | std::string const & | portName | ) | const |
Get the array right expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getArrayRightFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted array right expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getArrayRightValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated array right value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getBusWidthExpression | ( | std::string const & | portName | ) | const |
Get the bus width expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getBusWidthFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted bus width expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getBusWidthValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated bus width value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getDefaultValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated default value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getDefaultValueExpression | ( | std::string const & | portName | ) | const |
Get the default value expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getDefaultValueFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted default value expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getDirection | ( | std::string const & | portName | ) | const |
Get the direction of the selected port.
[in] | portName | Name of the selected port. |
DirectionTypes::Direction PortsInterface::getDirectionType | ( | std::string const & | portName | ) | const |
Get the direction of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getIconPathForPort | ( | std::string const & | portName | ) | const |
Get the icon path of the selected port.
[in] | portName | Name of the selected port. |
|
finalvirtual |
Get name of the indexed port.
[in] | portIndex | Index of the selected port. |
Implements NameGroupInterface.
std::string PortsInterface::getInitiative | ( | std::string const & | portName | ) | const |
Get the initiative of the selected port.
[in] | portName | Name of the selected port. |
|
finalvirtual |
Get the item with the selected name, sliced to a NameGroup.
[in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
|
finalvirtual |
Get index of the selected port.
[in] | itemName | Name of the selected port. |
Implements NameGroupInterface.
|
finalvirtual |
Get the names of the available ports.
Implements CommonInterface.
std::string PortsInterface::getKind | ( | std::string const & | portName | ) | const |
Get the kind of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getLeftBoundExpression | ( | std::string const & | portName | ) | const |
Get the left bound expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getLeftBoundFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted left bound expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getLeftBoundValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated left bound value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getMaxConnectionsExpression | ( | std::string const & | portName | ) | const |
Get the max connections expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getMaxConnectionsFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted max connections expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getMaxConnectionsValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated max connections value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getMinConnectionsExpression | ( | std::string const & | portName | ) | const |
Get the min connections expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getMinConnectionsFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted min connections expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getMinConnectionsValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated min connections value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
QSharedPointer< Port > PortsInterface::getPort | ( | std::string const & | portName | ) | const |
Get the port with the selected name.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getProtocolType | ( | std::string const & | portName | ) | const |
Get the protocol type of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getRightBoundExpression | ( | std::string const & | portName | ) | const |
Get the right bound expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getRightBoundFormattedExpression | ( | std::string const & | portName | ) | const |
Get the formatted right bound expression of the selected port.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getRightBoundValue | ( | std::string const & | portName, |
unsigned int | baseNumber = 0 ) const |
Get the calculated right bound value of the selected port.
[in] | portName | Name of the selected port. |
[in] | baseNumber | Base for displaying the value. |
std::string PortsInterface::getTags | ( | std::string const & | portName | ) | const |
Get the tags of the selected port.
[in] | portName | Name of the selected port. |
std::vector< std::pair< std::string, std::vector< std::string > > > PortsInterface::getTypeDefinitions | ( | std::string const & | portName | ) | const |
Get the type name and type definitions as a list of pairs.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getTypeName | ( | std::string const & | portName | ) | const |
Get the type name of the selected port.
[in] | portName | Name of the selected port. |
std::vector< std::pair< std::string, std::vector< std::string > > > PortsInterface::getTypeNameViews | ( | std::string const & | portName | ) | const |
Get the type name and type view references as pairs.
[in] | portName | Name of the selected port. |
std::string PortsInterface::getWidth | ( | std::string const & | portName | ) | const |
Get the calculated width of the selected port.
[in] | portName | Name of the selected port. |
bool PortsInterface::hasExpressionInLeftOrRightBound | ( | std::string const & | portName | ) | const |
Check if the selected port has an expression in the left or right bound values.
[in] | portName | Name of the selected port. |
bool PortsInterface::hasPorts | ( | ) | const |
Check if the there are any available ports.
bool PortsInterface::isAdHoc | ( | std::string const & | portName | ) | const |
Check if the selected port is ad hoc.
[in] | portName | Name of the selected port. |
|
finalvirtual |
|
finalvirtual |
Check if the selected port has a valid name.
[in] | portName | Name of the selected port. |
Implements NameGroupInterface.
|
delete |
bool PortsInterface::portExists | ( | std::string const & | portName | ) | const |
Check if the selected port exists.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidBusWidth | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid bus width.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidDefaultValue | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid default value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidInitiative | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid initiative.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidKind | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid kind.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidLeftBound | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid left bound value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidMaxConnections | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid max connections value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidMinConnections | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid min connections value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidProtocol | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid protocol.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidRightBound | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid right bound value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portHasValidTypes | ( | std::string const & | portName | ) | const |
Check if the selected port has valid types.
[in] | portName | Name of the selected port. |
bool PortsInterface::portIsTransactional | ( | QSharedPointer< Port > | port | ) | const |
Check if the selected port is transactional.
[in] | port | The selected port. |
|
finalvirtual |
Check if the selected port is transactional.
[in] | portName | Name of the selected port. |
Implements MasterPortInterface.
bool PortsInterface::portIsWire | ( | QSharedPointer< Port > | port | ) | const |
Check if the selected port is a wire.
[in] | port | The selected port. |
|
finalvirtual |
Check if the selected port is a wire.
[in] | portName | Name of the selected port. |
Implements MasterPortInterface.
bool PortsInterface::portLeftArrayValueIsValid | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid left array value.
[in] | portName | Name of the selected port. |
bool PortsInterface::portRightArrayValueIsValid | ( | std::string const & | portName | ) | const |
Check if the selected port has a valid right array value.
[in] | portName | Name of the selected port. |
bool PortsInterface::removePort | ( | std::string const & | portName | ) | const |
Remove the selected port.
[in] | portName | Name of the selected port. |
bool PortsInterface::setAdHoc | ( | std::string const & | portName, |
bool | newAdHocVisibility ) const |
Set a new ad hoc visibility flag for the selected port.
[in] | portName | Name of the selected port. |
[in] | newAdHocVisibility | Flag for ad hoc visibility. |
bool PortsInterface::setArrayLeft | ( | std::string const & | portName, |
std::string const & | newArrayLeft ) const |
Set a new array left value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newArrayLeft | New array left value. |
bool PortsInterface::setArrayRight | ( | std::string const & | portName, |
std::string const & | newArrayRight ) const |
Set a new array right value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newArrayRight | New array right value. |
bool PortsInterface::setBusWidth | ( | std::string const & | portName, |
std::string const & | newBusWidth ) const |
Set a new bus width for the selected port.
[in] | portName | Name of the selected port. |
[in] | newBusWidth | New bus width. |
bool PortsInterface::setDefaultValue | ( | std::string const & | portName, |
std::string const & | newDefaultValue ) const |
Set a new default value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newDefaultValue | New default value. |
bool PortsInterface::setDirection | ( | std::string const & | portName, |
std::string const & | newDirection ) const |
Set direction for the selected port.
[in] | portName | Name of the selected port. |
[in] | newDirection | New direction. |
bool PortsInterface::setInitiative | ( | std::string const & | portName, |
std::string const & | newInitiative ) const |
Set initiative for the selected port.
[in] | portName | Name of the selected port. |
[in] | newInitiative | New initiative. |
bool PortsInterface::setKind | ( | std::string const & | portName, |
std::string const & | newKind ) const |
Set kind for the selected port.
[in] | portName | Name of the selected port. |
[in] | newKind | New kind. |
bool PortsInterface::setLeftBound | ( | std::string const & | portName, |
std::string const & | newLeftBound ) const |
Set a new left bound value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newLeftBound | New left bound value. |
bool PortsInterface::setMaxConnections | ( | std::string const & | portName, |
std::string const & | newMaxConnections ) const |
Set a new max connections value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newMaxConnections | New max connections value. |
bool PortsInterface::setMinConnections | ( | std::string const & | portName, |
std::string const & | newMinConnections ) const |
Set a new min connections value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newMinConnections | New max connections value. |
|
finalvirtual |
Set a new name for the selected port.
[in] | currentPortName | Name of the selected port. |
[in] | newPortName | New name for the port. |
Implements NameGroupInterface.
void PortsInterface::setPorts | ( | Port::List | ports | ) |
Set available ports.
[in] | ports | The ports to set. |
bool PortsInterface::setProtocolType | ( | std::string const & | portName, |
std::string const & | newProtocolType ) const |
Set protocol type for the selected port.
[in] | portName | Name of the selected port. |
[in] | newProtocolType | New protocol type. |
bool PortsInterface::setRightBound | ( | std::string const & | portName, |
std::string const & | newRightBound ) const |
Set a new right bound value for the selected port.
[in] | portName | Name of the selected port. |
[in] | newRightBound | New right bound value. |
bool PortsInterface::setTags | ( | std::string const & | portName, |
std::string const & | tagList ) const |
Set new tags for the selected port.
[in] | portName | Name of the selected port. |
[in] | tagList | List of the new tags separated by ','. |
bool PortsInterface::setTypeDefDefinitions | ( | std::string const & | portName, |
std::vector< std::pair< std::string, std::vector< std::string > > > const & | typeDefinitions ) |
Set the port type definition type definitions.
[in] | portName | Name of the selected port. |
[in] | typeDefinitions | The type def name-typeDef pairs to set. |
bool PortsInterface::setTypeDefViewRefs | ( | std::string const & | portName, |
std::vector< std::pair< std::string, std::vector< std::string > > > const & | typeNameViews ) |
Set the port type definition view refs. Should only be used in copy pasting, updates or overwrites existing type def view refs.
[in] | portName | Name of the selected port. |
[in] | typeNameViews | The type def name-view reference pairs to set. |
bool PortsInterface::setTypeName | ( | std::string const & | portName, |
std::string const & | newType ) const |
Set a new type name for the selected port.
[in] | portName | Name of the selected port. |
[in] | newType | New type name. |
bool PortsInterface::setWidth | ( | std::string const & | portName, |
std::string const & | newWidth ) const |
Set new values for the left and right bounds of the selected port.
[in] | portName | Name of the selected port. |
[in] | newWidth | New width. |
|
finalvirtual |
Validates the contained ports.
Implements CommonInterface.