PLYwoot
Header-only C++17 library for parsing and writing PLY files
|
#include <element_data.hpp>
Public Member Functions | |
PlyElementData ()=default | |
Default constructor. | |
PlyElementData (const PlyElement &element) | |
~PlyElementData () | |
Destructor, deallocates all vectors holding the variable length lists. | |
PlyElementData (PlyElementData &&x) noexcept | |
PlyElementData & | operator= (PlyElementData &&x) noexcept |
const PlyElement & | element () const |
std::uint8_t * | data () const |
std::size_t | alignment () const |
Abstracts a block of memory representing storing all data in a PLY element mapping the data types used in the PLY file directly on native types.
Definition at line 35 of file element_data.hpp.
|
inlineexplicit |
Constructs an element data block for the given PLY element. Calculates the total size in bytes of the data block to represent all data in the given PLY element. Note that lists are mapped on to std::vector
, so we can pre-calculate the data size of the data block.
element | PLY element to construct this instance for |
Definition at line 47 of file element_data.hpp.
|
inline |
Destructor, deallocates all vectors holding the variable length lists.
Definition at line 145 of file element_data.hpp.
|
inlinenoexcept |
Move constructor implemented in terms of move assignment for simplicity.
x | PLY element data instance to construct from |
Definition at line 197 of file element_data.hpp.
|
inline |
Alignment requirements of the elements stored in this memory block in bytes.
Definition at line 234 of file element_data.hpp.
|
inline |
Returns a pointer to the memory block storing element data.
Definition at line 227 of file element_data.hpp.
|
inline |
Returns the associated element definition.
Definition at line 222 of file element_data.hpp.
|
inlinenoexcept |
Move assignment operator.
x | PLY element data instance to move assign from |
Definition at line 203 of file element_data.hpp.