|
isomatch
|
#include <wireManager.h>
Classes | |
| class | AlreadyDefined |
| class | NotDefined |
| class | WireException |
Public Member Functions | |
| WireManager () | |
| ~WireManager () | |
| WireId * | fresh (const std::string &name) |
| bool | hasWire (const std::string &name) |
| bool | hasWire (size_t id) |
| const std::vector< WireId * > & | allWires () const |
| Returns all wires, including the merged ones. More... | |
| std::vector< WireId * > | wires () const |
| Returns a vector of unique wires. More... | |
| WireId * | wire (const std::string &name, bool dontCreate=false) |
| WireId * | wire (size_t id) |
| void | rename (const std::string &curName, const std::string &newName) |
| void | rename (size_t id, const std::string &newName) |
| size_t | id () const |
Wire manager for a circuit
Allocates fresh wire IDs, finds previously defined wire IDs to establish connections, …
| WireManager::WireManager | ( | ) |
Basic constructor
| WireManager::~WireManager | ( | ) |
|
inline |
Returns all wires, including the merged ones.
| WireId * WireManager::fresh | ( | const std::string & | name | ) |
Allocates a fresh wire with the given name
| AlreadyDefined |
| bool WireManager::hasWire | ( | const std::string & | name | ) |
Checks the existence of a given wire
| bool WireManager::hasWire | ( | size_t | id | ) |
Checks the existence of a given wire
|
inline |
Get this wire manager's unique id
| void WireManager::rename | ( | const std::string & | curName, |
| const std::string & | newName | ||
| ) |
Renames a wire. Be sure to call this only if you do not rely on the previous wire's name: the old name won't be mapped to that wire anymore.
| NotDefined | if there is no such wire. |
| void WireManager::rename | ( | size_t | id, |
| const std::string & | newName | ||
| ) |
Renames a wire. Be sure to call this only if you do not rely on the previous wire's name: the old name won't be mapped to that wire anymore.
| NotDefined | if there is no such wire. |
| WireId * WireManager::wire | ( | const std::string & | name, |
| bool | dontCreate = false |
||
| ) |
Retrieves an existing wire, or creates it as a fresh one if it does not exist yet.
| name | The name to search |
| dontCreate | If set to true, do not create the wire if it does not exist, but raise NotDefined instead. |
| WireId * WireManager::wire | ( | size_t | id | ) |
Retrieves an existing wire by its id.
| NotDefined | if the given id does not exist |
| std::vector< WireId * > WireManager::wires | ( | ) | const |
Returns a vector of unique wires.
1.8.13