torc-master
|
Represents an EDIF cell. More...
#include <Cell.hpp>
Data Structures | |
class | Factory |
Public Types | |
enum | Type { eTypeTie = 0, eTypeRipper, eTypeGeneric } |
typedef VisitorType< Cell > | Visitor |
typedef std::string | Name |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
const Type | getType () const |
void | setType (const Type &inSource) |
void | addView (const ViewSharedPtr &inView) throw (Error) |
ViewSharedPtr | findView (const std::string &inName) |
void | removeView (const std::string &inName) throw (Error) |
void | getViews (std::vector< ViewSharedPtr > &outViews) const |
template<typename _Action > | |
void | applyOnAllViews (const _Action &action) throw (Error) |
virtual | ~Cell () throw () |
void | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &inSource) |
bool | getIsExtern () const |
bool | isExtern () const |
void | setIsExtern (bool inIsExtern) |
virtual const std::string | getName () const |
void | setName (const std::string &inSource) throw (Error) |
const boost::shared_ptr< Library > | getParent () const |
virtual void | setParent (const boost::shared_ptr< Library > &inSource) |
PropertySharedPtr | getProperty (const std::string &inName) |
bool | setProperty (const std::string &inName, const PropertySharedPtr &inProperty) |
void | getProperties (std::map< std::string, PropertySharedPtr > &outProperties) const |
void | setProperties (const std::map< std::string, PropertySharedPtr > &inSource) |
template<typename _Action > | |
void | applyOnAllProperties (const _Action &action) 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 | |
Cell () | |
Private Member Functions | |
Cell (const Cell &rhs) | |
Cell & | operator= (const Cell &rhs) |
Private Attributes | |
SymTab< std::string, ViewSharedPtr > | mViewSymTab |
Type | mType |
ParameterMapSharedPtr | mParameters |
Friends | |
class | FactoryType< Cell > |
Represents an EDIF cell.
The Cell class is used to implement an EDIF cell object. It contains the different views of a cell. A cell can be concrete or extern (black-box).
|
inherited |
Definition at line 40 of file generic/Renamable.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
typedef VisitorType<Cell> torc::generic::Cell::Visitor |
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
Type of cell.
Enumerator | |
---|---|
eTypeTie | |
eTypeRipper | |
eTypeGeneric |
|
protected |
Definition at line 165 of file Cell.cpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 81 of file Cell.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.
|
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.
void torc::generic::Cell::addView | ( | const ViewSharedPtr & | inView | ) | |
throw | ( | Error | |||
) |
Add a view to the list of views. An empty pointer will be ignored. If an view already exists in EDIF file in same cell, parser ignores the view.
[in] | inView | Pointer to a view. |
Error | Empty View type
|
Error | View name already exists
|
Add a view to the list of views. An empty pointer will be ignored.
[in] | inView | Pointer to a view. |
Definition at line 108 of file Cell.cpp.
|
inlineinherited |
Apply action on all properties.
[in] | action | Action to be applied |
Definition at line 113 of file PropertyContainer.hpp.
|
inlineinherited |
Apply action on all statuses.
[in] | action | Action to be applied |
Definition at line 95 of file StatusContainer.hpp.
|
inline |
Apply action on all Views.
[in] | action | Action to be applied |
Definition at line 224 of file Cell.hpp.
ViewSharedPtr torc::generic::Cell::findView | ( | const std::string & | inName | ) |
Find a view by name.
[in] | inName | Name of the cell to be found. |
Find a view by name.
[in] | inName | Name of the cell to be found. |
Definition at line 133 of file Cell.cpp.
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
inlineinherited |
Get whether the item is an extern(placeholder) or an actual item.
Definition at line 86 of file Extern.hpp.
|
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 pointer to the parent object
|
inlineinherited |
Get the map of all properties
[out] | outProperties | The map of properties |
Get the map of all properties
Definition at line 107 of file PropertyContainer.hpp.
|
inherited |
Get a property
[in] | inName | Name of the property to be retreived |
Get a property
[in] | name | Name of the property to be retreived |
Definition at line 37 of file PropertyContainer.cpp.
|
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.
|
inline |
Get the type of cell
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
inline |
Get the views of this cell.
[out] | outViews | List of views to be appended to |
Get the views of this cell.
Definition at line 220 of file Cell.hpp.
|
inlineinherited |
Get whether the item is an extern(placeholder) or an actual item.
Definition at line 95 of file Extern.hpp.
void torc::generic::Cell::removeView | ( | const std::string & | inName | ) | |
throw | ( | Error | |||
) |
Remove the specified pointer from the view. Empty pointer is ignored.
[in] | inName | name of the object to be removed |
Remove the specified pointer from the view. Empty pointer is ignored.
[in] | inName | name of object to be removed |
Definition at line 151 of file Cell.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.
|
inherited |
Set whether an item is extern or not.
[in] | isExtern | True if extern, false otherwise |
Definition at line 35 of file Extern.cpp.
|
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.
|
virtualinherited |
Set a pointer to the parent
[in] | inSource | Set a pointer to the parent |
|
inherited |
Set the map of properties
[in] | inSource | The map of properties |
Definition at line 66 of file PropertyContainer.cpp.
|
inherited |
Save the inSource of a property
[in] | inName | Name of the property to be saved |
[in] | inProperty | Pointer to the property object if present, empty pointer otherwise. |
Save the inSource of a property
[in] | inName | Name of the property to be saved |
[in] | inPoperty | Pointer to the property object if present, empty pointer otherwise. |
Definition at line 53 of file PropertyContainer.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.
void torc::generic::Cell::setType | ( | const Type & | inSource | ) |
Set the type of cell
[in] | inSource | Type of cell |
|
inherited |
Set the list of userData
[in] | inSource | The list of UserData |
Definition at line 26 of file UserDataContainer.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 |