kalzium
Avogadro::PrimitiveQueue Class Reference
#include <primitive.h>
Detailed Description
Class which set of Primitives.The PrimitiveQueue class is designed to hold a set of Primitive objects and keep them organized by type allowing groups of them to be retrieved in constant time.
Definition at line 392 of file src/primitive.h.
Public Member Functions | |
| PrimitiveQueue () | |
| ~PrimitiveQueue () | |
| const QList< Primitive * > & | primitiveList (enum Primitive::Type type) const |
| void | addPrimitive (Primitive *p) |
| void | removePrimitive (Primitive *p) |
| int | size () const |
| void | clear () |
Constructor & Destructor Documentation
| Avogadro::PrimitiveQueue::PrimitiveQueue | ( | ) |
| Avogadro::PrimitiveQueue::~PrimitiveQueue | ( | ) |
Member Function Documentation
| const QList< Primitive * > & Avogadro::PrimitiveQueue::primitiveList | ( | enum Primitive::Type | type | ) | const |
Returns a list of primitives for a given type.
- Parameters:
-
type the type of primitives to retrieve, one of Primitive::Type
Definition at line 301 of file primitive.cpp.
| void Avogadro::PrimitiveQueue::addPrimitive | ( | Primitive * | p | ) |
Add a primitive to the queue.
- Parameters:
-
p primitive to add
Definition at line 305 of file primitive.cpp.
| void Avogadro::PrimitiveQueue::removePrimitive | ( | Primitive * | p | ) |
Remove a primitive from the queue.
If the parameter does not exist in the queue, nothing is removed.
- Parameters:
-
p primitive to remove
Definition at line 309 of file primitive.cpp.
| int Avogadro::PrimitiveQueue::size | ( | ) | const |
| void Avogadro::PrimitiveQueue::clear | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference