MeshAttribute Class Reference

#include <mesh_attribute_base.h>

Detailed Description

A simple wrapper class which contains a data pointer and a reference to the MeshAttribute implementation class. Implements all the arithmetic operators to simplify usage independently of the data type itself.

Public Member Functions

 MeshAttribute ()=default
 
 MeshAttribute (const MeshAttributeClass &cls, void *valuePtr)
 
 MeshAttribute (const MeshAttributeClass &cls, const void *valuePtr)
 
 MeshAttribute (const MeshAttribute &src, void *valuePtr)
 
Bool operator== (const MeshAttribute &b) const
 
Bool operator!= (const MeshAttribute &b) const
 
Bool operator< (const MeshAttribute &b) const
 
Bool operator> (const MeshAttribute &b) const
 
MeshAttribute operator+ (const MeshAttribute &b) const
 
MeshAttribute operator- (const MeshAttribute &b) const
 
MeshAttribute operator* (const MeshAttribute &b) const
 
MeshAttribute operator* (Float value) const
 
MeshAttribute operator/ (const MeshAttribute &b) const
 
MeshAttribute operator/ (Float value) const
 
MeshAttribute operator+= (const MeshAttribute &b)
 
MeshAttribute operator-= (const MeshAttribute &b)
 
MeshAttribute operator*= (const MeshAttribute &b)
 
MeshAttribute operator*= (Float value)
 
MeshAttribute operator/= (const MeshAttribute &b)
 
MeshAttribute operator/= (Float value)
 

Public Attributes

MeshAttributeClassInterface::ConstPtr _cls
 
void * _valuePtr
 

Constructor & Destructor Documentation

◆ MeshAttribute() [1/4]

MeshAttribute ( )
default

◆ MeshAttribute() [2/4]

MeshAttribute ( const MeshAttributeClass &  cls,
void *  valuePtr 
)

◆ MeshAttribute() [3/4]

MeshAttribute ( const MeshAttributeClass &  cls,
const void *  valuePtr 
)

◆ MeshAttribute() [4/4]

MeshAttribute ( const MeshAttribute src,
void *  valuePtr 
)

Member Function Documentation

◆ operator==()

Bool operator== ( const MeshAttribute b) const

◆ operator!=()

Bool operator!= ( const MeshAttribute b) const

◆ operator<()

Bool operator< ( const MeshAttribute b) const

◆ operator>()

Bool operator> ( const MeshAttribute b) const

◆ operator+()

MeshAttribute operator+ ( const MeshAttribute b) const

◆ operator-()

MeshAttribute operator- ( const MeshAttribute b) const

◆ operator*() [1/2]

MeshAttribute operator* ( const MeshAttribute b) const

◆ operator*() [2/2]

MeshAttribute operator* ( Float  value) const

◆ operator/() [1/2]

MeshAttribute operator/ ( const MeshAttribute b) const

◆ operator/() [2/2]

MeshAttribute operator/ ( Float  value) const

◆ operator+=()

MeshAttribute operator+= ( const MeshAttribute b)

◆ operator-=()

MeshAttribute operator-= ( const MeshAttribute b)

◆ operator*=() [1/2]

MeshAttribute operator*= ( const MeshAttribute b)

◆ operator*=() [2/2]

MeshAttribute operator*= ( Float  value)

◆ operator/=() [1/2]

MeshAttribute operator/= ( const MeshAttribute b)

◆ operator/=() [2/2]

MeshAttribute operator/= ( Float  value)

Member Data Documentation

◆ _cls

MeshAttributeClassInterface::ConstPtr _cls

◆ _valuePtr

void* _valuePtr