Drag[en]gine Game Engine  1.21
decShapeList Class Reference

List of analytic shapes. More...

#include <decShapeList.h>

Public Member Functions

Constructors and Destructors
 decShapeList ()
 Create shape list. More...
 
 decShapeList (const decShapeList &copy)
 Create copy of shape list. More...
 
 ~decShapeList ()
 Clean up shape list. More...
 
Management
int GetCount () const
 Number of shapes. More...
 
decShapeGetAt (int index) const
 Shape at index. More...
 
int IndexOf (decShape *shape) const
 Index of shape or -1 if absent. More...
 
bool Has (decShape *shape) const
 Shape is present. More...
 
void SetAt (int index, decShape *shape)
 Set shape at index. More...
 
void Add (decShape *shape)
 Add shape. More...
 
void Remove (decShape *shape)
 Remove shape. More...
 
void RemoveFrom (int index)
 Remove shape from index. More...
 
void RemoveAll ()
 Remove all shapes. More...
 
void Visit (decShapeVisitor &visitor)
 Visit shapes. More...
 

Operators

decShapeListoperator= (const decShapeList &list)
 Set list to copy of another list. More...
 

Detailed Description

List of analytic shapes.

Provides support for visiting the shapes in the list.

Constructor & Destructor Documentation

◆ decShapeList() [1/2]

decShapeList::decShapeList ( )

Create shape list.

◆ decShapeList() [2/2]

decShapeList::decShapeList ( const decShapeList copy)

Create copy of shape list.

◆ ~decShapeList()

decShapeList::~decShapeList ( )

Clean up shape list.

Member Function Documentation

◆ Add()

void decShapeList::Add ( decShape shape)

Add shape.

Exceptions
deeInvalidParamShape is present.

◆ GetAt()

decShape* decShapeList::GetAt ( int  index) const

Shape at index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetCount().

◆ GetCount()

int decShapeList::GetCount ( ) const
inline

Number of shapes.

◆ Has()

bool decShapeList::Has ( decShape shape) const

Shape is present.

◆ IndexOf()

int decShapeList::IndexOf ( decShape shape) const

Index of shape or -1 if absent.

◆ operator=()

decShapeList& decShapeList::operator= ( const decShapeList list)

Set list to copy of another list.

◆ Remove()

void decShapeList::Remove ( decShape shape)

Remove shape.

Exceptions
deeInvalidParamShape is absent.

◆ RemoveAll()

void decShapeList::RemoveAll ( )

Remove all shapes.

◆ RemoveFrom()

void decShapeList::RemoveFrom ( int  index)

Remove shape from index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetCount().

◆ SetAt()

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

Set shape at index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetCount().

◆ Visit()

void decShapeList::Visit ( decShapeVisitor visitor)

Visit shapes.


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