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

An Array representing a generic Element. More...

#include <unknown.h>

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

Public Member Functions

 AnyArray ()
 Default constructor.
 
virtual ~AnyArray ()
 Destructor.
 
virtual size_t size ()
 Get the size of the collection. More...
 
virtual void prepare (const size_t &size)
 Prepare the Array to contain a number of Objects. More...
 
virtual void clear ()
 Remove all Objects from the Array.
 
virtual void restart ()
 Restart from the beginning of the Array.
 
virtual Objectnext_object ()
 Get the next Object. More...
 
- Public Member Functions inherited from PLY::Array
void prepare (const Element &elem)
 Prepare the Array to contain the Objects of an Element. More...
 
template<class T >
T & next ()
 Get the next Object as a certain type. More...
 

Public Attributes

Object ** objects
 The Objects in the array.
 
size_t incr
 Indicator for the Object to get.
 

Detailed Description

An Array representing a generic Element.

Member Function Documentation

Object & PLY::AnyArray::next_object ( )
virtual

Get the next Object.

Returns
the next Object.

Implements PLY::Array.

Reimplemented in PLY::FaceArray, and PLY::VertexArray.

void PLY::AnyArray::prepare ( const size_t &  size)
virtual

Prepare the Array to contain a number of Objects.

Parameters
sizethe number of Objects to prepare for.

Implements PLY::Array.

virtual size_t PLY::AnyArray::size ( )
inlinevirtual

Get the size of the collection.

Returns
the size of the collection.

Implements PLY::Array.


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