Easy3D 2.5.3
Property< T > Class Template Reference

Implementation of a generic property. More...

Inheritance diagram for Property< T >:
Graph::EdgeProperty< T > Graph::ModelProperty< T > Graph::VertexProperty< T > PointCloud::ModelProperty< T > PointCloud::VertexProperty< T > PolyMesh::CellProperty< T > PolyMesh::EdgeProperty< T > PolyMesh::FaceProperty< T > PolyMesh::HalfFaceProperty< T > PolyMesh::ModelProperty< T > PolyMesh::VertexProperty< T > SurfaceMesh::EdgeProperty< T > SurfaceMesh::FaceProperty< T > SurfaceMesh::HalfedgeProperty< T > SurfaceMesh::ModelProperty< T > SurfaceMesh::VertexProperty< T >

Public Types

typedef PropertyArray< T >::reference reference
 
typedef PropertyArray< T >::const_reference const_reference
 

Public Member Functions

 Property (PropertyArray< T > *p=nullptr)
 
void reset ()
 
 operator bool () const
 
virtual reference operator[] (size_t i)
 
virtual const_reference operator[] (size_t i) const
 
const T * data () const
 
std::vector< T > & vector ()
 
const std::vector< T > & vector () const
 
PropertyArray< T > & array ()
 
const PropertyArray< T > & array () const
 
const std::string & name () const
 Return the name of the property.
 
void set_name (const std::string &n)
 Set the name of the property.
 

Friends

class PropertyContainer
 

Detailed Description

template<class T>
class easy3d::Property< T >

Implementation of a generic property.

Member Function Documentation

◆ operator[]() [1/2]

virtual reference operator[] ( size_t  i)
inlinevirtual

◆ operator[]() [2/2]

virtual const_reference operator[] ( size_t  i) const
inlinevirtual

The documentation for this class was generated from the following file: