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

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

#include <example.h>

Inheritance diagram for PLY::VertexExternal:
PLY::Array

Public Member Functions

 VertexExternal (std::vector< Vertex > &v)
 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< Vertex > & vertices
 The Vertices in the array.
 
size_t incr
 Indicator for the Object to get.
 

Detailed Description

An example Array: an collection of Vertices.

These Vertices are stored extrenally.

Constructor & Destructor Documentation

PLY::VertexExternal::VertexExternal ( std::vector< Vertex > &  v)
inline

Constructor.

Parameters
vthe external storage.

Member Function Documentation

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

Get the next Object.

Returns
the next Object.

Implements PLY::Array.

void PLY::VertexExternal::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::VertexExternal::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: