• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

Avogadro::PrimitiveQueue

Avogadro::PrimitiveQueue Class Reference

#include <primitive.h>

List of all members.


Detailed Description

Class which set of Primitives.

Author:
Donald Ephraim Curtis <donald-curtis@uiowa.edu>
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 (  ) 

Constructor.

Definition at line 287 of file primitive.cpp.

Avogadro::PrimitiveQueue::~PrimitiveQueue (  ) 

Deconstructor.

Definition at line 294 of file primitive.cpp.


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
Returns:
a QList of pointers to Primitive objects

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

Returns:
the total number of primitives in this queue

Definition at line 313 of file primitive.cpp.

void Avogadro::PrimitiveQueue::clear (  ) 

Removes every primitive from the queue.

Definition at line 321 of file primitive.cpp.


The documentation for this class was generated from the following files:
  • src/primitive.h
  • primitive.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal