MeshAttribute Class Reference

#include <mesh_attribute_base.h>

详细描述

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.

公共成员函数

  MeshAttribute ()=default
  MeshAttribute (MeshAttributeClass cls, void *valuePtr)
  MeshAttribute (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

MeshAttributeClass  _cls
void *  _valuePtr

构造函数 & 析构函数文档编制

◆  MeshAttribute() [1/4]

MeshAttribute ( )
default

◆  MeshAttribute() [2/4]

MeshAttribute ( MeshAttributeClass  cls ,
void *  valuePtr  
)

◆  MeshAttribute() [3/4]

MeshAttribute ( MeshAttributeClass  cls ,
const void *  valuePtr  
)

◆  MeshAttribute() [4/4]

MeshAttribute ( const MeshAttribute src ,
void *  valuePtr  
)

成员函数文档编制

◆  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

MeshAttributeClass _cls

◆  _valuePtr

void* _valuePtr