19 #ifndef TORC_PACKER_PRIMITIVESET_HPP
20 #define TORC_PACKER_PRIMITIVESET_HPP
69 PrimitiveSharedPtrVector::iterator e =
mPrimitives.end();
70 PrimitiveSharedPtrVector::iterator result =
findPrimitive(inPrimitivePtr->getName());
71 if(result == e)
mPrimitives.push_back(inPrimitivePtr);
80 PrimitiveSharedPtrVector::iterator e =
mPrimitives.end();
81 PrimitiveSharedPtrVector::iterator result = std::find(
mPrimitives.begin(), e, inPrimitivePtr);
82 if(result == e)
return false;
116 #endif // TORC_PACKER_PRIMITIVESET_HPP
PrimitiveSharedPtrIterator primitivesBegin(void)
Returns the begin non-constant iterator for primitives.
boost::shared_ptr< Primitive > PrimitiveSharedPtr
Shared pointer encapsulation of a Primitive.
boost::weak_ptr< PrimitiveSet > PrimitiveSetWeakPtr
Shared pointer encapsulation of a PrimitiveSet.
std::string string
Imported type name.
RcFactory class for physical netlist elements.
PrimitiveSharedPtrConstIterator primitivesBegin(void) const
Returns the begin constant iterator for primitives.
Header for the Primitive class.
boost::shared_ptr< PrimitiveSet > PrimitiveSetSharedPtr
Shared pointer encapsulation of a PrimitiveSet.
Concept for any object that can be named.
PrimitiveSharedPtrIterator primitivesEnd(void)
Returns the end non-constant iterator for primitives.
size_t getPrimitiveCount(void) const
std::vector< PrimitiveSetSharedPtr > PrimitiveSetSharedPtrVector
Vector of PrimitiveSet shared pointers.
bool addPrimitive(PrimitiveSharedPtr &inPrimitivePtr)
Add a primitive to the PrimitiveSet.
Comparator class to serve as a predicate when searching for names.
PrimitiveSharedPtrConstIterator primitivesEnd(void) const
Returns the end constant iterator for primitives.
bool removePrimitive(PrimitiveSharedPtr &inPrimitivePtr)
Remove a primitive from the PrimitiveSet.
PrimitiveSharedPtrIterator findPrimitive(const string &inName)
Find a PrimitiveSet primitive by name.
PrimitiveSharedPtrVector::const_iterator PrimitiveSharedPtrConstIterator
Constant iterator for Primitive shared pointers.
Concept for any object that may have children.
Concept for any object that may have a parent.
PrimitiveSet(const string &inName)
PrimitiveSharedPtrVector::iterator PrimitiveSharedPtrIterator
Non-constant iterator for Primitive shared pointers.
std::vector< PrimitiveSharedPtr > PrimitiveSharedPtrVector
Vector of Primitive shared pointers.
PrimitiveSharedPtrVector mPrimitives
Vector of primitive shared pointers.