Easy3D 2.5.3
BasePropertyArray Class Referenceabstract

Base class for a property array. More...

Inheritance diagram for BasePropertyArray:
PropertyArray< easy3d::Graph::VertexConnectivity > PropertyArray< easy3d::Graph::EdgeConnectivity > PropertyArray< bool > PropertyArray< easy3d::Vec > PropertyArray< easy3d::PolyMesh::VertexConnectivity > PropertyArray< easy3d::PolyMesh::EdgeConnectivity > PropertyArray< easy3d::PolyMesh::HalfFaceConnectivity > PropertyArray< easy3d::PolyMesh::CellConnectivity > PropertyArray< easy3d::SurfaceMesh::VertexConnectivity > PropertyArray< easy3d::SurfaceMesh::HalfedgeConnectivity > PropertyArray< easy3d::SurfaceMesh::FaceConnectivity > PropertyArray< easy3d::SurfaceMesh::Vertex > PropertyArray< float > PropertyArray< double > PropertyArray< int > PropertyArray< easy3d::SurfaceMesh::Halfedge > PropertyArray< easy3d::Quadric > PropertyArray< easy3d::NormalCone > PropertyArray< Points > PropertyArray< T >

Public Member Functions

 BasePropertyArray (const std::string &name)
 Default constructor.
 
virtual ~BasePropertyArray ()=default
 Destructor.
 
virtual void reserve (size_t n)=0
 Reserve memory for n elements. More...
 
virtual void resize (size_t n)=0
 Resize storage to hold n elements. More...
 
virtual void shrink_to_fit ()=0
 Free unused memory. More...
 
virtual void push_back ()=0
 Extend the number of elements by one. More...
 
virtual void reset (size_t idx)=0
 Reset element to default value. More...
 
virtual bool transfer (const BasePropertyArray &other)=0
 Copy the entire properties from other. More...
 
virtual bool transfer (const BasePropertyArray &other, std::size_t from, std::size_t to)=0
 Copy the property[from] of other to this->property[to]. More...
 
virtual void swap (size_t i0, size_t i1)=0
 Let two elements swap their storage place. More...
 
virtual void copy (size_t from, size_t to)=0
 Let copy 'from' -> 'to'. More...
 
virtual BasePropertyArrayclone () const =0
 Return a deep copy of self. More...
 
virtual BasePropertyArrayempty_clone () const =0
 Return a empty copy of self. More...
 
virtual const std::type_info & type () const =0
 Return the type_info of the property. More...
 
const std::string & name () const
 Return the name of the property.
 
void set_name (const std::string &n)
 Set the name of the property.
 
bool is_same (const BasePropertyArray &other) const
 

Detailed Description

Base class for a property array.

Member Function Documentation

◆ clone()

◆ copy()

◆ empty_clone()

◆ is_same()

bool is_same ( const BasePropertyArray other) const
inline

Test if two properties are the same.

Returns
true only if their names and types are both identical.

◆ push_back()

◆ reserve()

◆ reset()

◆ resize()

◆ shrink_to_fit()

◆ swap()

◆ transfer() [1/2]

◆ transfer() [2/2]

◆ type()


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