HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT > Struct Template Reference

#include <Statistics.h>

Public Types

typedef IterT::TreeT TreeT
 
typedef TreeT::ValueType ValueT
 
typedef tree::ValueAccessor
< const TreeT
ConstAccessor
 

Public Member Functions

 MathOp (const IterT &iter, const OpT &op)
 
void operator() (const IterT &it)
 
void join (MathOp &other)
 

Static Public Member Functions

template<typename TreeT >
static TreeTTHROW_IF_NULL (TreeT *ptr)
 

Public Attributes

ConstAccessor mAcc
 
OpT mOp
 
StatsT mStats
 

Detailed Description

template<typename IterT, typename OpT, typename StatsT>
struct openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >

Definition at line 313 of file Statistics.h.

Member Typedef Documentation

template<typename IterT, typename OpT, typename StatsT>
typedef tree::ValueAccessor<const TreeT> openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::ConstAccessor

Definition at line 317 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
typedef IterT::TreeT openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::TreeT

Definition at line 315 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
typedef TreeT::ValueType openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::ValueT

Definition at line 316 of file Statistics.h.

Constructor & Destructor Documentation

template<typename IterT, typename OpT, typename StatsT>
openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::MathOp ( const IterT &  iter,
const OpT &  op 
)
inline

Definition at line 330 of file Statistics.h.

Member Function Documentation

template<typename IterT, typename OpT, typename StatsT>
void openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::join ( MathOp< IterT, OpT, StatsT > &  other)
inline

Definition at line 360 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
void openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::operator() ( const IterT &  it)
inline
Todo:
This could be specialized to be done more efficiently for some operators. For example, all voxels in the interior of a tile (i.e., not on the borders) have gradient zero, so there's no need to apply the operator to every voxel.

Definition at line 335 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
template<typename TreeT >
static TreeT* openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::THROW_IF_NULL ( TreeT ptr)
inlinestatic

Definition at line 325 of file Statistics.h.

Member Data Documentation

template<typename IterT, typename OpT, typename StatsT>
ConstAccessor openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::mAcc

Definition at line 320 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
OpT openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::mOp

Definition at line 321 of file Statistics.h.

template<typename IterT, typename OpT, typename StatsT>
StatsT openvdb::OPENVDB_VERSION_NAME::tools::stats_internal::MathOp< IterT, OpT, StatsT >::mStats

Definition at line 322 of file Statistics.h.


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