kalzium
Avogadro::PrimitiveList Class Reference
#include <primitivelist.h>
Detailed Description
Class which set of Primitives.The PrimitiveList 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 47 of file src/primitivelist.h.
Public Member Functions | |
| void | append (Primitive *p) |
| const_iterator | begin () const |
| void | clear () |
| bool | contains (const Primitive *p) const |
| int | count () const |
| int | count (Primitive::Type type) const |
| const_iterator | end () const |
| bool | isEmpty () const |
| QList< Primitive * > | list () const |
| PrimitiveList & | operator= (const QList< Primitive * > &other) |
| PrimitiveList & | operator= (const PrimitiveList &other) |
| PrimitiveList (const QList< Primitive * > &other) | |
| PrimitiveList (const PrimitiveList &other) | |
| PrimitiveList () | |
| void | removeAll (Primitive *p) |
| int | size () const |
| QList< Primitive * > | subList (Primitive::Type type) const |
| ~PrimitiveList () | |
Classes | |
| class | const_iterator |
Constructor & Destructor Documentation
| Avogadro::PrimitiveList::PrimitiveList | ( | ) |
| Avogadro::PrimitiveList::PrimitiveList | ( | const PrimitiveList & | other | ) |
Definition at line 44 of file primitivelist.cpp.
Definition at line 51 of file primitivelist.cpp.
| Avogadro::PrimitiveList::~PrimitiveList | ( | ) |
Member Function Documentation
| void Avogadro::PrimitiveList::append | ( | Primitive * | p | ) |
Add a primitive to the queue.
- Parameters:
-
p primitive to add
Definition at line 111 of file primitivelist.cpp.
| PrimitiveList::const_iterator Avogadro::PrimitiveList::begin | ( | ) | const |
Definition at line 151 of file primitivelist.cpp.
| void Avogadro::PrimitiveList::clear | ( | ) |
| bool Avogadro::PrimitiveList::contains | ( | const Primitive * | p | ) | const |
- Parameters:
-
p the primitive to check if it is in any list
- Returns:
- true or false depending on whether p is in this list
Definition at line 105 of file primitivelist.cpp.
| int Avogadro::PrimitiveList::count | ( | ) | const |
| int Avogadro::PrimitiveList::count | ( | Primitive::Type | type | ) | const |
- Parameters:
-
type the type of primitives we're interested in
- Returns:
- the number of primitives for the given type
Definition at line 134 of file primitivelist.cpp.
| PrimitiveList::const_iterator Avogadro::PrimitiveList::end | ( | ) | const |
Definition at line 156 of file primitivelist.cpp.
| bool Avogadro::PrimitiveList::isEmpty | ( | ) | const |
| PrimitiveList & Avogadro::PrimitiveList::operator= | ( | const QList< Primitive * > & | other | ) |
Definition at line 69 of file primitivelist.cpp.
| PrimitiveList & Avogadro::PrimitiveList::operator= | ( | const PrimitiveList & | other | ) |
Definition at line 60 of file primitivelist.cpp.
| void Avogadro::PrimitiveList::removeAll | ( | 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 116 of file primitivelist.cpp.
| int Avogadro::PrimitiveList::size | ( | ) | const |
- Returns:
- the total number of primitives in this queue
Definition at line 121 of file primitivelist.cpp.
| QList< Primitive * > Avogadro::PrimitiveList::subList | ( | 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 85 of file primitivelist.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference