Public Member Functions | Protected Attributes

lssr::ScalarProperty< ElementT > Class Template Reference

Representation of a scalar ply property. More...

#include <PLYProperty.hpp>

Inheritance diagram for lssr::ScalarProperty< ElementT >:
Inheritance graph
[legend]
Collaboration diagram for lssr::ScalarProperty< ElementT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScalarProperty (string name)
 Construcs a ScalarProperty with the given name.
string getElementTypeStr ()
 Returns a string representation of the property's type.
size_t getValueSize ()
 Returns the size of the property in bytes.
size_t getCountSize ()
 Always zero for scalar properties.
string getCountTypeStr ()
 Always empty for scalar properties.
bool isList ()
 Always false for scalar properties.
string getName ()
 Returns the property's name.
size_t getCount ()
 Returns the number of list entries for list properties.

Protected Attributes

string m_name
 The property's name.
size_t m_count
 The number of elements in the list (only for list props.).

Detailed Description

template<typename ElementT>
class lssr::ScalarProperty< ElementT >

Representation of a scalar ply property.

Definition at line 77 of file PLYProperty.hpp.


Constructor & Destructor Documentation

template<typename ElementT >
lssr::ScalarProperty< ElementT >::ScalarProperty ( string  name  )  [inline]

Construcs a ScalarProperty with the given name.

Parameters:
name The name of the property

Definition at line 85 of file PLYProperty.hpp.


Member Function Documentation

size_t lssr::Property::getCount (  )  [inline, inherited]

Returns the number of list entries for list properties.

Definition at line 55 of file PLYProperty.hpp.

template<typename ElementT >
size_t lssr::ScalarProperty< ElementT >::getCountSize (  )  [inline, virtual]

Always zero for scalar properties.

Implements lssr::Property.

Definition at line 104 of file PLYProperty.hpp.

template<typename ElementT >
string lssr::ScalarProperty< ElementT >::getCountTypeStr (  )  [inline, virtual]

Always empty for scalar properties.

Implements lssr::Property.

Definition at line 109 of file PLYProperty.hpp.

template<typename ElementT >
string lssr::ScalarProperty< ElementT >::getElementTypeStr (  )  [inline, virtual]

Returns a string representation of the property's type.

Implements lssr::Property.

Definition at line 94 of file PLYProperty.hpp.

string lssr::Property::getName (  )  [inline, inherited]

Returns the property's name.

Definition at line 50 of file PLYProperty.hpp.

Here is the caller graph for this function:

template<typename ElementT >
size_t lssr::ScalarProperty< ElementT >::getValueSize (  )  [inline, virtual]

Returns the size of the property in bytes.

Implements lssr::Property.

Definition at line 99 of file PLYProperty.hpp.

template<typename ElementT >
bool lssr::ScalarProperty< ElementT >::isList (  )  [inline, virtual]

Always false for scalar properties.

Implements lssr::Property.

Definition at line 114 of file PLYProperty.hpp.


Member Data Documentation

size_t lssr::Property::m_count [protected, inherited]

The number of elements in the list (only for list props.).

Definition at line 69 of file PLYProperty.hpp.

string lssr::Property::m_name [protected, inherited]

The property's name.

Definition at line 66 of file PLYProperty.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Defines