A collection of Objects. More...
#include <object.h>
Public Member Functions | |
virtual size_t | size ()=0 |
Get the size of the collection. More... | |
virtual void | prepare (const size_t &size)=0 |
Prepare the Array to contain a number of Objects. More... | |
void | prepare (const Element &elem) |
Prepare the Array to contain the Objects of an Element. More... | |
virtual void | clear ()=0 |
Remove all Objects from the Array. | |
virtual void | restart ()=0 |
Restart from the beginning of the Array. | |
virtual Object & | next_object ()=0 |
Get the next Object. More... | |
template<class T > | |
T & | next () |
Get the next Object as a certain type. More... | |
A collection of Objects.
|
inline |
|
pure virtual |
Get the next Object.
Implemented in PLY::FaceExternal, PLY::VertexExternal, PLY::FaceArray, PLY::VertexArray, and PLY::AnyArray.
|
pure virtual |
Prepare the Array to contain a number of Objects.
size | the number of Objects to prepare for. |
Implemented in PLY::FaceExternal, PLY::VertexExternal, and PLY::AnyArray.
|
inline |
|
pure virtual |
Get the size of the collection.
Implemented in PLY::FaceExternal, PLY::VertexExternal, and PLY::AnyArray.