Drag[en]gine Game Engine  1.0
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.

Author
Pl├╝ss Roland
Version
1.0
Date
2015

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.

Referenced by GetCount().

◆ GetAt()

decShape* decShapeList::GetAt ( int  index) const

Shape at index.

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

Referenced by GetCount().

◆ GetCount()

int decShapeList::GetCount ( ) const
inline

◆ Has()

bool decShapeList::Has ( decShape shape) const

Shape is present.

Referenced by GetCount().

◆ IndexOf()

int decShapeList::IndexOf ( decShape shape) const

Index of shape or -1 if absent.

Referenced by GetCount().

◆ operator=()

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

Set list to copy of another list.

Referenced by GetCount().

◆ Remove()

void decShapeList::Remove ( decShape shape)

Remove shape.

Exceptions
deeInvalidParamShape is absent.

Referenced by GetCount().

◆ RemoveAll()

void decShapeList::RemoveAll ( )

Remove all shapes.

Referenced by GetCount().

◆ RemoveFrom()

void decShapeList::RemoveFrom ( int  index)

Remove shape from index.

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

Referenced by 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().

Referenced by GetCount().

◆ Visit()

void decShapeList::Visit ( decShapeVisitor visitor)

Visit shapes.

Referenced by GetCount().


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