![]() |
Kactus2
Kactus2 reference guide
|
Interface for accessing design interconnections. More...
#include <InterconnectionInterface.h>
Public Member Functions | |
InterconnectionInterface () | |
InterconnectionInterface (const InterconnectionInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~InterconnectionInterface ()=default |
void | addHierarchicalInterconnection (std::string const &instanceName, std::string const &instanceBus, std::string const &topBus, std::string const &connectionName="") |
void | addInterconnection (std::string const &startComponentInstance, std::string const &startBus, std::string const &endComponentInstance, std::string const &endBus, std::string const &connectionName="") |
std::string | getConnectionName (std::string const &startInstanceName, std::string const &startBusName, std::string const &endInstanceName, std::string const &endBusName) const |
virtual std::string | getDescription (std::string const &itemName) const override final |
std::string | getHierarchicalConnectionName (std::string const &instanceName, std::string const &instanceBus, std::string const &topBus) const |
std::string | getIndexedItemName (int itemIndex) const final |
virtual int | getItemIndex (std::string const &itemName) const override final |
virtual std::vector< std::string > | getItemNames () const override final |
bool | interconnectionExists (std::string const &connectionName) const |
virtual int | itemCount () const override final |
virtual bool | itemHasValidName (std::string const &itemName) const override final |
InterconnectionInterface & | operator= (const InterconnectionInterface &other)=delete |
bool | removeInstanceInterconnections (std::string const &instanceName) |
bool | removeInterconnection (std::string const &connectionName) |
void | renameComponentReferences (std::string const ¤tName, std::string const &newName) |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) override final |
void | setInterconnections (QSharedPointer< Design > newDesign) |
virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
virtual bool | validateItems () const override final |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
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 | 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 | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Interface for accessing design interconnections.
Definition at line 25 of file InterconnectionInterface.h.
InterconnectionInterface::InterconnectionInterface | ( | ) |
The constructor.
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
void InterconnectionInterface::addHierarchicalInterconnection | ( | std::string const & | instanceName, |
std::string const & | instanceBus, | ||
std::string const & | topBus, | ||
std::string const & | connectionName = "" ) |
Add a new hierarchical interconnection.
[in] | instanceName | Name of the component instance containing the selected bus interface. |
[in] | instanceBus | Name of the selected component instance bus interface. |
[in] | topBus | Name of the selected top component bus interface. |
[in] | connectionName | Name of the connection. |
void InterconnectionInterface::addInterconnection | ( | std::string const & | startComponentInstance, |
std::string const & | startBus, | ||
std::string const & | endComponentInstance, | ||
std::string const & | endBus, | ||
std::string const & | connectionName = "" ) |
Add a new interconnection.
[in] | startComponentInstance | Name of the component instance containing the first bus interface. |
[in] | startBus | Name of the first bus interface. |
[in] | endComponentInstance | Name of the component instance containing the second bus interface. |
[in] | endBus | Name of the second bus interface. |
[in] | connectionName | Name of the connection. |
std::string InterconnectionInterface::getConnectionName | ( | std::string const & | startInstanceName, |
std::string const & | startBusName, | ||
std::string const & | endInstanceName, | ||
std::string const & | endBusName ) const |
Get the name of the selected interconnection.
[in] | startInstanceName | Name of the component instance containing the first bus interface. |
[in] | startBusName | Name of the first bus interface. |
[in] | endInstanceName | Name of the component instance containing the second bus interface. |
[in] | endBusName | Name of the second bus interface. |
|
finaloverridevirtual |
Get the description of the selected interconnection.
[in] | itemName | Name of the selected interconnection. |
Reimplemented from NameGroupInterface.
std::string InterconnectionInterface::getHierarchicalConnectionName | ( | std::string const & | instanceName, |
std::string const & | instanceBus, | ||
std::string const & | topBus ) const |
Get the name of the selected hierarchical interconnection.
[in] | instanceName | Name of the component instance containing the selected bus interface. |
[in] | instanceBus | Name of the selected component instance bus interface. |
[in] | topBus | Name of the top component bus interface. |
|
finalvirtual |
Get name of the indexed interconnection.
[in] | itemIndex | Index of the selected interconnection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get index of the selected interconnection.
[in] | itemName | Name of the selected interconnection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available interconnections.
Implements CommonInterface.
bool InterconnectionInterface::interconnectionExists | ( | std::string const & | connectionName | ) | const |
Check if the selected interconnection exists.
[in] | connectionName | Name of the selected interconnection. |
|
finaloverridevirtual |
Get the number of available interconnections.
Implements CommonInterface.
|
finaloverridevirtual |
Check if the selected interconnection has a valid name.
[in] | itemName | Name of the selected interconnection. |
Implements NameGroupInterface.
|
delete |
bool InterconnectionInterface::removeInstanceInterconnections | ( | std::string const & | instanceName | ) |
Remove interconnections connected to the selected component instance.
[in] | instanceName | Name of the selected component instance. |
bool InterconnectionInterface::removeInterconnection | ( | std::string const & | connectionName | ) |
Remove the selected interconnection.
[in] | connectionName | Name of the selected interconnection. |
void InterconnectionInterface::renameComponentReferences | ( | std::string const & | currentName, |
std::string const & | newName ) |
Rename the component references in connections.
[in] | currentName | Current name of the component instance. |
[in] | newName | New name for the component instance. |
|
finaloverridevirtual |
Set a new description for the selected interconnection.
[in] | itemName | Name of the selected interconnection. |
[in] | newDescription | New description. |
Reimplemented from NameGroupInterface.
void InterconnectionInterface::setInterconnections | ( | QSharedPointer< Design > | newDesign | ) |
Setup the interconnections.
[in] | newDesign | Design containing the interconnections. |
|
finaloverridevirtual |
Set a new name for the selected interconnection.
[in] | currentName | Name of the selected interconnection. |
[in] | newName | New name for the interconnection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Validates the contained interconnections.
Implements CommonInterface.