#include <Primitive.hpp>


Public Types | |
| typedef ElementSharedPtrVector::const_iterator | ElementSharedPtrConstIterator |
| Constant iterator for Element shared pointers. | |
| typedef ElementSharedPtrVector::iterator | ElementSharedPtrIterator |
| Non-constant iterator for Element shared pointers. | |
Public Member Functions | |
| ElementSharedPtrIterator | findElement (const string &inName) |
| Find a primitive element by name. | |
| bool | addElement (ElementSharedPtr &inElementPtr) |
| Add a element to the primitive. | |
| bool | removeElement (ElementSharedPtr &inElementPtr) |
| Remove a element from the primitive. | |
| bool | operator== (const Primitive &rhs) const |
| Equality operator. | |
| size_t | getElementCount (void) const |
| ElementSharedPtrConstIterator | elementsBegin (void) const |
| Returns the begin constant iterator for elements. | |
| ElementSharedPtrConstIterator | elementsEnd (void) const |
| Returns the end constant iterator for elements. | |
| ElementSharedPtrIterator | elementsBegin (void) |
| Returns the begin non-constant iterator for elements. | |
| ElementSharedPtrIterator | elementsEnd (void) |
| Returns the end non-constant iterator for elements. | |
Protected Types | |
| typedef std::string | string |
| Imported type name. | |
Protected Member Functions | |
| Primitive (const string &inName) | |
Protected Attributes | |
| ElementSharedPtrVector | mElements |
| Vector of element shared pointers. | |
Friends | |
| class | RcFactory |
| The Factory class has direct access to our internals. | |
Definition at line 33 of file Primitive.hpp.
typedef std::string torc::physical::Primitive::string [protected] |
Imported type name.
Reimplemented from torc::physical::Component.
Definition at line 42 of file Primitive.hpp.
| typedef ElementSharedPtrVector::const_iterator torc::physical::Primitive::ElementSharedPtrConstIterator |
| typedef ElementSharedPtrVector::iterator torc::physical::Primitive::ElementSharedPtrIterator |
| ElementSharedPtrIterator torc::physical::Primitive::findElement | ( | const string & | inName | ) | [inline] |
Find a primitive element by name.
| inName | The element name to look for. |
Definition at line 61 of file Primitive.hpp.
| bool torc::physical::Primitive::addElement | ( | ElementSharedPtr & | inElementPtr | ) | [inline] |
Add a element to the primitive.
| inElementPtr | The element to add. |
Definition at line 69 of file Primitive.hpp.
| bool torc::physical::Primitive::removeElement | ( | ElementSharedPtr & | inElementPtr | ) | [inline] |
Remove a element from the primitive.
| inElementPtr | The element to remove. |
Definition at line 80 of file Primitive.hpp.
| bool torc::physical::Primitive::operator== | ( | const Primitive & | rhs | ) | const [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.
| ElementSharedPtrConstIterator torc::physical::Primitive::elementsBegin | ( | void | ) | const [inline] |
| ElementSharedPtrConstIterator torc::physical::Primitive::elementsEnd | ( | void | ) | const [inline] |
| ElementSharedPtrIterator torc::physical::Primitive::elementsBegin | ( | void | ) | [inline] |
| ElementSharedPtrIterator torc::physical::Primitive::elementsEnd | ( | void | ) | [inline] |
friend class RcFactory [friend] |
1.5.6