16 #ifndef TORC_PACKER_ELEMENT_HPP
17 #define TORC_PACKER_ELEMENT_HPP
26 #include <boost/smart_ptr.hpp>
63 mConnections.push_back(inConnectionPtr);
71 if(result == e)
return false;
72 mConnections.erase(result);
80 mConnections.erase(inConnectionIter);
95 ConfigIterator result = std::find(mConfigs.begin(), e, inConfigPtr);
96 if(result != e)
return false;
97 mConfigs.push_back(inConfigPtr);
104 ConfigIterator result = std::find(mConfigs.begin(), e, inConfigPtr);
105 if(result == e)
return false;
106 mConfigs.erase(result);
131 #endif // TORC_PACKER_ELEMENT_HPP
size_t getConnectionCount(void) const
ConnectionSharedPtrIterator connectionsBegin(void)
ConnectionSharedPtrVector mConnections
boost::shared_ptr< Element > ElementSharedPtr
Shared pointer encapsulation of a element.
bool removeConnection(ConnectionSharedPtrIterator inConnectionIter)
RcFactory class for physical netlist elements.
Element(const string &inName)
Constructor.
boost::weak_ptr< Element > ElementWeakPtr
Weak pointer encapsulation of a element.
bool removeConfig(string &inConfigPtr)
ConfigVector::iterator ConfigIterator
bool addConfig(string &inConfigPtr)
ConnectionSharedPtrIterator connectionsEnd(void)
ConnectionSharedPtrVector::const_iterator ConnectionSharedPtrConstIterator
size_t getConfigCount(void) const
ConfigConstIterator confsBegin(void) const
ConfigVector::const_iterator ConfigConstIterator
ConnectionSharedPtrConstIterator connectionsEnd(void) const
ConfigConstIterator confsEnd(void) const
bool addConnection(ConnectionSharedPtr &inConnectionPtr)
std::vector< ConnectionSharedPtr > ConnectionSharedPtrVector
Vector of componenet shared pointers.
boost::shared_ptr< Connection > ConnectionSharedPtr
Shared pointer encapsulation of a componenet.
Element composed of connections and pins.
vector< string > ConfigVector
std::vector< ElementSharedPtr > ElementSharedPtrVector
Vector of element shared pointers.
ConnectionSharedPtrVector::iterator ConnectionSharedPtrIterator
ConfigIterator confsEnd(void)
ConfigIterator confsBegin(void)
ConnectionSharedPtrConstIterator connectionsBegin(void) const
bool removeConnection(ConnectionSharedPtr &inConnectionPtr)