OpenVDB  9.0.1
Public Types | Public Member Functions | List of all members
PointIndex< IntType_, Kind > Struct Template Reference

Integer wrapper, required to distinguish PointIndexGrid and PointDataGrid from Int32Grid and Int64Grid. More...

#include <openvdb/Types.h>

Public Types

using IntType = IntType_
 

Public Member Functions

 PointIndex (IntType i=IntType(0))
 
template<typename T >
 PointIndex (T i)
 Explicit type conversion constructor. More...
 
 operator IntType () const
 
template<typename T >
PointIndex operator+ (T x)
 Needed to support the (zeroVal<PointIndex>() + val) idiom. More...
 

Detailed Description

template<typename IntType_, Index Kind>
struct openvdb::v9_0::PointIndex< IntType_, Kind >

Integer wrapper, required to distinguish PointIndexGrid and PointDataGrid from Int32Grid and Int64Grid.

Note
Kind is a dummy parameter used to create distinct types.

Member Typedef Documentation

using IntType = IntType_

Constructor & Destructor Documentation

PointIndex ( IntType  i = IntType(0))
inline
PointIndex ( i)
inlineexplicit

Explicit type conversion constructor.

Member Function Documentation

operator IntType ( ) const
inline
PointIndex operator+ ( x)
inline

Needed to support the (zeroVal<PointIndex>() + val) idiom.