![]() |
Kactus2
Kactus2 reference guide
|
Common functions for interfaces. More...
#include <CommonInterface.h>
Public Member Functions | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
virtual std::vector< std::string > | getItemNames () const =0 |
virtual int | itemCount () const =0 |
CommonInterface & | operator= (const CommonInterface &other)=delete |
virtual bool | validateItems () const =0 |
Protected Member Functions | |
QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Common functions for interfaces.
Definition at line 24 of file CommonInterface.h.
|
default |
The constructor.
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
|
pure virtual |
Get the names of the available items.
Implemented in AbstractionTypeInterface, AdHocConnectionInterface, BusInterfaceInterface, ComponentInstanceInterface, ComponentInstantiationInterface, FieldInterface, FileBuilderInterface, FileInterface, FileSetInterface, InterconnectionInterface, MemoryBlockInterface, MemoryMapInterface, ModuleParameterInterface, ParametersInterface, PortAbstractionInterface, PortMapInterface, PortsInterface, RegisterInterface, ResetInterface, and TransparentBridgeInterface.
|
protected |
Transform the selected name to a unique item name.
[in] | newName | The selected name. |
|
pure virtual |
Get the number of available items.
Implemented in AbstractionTypeInterface, AdHocConnectionInterface, BusInterfaceInterface, ComponentInstanceInterface, ComponentInstantiationInterface, FieldInterface, FileBuilderInterface, FileInterface, FileSetInterface, InterconnectionInterface, MemoryBlockInterface, MemoryMapInterface, ModuleParameterInterface, ParametersInterface, PortAbstractionInterface, PortMapInterface, PortsInterface, RegisterInterface, ResetInterface, and TransparentBridgeInterface.
|
protected |
Check if the new name is different from the current name.
[in] | newName | The new name. |
[in] | oldName | The current name. |
|
delete |
|
pure virtual |
Validates the contained items.
Implemented in AbstractionTypeInterface, AbstractParameterInterface, AddressBlockInterface, AdHocConnectionInterface, BusInterfaceInterface, ComponentInstanceInterface, ComponentInstantiationInterface, FieldInterface, FileBuilderInterface, FileInterface, FileSetInterface, InterconnectionInterface, MemoryBlockInterface, MemoryMapInterface, PortAbstractionInterface, PortMapInterface, PortsInterface, RegisterInterface, ResetInterface, SubspaceMapInterface, and TransparentBridgeInterface.