Representation of a list property in ply files. More...
#include <PLYProperty.hpp>
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 | |
Property * | m_property |
A scalar property for the list elements. |
Representation of a list property in ply files.
Definition at line 122 of file PLYProperty.hpp.
lssr::ListProperty< ListT >::ListProperty | ( | size_t | count, | |
Property * | p | |||
) | [inline] |
Constructor.
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.
size_t lssr::Property::getCount | ( | ) | [inline, inherited] |
Returns the number of list entries for list properties.
Definition at line 55 of file PLYProperty.hpp.
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.
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.
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.
string lssr::Property::getName | ( | ) | [inline, inherited] |
Returns the property's name.
Definition at line 50 of file PLYProperty.hpp.
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.
bool lssr::ListProperty< ListT >::isList | ( | ) | [inline, virtual] |
Always true for list properties.
Implements lssr::Property.
Definition at line 168 of file PLYProperty.hpp.
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.
Property* lssr::ListProperty< ListT >::m_property [private] |
A scalar property for the list elements.
Definition at line 173 of file PLYProperty.hpp.