HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType > Struct Template Reference

Adapter to associate a map with a world-space operator, giving it the same call signature as an index-space operator. More...

#include <Operators.h>

Public Member Functions

 MapAdapter (const MapType &m)
 
template<typename AccessorType >
ResultType result (const AccessorType &grid, const Coord &ijk)
 
template<typename StencilType >
ResultType result (const StencilType &stencil)
 

Public Attributes

const MapType map
 

Detailed Description

template<typename MapType, typename OpType, typename ResultType>
struct openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType >

Adapter to associate a map with a world-space operator, giving it the same call signature as an index-space operator.

Todo:
For now, the operator's result type must be specified explicitly, but eventually it should be possible, via traits, to derive the result type from the operator type.

Definition at line 62 of file Operators.h.

Constructor & Destructor Documentation

template<typename MapType , typename OpType , typename ResultType >
openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType >::MapAdapter ( const MapType &  m)
inline

Definition at line 63 of file Operators.h.

Member Function Documentation

template<typename MapType , typename OpType , typename ResultType >
template<typename AccessorType >
ResultType openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType >::result ( const AccessorType &  grid,
const Coord ijk 
)
inline

Definition at line 67 of file Operators.h.

template<typename MapType , typename OpType , typename ResultType >
template<typename StencilType >
ResultType openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType >::result ( const StencilType &  stencil)
inline

Definition at line 71 of file Operators.h.

Member Data Documentation

template<typename MapType , typename OpType , typename ResultType >
const MapType openvdb::OPENVDB_VERSION_NAME::math::MapAdapter< MapType, OpType, ResultType >::map

Definition at line 73 of file Operators.h.


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