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

An example Array: an collection of Faces. More...

#include <example.h>

Inheritance diagram for PLY::FaceExternal:
PLY::Array

Public Member Functions

 FaceExternal (std::vector< Face > &f)
 Constructor. More...
 
size_t size ()
 Get the size of the collection. More...
 
void prepare (const size_t &size)
 Prepare the Array to contain a number of Objects. More...
 
void clear ()
 Remove all Objects from the Array.
 
void restart ()
 Restart from the beginning of the Array.
 
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

std::vector< Face > & faces
 The Faces in the array.
 
size_t incr
 Indicator for the Object to get.
 

Detailed Description

An example Array: an collection of Faces.

These Faces are stored extrenally.

Constructor & Destructor Documentation

PLY::FaceExternal::FaceExternal ( std::vector< Face > &  f)
inline

Constructor.

Parameters
fthe external storage.

Member Function Documentation

Object& PLY::FaceExternal::next_object ( )
inlinevirtual

Get the next Object.

Returns
the next Object.

Implements PLY::Array.

void PLY::FaceExternal::prepare ( const size_t &  size)
inlinevirtual

Prepare the Array to contain a number of Objects.

Parameters
sizethe number of Objects to prepare for.

Implements PLY::Array.

size_t PLY::FaceExternal::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 file: