decShapeList Class Reference

List of analytic shapes. More...

#include <decShapeList.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decShapeList ()
 Creates a new analytic shape list.
 ~decShapeList ()
 Cleans up the analytic shape list.
Management
int GetShapeCount () const
 Retrieves the number of shapes.
decShapeGetShapeAt (int index) const
 Retrieves the shape at the given index.
int IndexOfShape (decShape *shape) const
 Retrieves the index of the given shape or -1 if not found.
bool HasShape (decShape *shape) const
 Determines if the shape exists.
void SetShapeAt (int index, decShape *shape)
 Sets the shape at the given index.
void AddShape (decShape *shape)
 Adds a shape.
void RemoveShape (decShape *shape)
 Removes a shape.
void RemoveShapeFrom (int index)
 Removes a shape from the given index.
void RemoveAllShapes ()
 Removes all shapes.
void VisitShapes (decShapeVisitor *visitor)
 Visits shapes.

Detailed Description

List of analytic shapes.

Stores a list of analytic shapes. Usefull if you require a list of analytic shapes without having to implement all the house keeping. Provides also support for visiting the shapes in the list.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decShapeList::decShapeList (  )

Creates a new analytic shape list.

decShapeList::~decShapeList (  )

Cleans up the analytic shape list.


Member Function Documentation

void decShapeList::AddShape ( decShape shape )

Adds a shape.

decShape* decShapeList::GetShapeAt ( int  index ) const

Retrieves the shape at the given index.

int decShapeList::GetShapeCount (  ) const [inline]

Retrieves the number of shapes.

bool decShapeList::HasShape ( decShape shape ) const

Determines if the shape exists.

int decShapeList::IndexOfShape ( decShape shape ) const

Retrieves the index of the given shape or -1 if not found.

void decShapeList::RemoveAllShapes (  )

Removes all shapes.

void decShapeList::RemoveShape ( decShape shape )

Removes a shape.

void decShapeList::RemoveShapeFrom ( int  index )

Removes a shape from the given index.

void decShapeList::SetShapeAt ( int  index,
decShape shape 
)

Sets the shape at the given index.

void decShapeList::VisitShapes ( decShapeVisitor visitor )

Visits shapes.


The documentation for this class was generated from the following file: