#include <Design.hpp>
Public Types | |
typedef ModuleSharedPtrVector::const_iterator | ModuleSharedPtrConstIterator |
Constant iterator for Module shared pointers. | |
typedef ModuleSharedPtrVector::iterator | ModuleSharedPtrIterator |
Non-constant iterator for Module shared pointers. | |
Public Member Functions | |
ModuleSharedPtrIterator | findModule (const string &inName) |
Find a design module by name. | |
bool | addModule (ModuleSharedPtr &inModulePtr) |
Add a module to the design. | |
bool | removeModule (ModuleSharedPtr &inModulePtr) |
Remove a module from the design. | |
const string & | getDevice (void) const |
Returns the target device for this design. | |
const string & | getPackage (void) const |
Returns the device package for this design. | |
const string & | getSpeedGrade (void) const |
Returns the device speed grade for this design. | |
const string & | getXdlVersion (void) const |
Returns the XDL version for this design. | |
void | setDevice (const string &inDevice) |
Sets the target device for this design. | |
void | setPackage (const string &inPackage) |
Sets the device package for this design. | |
void | setSpeedGrade (const string &inSpeedGrade) |
Sets the device speed grade for this design. | |
void | setXdlVersion (const string &inXdlVersion) |
Sets the XDL version for this design. | |
size_t | getModuleCount (void) const |
Returns the number of modules in the design. | |
ModuleSharedPtrConstIterator | modulesBegin (void) const |
Returns the begin constant iterator for modules. | |
ModuleSharedPtrConstIterator | modulesEnd (void) const |
Returns the end constant iterator for modules. | |
ModuleSharedPtrIterator | modulesBegin (void) |
Returns the begin non-constant iterator for modules. | |
ModuleSharedPtrIterator | modulesEnd (void) |
Returns the end non-constant iterator for modules. | |
Protected Types | |
typedef std::string | string |
Imported type name. | |
Protected Member Functions | |
Design (const string &inName, const string &inDevice, const string &inPackage, const string &inSpeedGrade, const string &inXdlVersion) | |
Protected constructor. Designs must be created by the Factory. | |
Protected Attributes | |
ModuleSharedPtrVector | mModules |
Vector of module shared pointers. | |
string | mDevice |
The target device specified for this design. | |
string | mPackage |
The device package specified for this design. | |
string | mSpeedGrade |
The device speed grade specified for this design. | |
string | mXdlVersion |
The XDL version specified for this design. | |
Friends | |
class | Factory |
The Factory class has direct access to our internals. |
The design is the top-level entity. It consists of an arbitrary number of modules, instances, and nets. Design objects must be created by the Factory class.
Definition at line 33 of file Design.hpp.
typedef std::string torc::physical::Design::string [protected] |
Imported type name.
Reimplemented from torc::physical::Circuit.
Definition at line 40 of file Design.hpp.
typedef ModuleSharedPtrVector::const_iterator torc::physical::Design::ModuleSharedPtrConstIterator |
typedef ModuleSharedPtrVector::iterator torc::physical::Design::ModuleSharedPtrIterator |
torc::physical::Design::Design | ( | const string & | inName, | |
const string & | inDevice, | |||
const string & | inPackage, | |||
const string & | inSpeedGrade, | |||
const string & | inXdlVersion | |||
) | [inline, protected] |
Protected constructor. Designs must be created by the Factory.
inName | The design name. | |
inDevice | The design device. | |
inPackage | The device package. | |
inSpeedGrade | The device speed grade. | |
inXdlVersion | The design XDL version. |
Definition at line 59 of file Design.hpp.
ModuleSharedPtrIterator torc::physical::Design::findModule | ( | const string & | inName | ) | [inline] |
Find a design module by name.
inName | The module name to look for. |
Definition at line 74 of file Design.hpp.
bool torc::physical::Design::addModule | ( | ModuleSharedPtr & | inModulePtr | ) | [inline] |
Add a module to the design.
inModulePtr | The module to add. |
Definition at line 82 of file Design.hpp.
bool torc::physical::Design::removeModule | ( | ModuleSharedPtr & | inModulePtr | ) | [inline] |
Remove a module from the design.
inModulePtr | The module to remove. |
Definition at line 94 of file Design.hpp.
const string& torc::physical::Design::getDevice | ( | void | ) | const [inline] |
const string& torc::physical::Design::getPackage | ( | void | ) | const [inline] |
const string& torc::physical::Design::getSpeedGrade | ( | void | ) | const [inline] |
const string& torc::physical::Design::getXdlVersion | ( | void | ) | const [inline] |
void torc::physical::Design::setDevice | ( | const string & | inDevice | ) | [inline] |
void torc::physical::Design::setPackage | ( | const string & | inPackage | ) | [inline] |
void torc::physical::Design::setSpeedGrade | ( | const string & | inSpeedGrade | ) | [inline] |
void torc::physical::Design::setXdlVersion | ( | const string & | inXdlVersion | ) | [inline] |
size_t torc::physical::Design::getModuleCount | ( | void | ) | const [inline] |
ModuleSharedPtrConstIterator torc::physical::Design::modulesBegin | ( | void | ) | const [inline] |
ModuleSharedPtrConstIterator torc::physical::Design::modulesEnd | ( | void | ) | const [inline] |
ModuleSharedPtrIterator torc::physical::Design::modulesBegin | ( | void | ) | [inline] |
ModuleSharedPtrIterator torc::physical::Design::modulesEnd | ( | void | ) | [inline] |
friend class Factory [friend] |
The Factory class has direct access to our internals.
Reimplemented from torc::physical::Progenitor< T >.
Definition at line 36 of file Design.hpp.
string torc::physical::Design::mDevice [protected] |
string torc::physical::Design::mPackage [protected] |
string torc::physical::Design::mSpeedGrade [protected] |
string torc::physical::Design::mXdlVersion [protected] |