Public Member Functions | Protected Attributes | Private Attributes

lssr::ListProperty< ListT > Class Template Reference

Representation of a list property in ply files. More...

#include <PLYProperty.hpp>

Inheritance diagram for lssr::ListProperty< ListT >:
Inheritance graph
[legend]
Collaboration diagram for lssr::ListProperty< ListT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ListProperty (size_t count, Property *p)
 Constructor.
size_t getValueSize ()
 Returns the size of the list elements.
string getElementTypeStr ()
 Returns a string representation of the type of the list elements.
size_t getCountSize ()
 Returns the size in bytes of the counting data type.
string getCountTypeStr ()
 Returns a string representation of the count data type.
bool isList ()
 Always true for list 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.).

Private Attributes

Propertym_property
 A scalar property for the list elements.

Detailed Description

template<typename ListT>
class lssr::ListProperty< ListT >

Representation of a list property in ply files.

Definition at line 122 of file PLYProperty.hpp.


Constructor & Destructor Documentation

template<typename ListT>
lssr::ListProperty< ListT >::ListProperty ( size_t  count,
Property p 
) [inline]

Constructor.

Parameters:
count Number of elements in the list
p The scalar property that is represented in the list

Property lists encode repeated appearance of a special property. The reduce the number of template parameters, we use the information stored in a scalar property and store them internally. This way the list property only depends on a single template parameter (for the list type) which eases instantiation.

Definition at line 138 of file PLYProperty.hpp.

Here is the call graph for this function:


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 ListT>
size_t lssr::ListProperty< ListT >::getCountSize (  )  [inline, virtual]

Returns the size in bytes of the counting data type.

Implements lssr::Property.

Definition at line 158 of file PLYProperty.hpp.

template<typename ListT>
string lssr::ListProperty< ListT >::getCountTypeStr (  )  [inline, virtual]

Returns a string representation of the count data type.

Implements lssr::Property.

Definition at line 163 of file PLYProperty.hpp.

template<typename ListT>
string lssr::ListProperty< ListT >::getElementTypeStr (  )  [inline, virtual]

Returns a string representation of the type of the list elements.

Implements lssr::Property.

Definition at line 153 of file PLYProperty.hpp.

Here is the call graph for this function:

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 ListT>
size_t lssr::ListProperty< ListT >::getValueSize (  )  [inline, virtual]

Returns the size of the list elements.

Implements lssr::Property.

Definition at line 147 of file PLYProperty.hpp.

Here is the call graph for this function:

template<typename ListT>
bool lssr::ListProperty< ListT >::isList (  )  [inline, virtual]

Always true for list properties.

Implements lssr::Property.

Definition at line 168 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.

template<typename ListT>
Property* lssr::ListProperty< ListT >::m_property [private]

A scalar property for the list elements.

Definition at line 173 of file PLYProperty.hpp.


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