torc-master
|
Root of the EDIF Object Model. More...
#include <Root.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType< Root > | Visitor |
typedef std::string | Name |
typedef Root | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | addLibrary (const LibrarySharedPtr &inLibrary) throw (Error) |
virtual void | removeLibrary (const std::string &inName) throw (Error) |
virtual LibrarySharedPtr | findLibrary (const std::string &inName) |
virtual void | getLibraries (std::vector< LibrarySharedPtr > &outLibraries) |
template<typename _Action > | |
void | applyOnAllLibraries (const _Action &action) throw (Error) |
virtual void | addDesign (const DesignSharedPtr &inDesign) throw (Error) |
virtual void | removeDesign (const std::string &inName) throw (Error) |
virtual DesignSharedPtr | findDesign (const std::string &inName) |
virtual void | getDesigns (std::vector< DesignSharedPtr > &outDesigns) |
template<typename _Action > | |
void | applyOnAllDesigns (const _Action &action) throw (Error) |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
const EdifVersion | getVersion () const |
void | setVersion (const EdifVersion &inSource) |
const EdifLevel | getLevel () const |
void | setLevel (const EdifLevel &inSource) |
virtual | ~Root () throw () |
void | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &inSource) |
virtual const std::string | getName () const |
void | setName (const std::string &inSource) throw (Error) |
virtual Name | getOriginalName () const |
virtual void | setOriginalName (const Name &inSource) |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
void | getUserData (std::list< std::string > &outUserData) const |
void | setUserData (const std::list< std::string > &inSource) |
void | addUserData (const std::string &inSource) |
void | getStatuses (std::vector< StatusSharedPtr > &outStatus) const |
void | setStatuses (const std::vector< StatusSharedPtr > &inStatus) |
void | addStatus (const StatusSharedPtr &inStatus) throw (Error) |
template<typename _Action > | |
void | applyOnAllStatuses (const _Action &action) throw (Error) |
Protected Member Functions | |
Root () | |
Private Member Functions | |
Root (const Root &source) | |
Root & | operator= (const Root &source) |
Private Attributes | |
EdifLevel | mLevel |
SymTab< std::string, LibrarySharedPtr > | mLibraries |
SymTab< std::string, DesignSharedPtr > | mDesignSymTab |
EdifVersion | mVersion |
Friends | |
class | FactoryType< Root > |
Root of the EDIF Object Model.
The Root class represents and EDIF hierarchy. All parsed EDIF files contribute to the growth of the object tree rooted here. At the top level, it provides access to the libraries present in the design.
|
inherited |
Definition at line 40 of file generic/Renamable.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
typedef VisitorType<Root> torc::generic::Root::Visitor |
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
|
virtual |
|
protected |
Definition at line 274 of file Root.cpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 226 of file Root.cpp.
|
inherited |
Add a comment to the object
[in] | comment | The comment to add to an existing list of comments |
Definition at line 36 of file Commentable.cpp.
|
virtual |
Add a design to the list of designs. If an empty pointer is supplied, it returns without doing anything.
[in] | inDesign | A pointer to a design object. |
Error | Design could not be added. because design name is empty
|
Error | Design could not be added. because Library name is already exists
|
Add a design to the list of designs. If an empty pointer is supplied, it returns without doing anything.
Definition at line 143 of file Root.cpp.
|
virtual |
Add a library to the list of libraries. If an empty pointer is supplied, it returns without doing anything.
[in] | inLibrary | A pointer to a library object. |
Error | Library could not be added. because Library name is empty
|
Error | Library could not be added. because Library name is already exists
|
Add a library to the list of libraries. If an empty pointer is supplied, it returns without doing anything.
[in] | inLibrary | A pointer to a library object. |
Error | Library could not be added. because Library name is empty |
Error | Library could not be added. because Library name is already exists |
Definition at line 48 of file Root.cpp.
|
inherited |
Add a status to the vector of statuses. If an empty pointer is supplied, it returns without doing anything.
[in] | inStatus | A pointer to a status object. |
Add a status to the list of statuses. If an empty pointer is supplied, it returns without doing anything.
[in] | inStatus | A pointer to a status object. |
Definition at line 47 of file StatusContainer.cpp.
|
inherited |
Add an user data to the list of user data
[in] | inSource | An user data as string |
Definition at line 34 of file UserDataContainer.cpp.
|
inline |
Apply action on all Designs.
[in] | action | Action to be applied |
Definition at line 360 of file Root.hpp.
|
inline |
Apply action on all Libraries.
[in] | action | Action to be applied |
Apply action on all Libraries.
[in] | action | Action to be applied |
Definition at line 342 of file Root.hpp.
|
inlineinherited |
Apply action on all statuses.
[in] | action | Action to be applied |
Definition at line 95 of file StatusContainer.hpp.
|
virtual |
Find a design by name, in the list of designs.
[in] | inName | String specifying the name of the design. |
Find a Design by name, in the list of libraries.
[in] | inName | String inSource specifying the name of the Design. |
Definition at line 196 of file Root.cpp.
|
virtual |
Find a library by name, in the list of libraries.
[in] | inName | String specifying the name of the library. |
Find a library by name, in the list of libraries.
[in] | inName | String inSource specifying the name of the library. |
Definition at line 129 of file Root.cpp.
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
virtual |
Get the list of designs.
[out] | outDesigns | List of designs contained in the root |
Get the list of designs.
[out] | outDesigns | List of libraries |
Definition at line 185 of file Root.cpp.
|
inline |
The the level of EDIF file.
|
virtual |
Get the list of libraries.
[out] | outLibraries | List of libraries contained in the root |
Get the list of libraries.
[out] | outLibraries | List of libraries |
Definition at line 115 of file Root.cpp.
|
inlinevirtualinherited |
Get the object name
Definition at line 89 of file Nameable.hpp.
|
inlinevirtualinherited |
Get the new name provided for the object.
Definition at line 78 of file generic/Renamable.hpp.
|
inlineinherited |
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
[out] | ptr | Set to a shared pointer to this object |
|
inlineinherited |
Get a vector of pointer to Status object
[out] | outStatus | The vector of pointer to Status object |
Definition at line 86 of file StatusContainer.hpp.
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
inline |
|
virtual |
Remove the specified design from the list of designs.
inName | Name of the object to be delete |
Error | Empty design name
|
Error | design not preset in collection
|
Remove the specified Design from the list of libraries. If an empty pointer is passed, it returns without doing anything
Definition at line 166 of file Root.cpp.
|
virtual |
Remove the specified library from the list of libraries.
inName | Name of the object to be delete |
Error | Empty Library name
|
Error | Library not preset in collection
|
Remove the specified library from the list of libraries. If an empty pointer is passed, it returns without doing anything
inName | Name of the object to be delete |
Definition at line 85 of file Root.cpp.
|
inherited |
Get the list of all comments
[in] | inSource | A list of all comments to be set on this object |
Definition at line 45 of file Commentable.cpp.
void torc::generic::Root::setLevel | ( | const EdifLevel & | inSource | ) |
|
inherited |
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members)
|
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members) |
Definition at line 41 of file Nameable.cpp.
|
virtualinherited |
Set the new name provided for the object.
[in] | inSource | Name of the object |
Definition at line 35 of file generic/Renamable.cpp.
|
inherited |
Set a vector of pointer to Status object
[in] | inStatus | The vector of pointer to Status object |
Definition at line 32 of file StatusContainer.cpp.
|
inherited |
Set the list of userData
[in] | inSource | The list of UserData |
Definition at line 26 of file UserDataContainer.cpp.
void torc::generic::Root::setVersion | ( | const EdifVersion & | inSource | ) |
Set the version of EDIF being used. This should be 2 0 0 for the current EOM version.
[in] | inSource | An object of type EdifVersion. |
Definition at line 240 of file Root.cpp.
|
inlineinherited |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
[in] | weakThis | A weak pointer to this object |
|
friend |
|
private |
|
private |
|
private |