torc-master
|
primitive. More...
#include <Primitive.hpp>
Public Types | |
typedef ElementSharedPtrVector::const_iterator | ElementSharedPtrConstIterator |
Constant iterator for Element shared pointers. More... | |
typedef ElementSharedPtrVector::iterator | ElementSharedPtrIterator |
Non-constant iterator for Element shared pointers. More... | |
typedef PrimitivePinSharedPtrVector::const_iterator | PrimitivePinSharedPtrConstIterator |
typedef PrimitivePinSharedPtrVector::iterator | PrimitivePinSharedPtrIterator |
Public Member Functions | |
ElementSharedPtrIterator | findElement (const string &inName) |
Find a primitive element by name. More... | |
bool | addElement (ElementSharedPtr &inElementPtr) |
Add a element to the primitive. More... | |
bool | removeElement (ElementSharedPtr &inElementPtr) |
Remove a element from the primitive. More... | |
bool | operator== (const Primitive &rhs) const |
Equality operator. More... | |
size_t | getElementCount (void) const |
ElementSharedPtrConstIterator | elementsBegin (void) const |
Returns the begin constant iterator for elements. More... | |
ElementSharedPtrConstIterator | elementsEnd (void) const |
Returns the end constant iterator for elements. More... | |
ElementSharedPtrIterator | elementsBegin (void) |
Returns the begin non-constant iterator for elements. More... | |
ElementSharedPtrIterator | elementsEnd (void) |
Returns the end non-constant iterator for elements. More... | |
size_t | getPrimitivePinCount (void) const |
PrimitivePinSharedPtrConstIterator | PrimitivePinsBegin (void) const |
PrimitivePinSharedPtrIterator | PrimitivePinsBegin (void) |
PrimitivePinSharedPtrConstIterator | PrimitivePinsEnd (void) const |
PrimitivePinSharedPtrIterator | PrimitivePinsEnd (void) |
bool | addPrimitivePin (PrimitivePinSharedPtr &inPrimitivePinPtr) |
bool | removePrimitivePin (PrimitivePinSharedPtr &inPrimitivePinPtr) |
PrimitivePinSharedPtrIterator | findPrimitivePin (const string &inName) |
bool | operator== (const Component &rhs) const |
bool | operator== (const Named &rhs) const |
Equality operator. More... | |
const string & | getName (void) const |
Returns the object name. More... | |
const WeakPtrType & | getParentWeakPtr (void) const |
Returns a weak pointer to the parent. More... | |
void | setParentWeakPtr (WeakPtrType inParentPtr) |
Sets the weak pointer to the parent. More... | |
void | resetParentWeakPtr (void) |
Method to reset and orphan this object. More... | |
const SharedPtrType & | getParentSharedPtr (void) const |
Returns a shared pointer to the parent (WARNING: Does not work right). More... | |
Protected Types | |
typedef std::string | string |
Imported type name. More... | |
typedef boost::weak_ptr< class Component > | WeakPtrType |
Weak pointer of our own type. More... | |
typedef boost::weak_ptr< class Component > | WeakPtrType |
Weak pointer of our own type. More... | |
typedef boost::shared_ptr < class Component > | SharedPtrType |
Shared pointer of our own type. More... | |
typedef boost::shared_ptr < class Component > | SharedPtrType |
Shared pointer of our own type. More... | |
Protected Member Functions | |
Primitive (const string &inName) | |
void | setSelfWeakPtr (WeakPtrType inSelfPtr) |
Sets the weak pointer to this object. More... | |
const WeakPtrType & | getSelfWeakPtr (void) const |
Returns a weak pointer to this object. More... | |
Protected Attributes | |
ElementSharedPtrVector | mElements |
Vector of element shared pointers. More... | |
PrimitivePinSharedPtrVector | mPrimitivePins |
string | mName |
The name of the object. More... | |
WeakPtrType | mParentWeakPtr |
Weak pointer to the parent. More... | |
WeakPtrType | mSelfWeakPtr |
Weak pointer this object. More... | |
Friends | |
class | RcFactory |
The Factory class has direct access to our internals. More... | |
primitive.
Definition at line 33 of file Primitive.hpp.
typedef ElementSharedPtrVector::const_iterator torc::physical::Primitive::ElementSharedPtrConstIterator |
Constant iterator for Element shared pointers.
Definition at line 53 of file Primitive.hpp.
typedef ElementSharedPtrVector::iterator torc::physical::Primitive::ElementSharedPtrIterator |
Non-constant iterator for Element shared pointers.
Definition at line 55 of file Primitive.hpp.
|
inherited |
Definition at line 39 of file Component.hpp.
|
inherited |
Definition at line 40 of file Component.hpp.
|
protectedinherited |
Shared pointer of our own type.
Definition at line 35 of file Progeny.hpp.
|
protectedinherited |
Shared pointer of our own type.
Definition at line 52 of file Progenitor.hpp.
|
protected |
Imported type name.
Definition at line 42 of file Primitive.hpp.
|
protectedinherited |
Weak pointer of our own type.
Definition at line 33 of file Progeny.hpp.
|
protectedinherited |
Weak pointer of our own type.
Definition at line 50 of file Progenitor.hpp.
|
inlineprotected |
Definition at line 48 of file Primitive.hpp.
|
inline |
Add a element to the primitive.
inElementPtr | The element to add. |
Definition at line 69 of file Primitive.hpp.
|
inlineinherited |
Definition at line 48 of file Component.hpp.
|
inline |
Returns the begin constant iterator for elements.
Definition at line 161 of file Primitive.hpp.
|
inline |
Returns the begin non-constant iterator for elements.
Definition at line 165 of file Primitive.hpp.
|
inline |
Returns the end constant iterator for elements.
Definition at line 163 of file Primitive.hpp.
|
inline |
Returns the end non-constant iterator for elements.
Definition at line 167 of file Primitive.hpp.
|
inline |
Find a primitive element by name.
inName | The element name to look for. |
Definition at line 61 of file Primitive.hpp.
|
inlineinherited |
Definition at line 66 of file Component.hpp.
|
inline |
Definition at line 158 of file Primitive.hpp.
|
inlineinherited |
|
inlineinherited |
Returns a shared pointer to the parent (WARNING: Does not work right).
Always seems to generate a "Returning reference to temporary" warning, and I cannot figure out why.
It is the caller's responsibility to reset the shared pointer when done.
Definition at line 59 of file Progeny.hpp.
|
inlineinherited |
Returns a weak pointer to the parent.
Definition at line 47 of file Progeny.hpp.
|
inlineinherited |
Definition at line 42 of file Component.hpp.
|
inlineinherited |
Returns a weak pointer to this object.
Definition at line 68 of file Progenitor.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 71 of file Component.hpp.
|
inline |
Equality operator.
This function deems elements equal if their names are identical.
rhs | The element to compare against. |
Definition at line 153 of file Primitive.hpp.
|
inlineinherited |
Definition at line 43 of file Component.hpp.
|
inlineinherited |
Definition at line 45 of file Component.hpp.
|
inlineinherited |
Definition at line 44 of file Component.hpp.
|
inlineinherited |
Definition at line 46 of file Component.hpp.
|
inline |
Remove a element from the primitive.
inElementPtr | The element to remove. |
Definition at line 80 of file Primitive.hpp.
|
inlineinherited |
Definition at line 57 of file Component.hpp.
|
inlineinherited |
Method to reset and orphan this object.
Definition at line 51 of file Progeny.hpp.
|
inlineinherited |
Sets the weak pointer to the parent.
Definition at line 49 of file Progeny.hpp.
|
inlineprotectedinherited |
Sets the weak pointer to this object.
Definition at line 59 of file Progenitor.hpp.
|
friend |
The Factory class has direct access to our internals.
Definition at line 37 of file Primitive.hpp.
|
protected |
Vector of element shared pointers.
Definition at line 45 of file Primitive.hpp.
|
protectedinherited |
|
protectedinherited |
Weak pointer to the parent.
Definition at line 38 of file Progeny.hpp.
|
protectedinherited |
Definition at line 34 of file Component.hpp.
|
protectedinherited |
Weak pointer this object.
This weak pointer is kept here to be passed along to our children, allowing them to point back to us without the strong dependency of a shared pointer.
Definition at line 57 of file Progenitor.hpp.