19 #ifndef TORC_PHYSICAL_MODULE_HPP
20 #define TORC_PHYSICAL_MODULE_HPP
74 if(result != e)
return false;
75 mPorts.push_back(inPortPtr);
84 if(result == e)
return false;
125 #endif // TORC_PHYSICAL_MODULE_HPP
PortSharedPtrVector mPorts
Vector of Port shared pointers for the module.
void setAnchor(const string &inAnchor)
Sets the anchor instance name for this module.
PortSharedPtrConstIterator portsEnd(void) const
Returns the end constant iterator for ports.
PortSharedPtrVector::const_iterator PortSharedPtrConstIterator
Constant iterator to Port shared pointers.
boost::weak_ptr< Module > ModuleWeakPtr
Weak pointer encapsulation of a Module.
string mAnchor
The module anchor instance name.
string mName
The name of the object.
boost::shared_ptr< Port > PortSharedPtr
Shared pointer encapsulation of a Port.
PortSharedPtrIterator findPort(const string &inName)
Find a port by name.
PortSharedPtrIterator portsBegin(void)
Returns the begin non-constant iterator for ports.
PortSharedPtrConstIterator portsBegin(void) const
Returns the begin constant iterator for ports.
const string & getAnchor(void) const
Returns the anchor instance name for this module.
Module(const string &inName, const string &inAnchor)
Protected constructor.
boost::shared_ptr< Module > ModuleSharedPtr
Shared pointer encapsulation of a Module.
Comparator class to serve as a predicate when searching for names.
Header for the Port class.
bool addPort(PortSharedPtr &inPortPtr)
Add a port to the module.
bool removePort(PortSharedPtr &inPortPtr)
PortSharedPtrIterator portsEnd(void)
Returns the end non-constant iterator for ports.
Factory class for physical netlist elements.
Concept for any object that may have children.
PortSharedPtrVector::iterator PortSharedPtrIterator
Non-constant iterator to Port shared pointers.
size_t getPortCount(void) const
Returns the number of ports in the module.
std::string string
Imported type name.
Header for the Circuit class.
Circuit composed of instances and nets.
std::vector< ModuleSharedPtr > ModuleSharedPtrVector
Vector of Module shared pointers.
bool operator==(const Module &rhs) const
Equality operator.
std::vector< PortSharedPtr > PortSharedPtrVector
Vector of Port shared pointers.