Easy3D 2.6.1
Loading...
Searching...
No Matches
BasePropertyArray Class Referenceabstract

Base class for a property array. More...

#include <easy3d/core/property.h>

Inheritance diagram for BasePropertyArray:
reference< T > const_reference< T > PropertyArray< easy3d::Graph::VertexConnectivity > PropertyArray< easy3d::Graph::EdgeConnectivity > PropertyArray< bool > PropertyArray< easy3d::Vec< 3, float > > 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< Quadric > PropertyArray< 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
 Reserves memory for n elements.
 
virtual void resize (size_t n)=0
 Resizes storage to hold n elements.
 
virtual void shrink_to_fit ()=0
 Free unused memory.
 
virtual void push_back ()=0
 Extend the number of elements by one.
 
virtual void reset (size_t idx)=0
 Resets an element to its default value.
 
virtual bool transfer (const BasePropertyArray &other)=0
 Copies the entire properties from another property array.
 
virtual bool transfer (const BasePropertyArray &other, std::size_t from, std::size_t to)=0
 Copies a property from one index to another.
 
virtual void swap (size_t i0, size_t i1)=0
 Swaps the storage place of two elements.
 
virtual void copy (size_t from, size_t to)=0
 Copies an element from one index to another.
 
virtual BasePropertyArrayclone () const =0
 Returns a deep copy of the property array.
 
virtual BasePropertyArrayempty_clone () const =0
 Returns an empty copy of the property array.
 
virtual const std::type_info & type () const =0
 Returns the type information of the property.
 
const std::string & name () const
 Returns the name of the property.
 
void set_name (const std::string &n)
 Sets the name of the property.
 
bool is_same (const BasePropertyArray &other) const
 Tests if two properties are the same.
 

Detailed Description

Base class for a property array.

Constructor & Destructor Documentation

◆ BasePropertyArray()

BasePropertyArray ( const std::string & name)
inlineexplicit

Default constructor.

Parameters
nameThe name of the property array.

Member Function Documentation

◆ clone()

◆ copy()

◆ empty_clone()

◆ is_same()

bool is_same ( const BasePropertyArray & other) const
inline

Tests if two properties are the same.

Parameters
otherThe other property array to compare with.
Returns
True if their names and types are both identical, false otherwise.

◆ name()

const std::string & name ( ) const
inline

Returns the name of the property.

Returns
The name of the property.

◆ push_back()

◆ reserve()

◆ reset()

◆ resize()

◆ set_name()

void set_name ( const std::string & n)
inline

Sets the name of the property.

Parameters
nThe new name of the property.

◆ shrink_to_fit()

◆ swap()

◆ transfer() [1/2]

◆ transfer() [2/2]

◆ type()


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