kalzium
Avogadro::IDList Class Reference
#include <idlist.h>
Detailed Description
Class which set of Primitives.The IDList 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 48 of file src/idlist.h.
Public Member Functions | |
| void | append (Primitive *p) |
| void | clear () |
| bool | contains (const Primitive *p) const |
| int | count () const |
| int | count (Primitive::Type type) const |
| IDList (const PrimitiveList &other) | |
| IDList (const QList< Primitive * > &other) | |
| IDList (const IDList &other) | |
| IDList () | |
| bool | isEmpty () const |
| IDList & | operator= (const PrimitiveList &other) |
| IDList & | operator= (const QList< Primitive * > &other) |
| IDList & | operator= (const IDList &other) |
| void | removeAll (Primitive *p) |
| int | size () const |
| QList< unsigned long > | subList (Primitive::Type type) const |
| ~IDList () | |
Constructor & Destructor Documentation
| Avogadro::IDList::IDList | ( | ) |
| Avogadro::IDList::IDList | ( | const IDList & | other | ) |
Definition at line 44 of file idlist.cpp.
Definition at line 51 of file idlist.cpp.
| Avogadro::IDList::IDList | ( | const PrimitiveList & | other | ) |
Definition at line 60 of file idlist.cpp.
| Avogadro::IDList::~IDList | ( | ) |
Member Function Documentation
| void Avogadro::IDList::append | ( | Primitive * | p | ) |
Add a primitive to the queue.
- Parameters:
-
p primitive to add
Definition at line 120 of file idlist.cpp.
| void Avogadro::IDList::clear | ( | ) |
| bool Avogadro::IDList::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 116 of file idlist.cpp.
| int Avogadro::IDList::count | ( | ) | const |
| int Avogadro::IDList::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 143 of file idlist.cpp.
| bool Avogadro::IDList::isEmpty | ( | ) | const |
| IDList & Avogadro::IDList::operator= | ( | const PrimitiveList & | other | ) |
Definition at line 90 of file idlist.cpp.
Definition at line 78 of file idlist.cpp.
Definition at line 69 of file idlist.cpp.
| void Avogadro::IDList::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 125 of file idlist.cpp.
| int Avogadro::IDList::size | ( | ) | const |
| QList< unsigned long > Avogadro::IDList::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 106 of file idlist.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference