HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT > Struct Template Reference

Checks a value against a range. More...

#include <Diagnostics.h>

Public Types

using ElementType = typename VecTraits< typename GridT::ValueType >::ElementType
 
using TileIterT = TreeIterT
 
using VoxelIterT = typename tree::IterTraits< typename TreeIterT::NodeT, typename TreeIterT::ValueIterT >::template NodeConverter< typename GridT::TreeType::LeafNodeType >::Type
 

Public Member Functions

 CheckRange (const ElementType &_min, const ElementType &_max)
 
bool operator() (const ElementType &v) const
 Return true if the value is smaller than min or larger than max. More...
 
template<typename T >
std::enable_if< VecTraits< T >
::IsVec, bool >::type 
operator() (const T &v) const
 Return true if any of the vector components are out of range. More...
 
bool operator() (const TreeIterT &iter) const
 Return true if the voxel at the iterator location is out of range. More...
 
bool operator() (const VoxelIterT &iter) const
 Return true if the tile at the iterator location is out of range. More...
 
std::string str () const
 Return a string describing a failed check. More...
 

Public Attributes

const ElementType minVal
 
const ElementType maxVal
 

Detailed Description

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
struct openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >

Checks a value against a range.

Definition at line 281 of file Diagnostics.h.

Member Typedef Documentation

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::ElementType = typename VecTraits<typename GridT::ValueType>::ElementType

Definition at line 283 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::TileIterT = TreeIterT

Definition at line 284 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::VoxelIterT = typename tree::IterTraits<typename TreeIterT::NodeT, typename TreeIterT::ValueIterT> ::template NodeConverter< typename GridT::TreeType::LeafNodeType>::Type

Definition at line 287 of file Diagnostics.h.

Constructor & Destructor Documentation

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::CheckRange ( const ElementType _min,
const ElementType _max 
)
inline

Definition at line 290 of file Diagnostics.h.

Member Function Documentation

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::operator() ( const ElementType v) const
inline

Return true if the value is smaller than min or larger than max.

Definition at line 298 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
template<typename T >
std::enable_if<VecTraits<T>::IsVec, bool>::type openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::operator() ( const T &  v) const
inline

Return true if any of the vector components are out of range.

Definition at line 307 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::operator() ( const TreeIterT &  iter) const
inline

Return true if the voxel at the iterator location is out of range.

Definition at line 313 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
bool openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::operator() ( const VoxelIterT iter) const
inline

Return true if the tile at the iterator location is out of range.

Definition at line 316 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
std::string openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::str ( ) const
inline

Return a string describing a failed check.

Definition at line 319 of file Diagnostics.h.

Member Data Documentation

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
const ElementType openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::maxVal

Definition at line 327 of file Diagnostics.h.

template<typename GridT, bool MinInclusive = true, bool MaxInclusive = true, typename TreeIterT = typename GridT::ValueOnCIter>
const ElementType openvdb::OPENVDB_VERSION_NAME::tools::CheckRange< GridT, MinInclusive, MaxInclusive, TreeIterT >::minVal

Definition at line 327 of file Diagnostics.h.


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