PLY reader/writer  1.2.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | List of all members
PLY::Array Struct Referenceabstract

A collection of Objects. More...

#include <object.h>

Inheritance diagram for PLY::Array:
PLY::AnyArray PLY::FaceExternal PLY::VertexExternal PLY::FaceArray PLY::VertexArray

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 Objectnext_object ()=0
 Get the next Object. More...
 
template<class T >
T & next ()
 Get the next Object as a certain type. More...
 

Detailed Description

A collection of Objects.

Member Function Documentation

template<class T >
T& PLY::Array::next ( )
inline

Get the next Object as a certain type.

Returns
the Object.
virtual Object& PLY::Array::next_object ( )
pure virtual

Get the next Object.

Returns
the next Object.

Implemented in PLY::FaceExternal, PLY::VertexExternal, PLY::FaceArray, PLY::VertexArray, and PLY::AnyArray.

virtual void PLY::Array::prepare ( const size_t &  size)
pure virtual

Prepare the Array to contain a number of Objects.

Parameters
sizethe number of Objects to prepare for.

Implemented in PLY::FaceExternal, PLY::VertexExternal, and PLY::AnyArray.

void PLY::Array::prepare ( const Element elem)
inline

Prepare the Array to contain the Objects of an Element.

Parameters
elemthe Element to prepare for.
virtual size_t PLY::Array::size ( )
pure virtual

Get the size of the collection.

Returns
the size of the collection.

Implemented in PLY::FaceExternal, PLY::VertexExternal, and PLY::AnyArray.


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