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

Checks for infinite values, e.g. 1/0 or -1/0. 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

 CheckInf ()
 Default constructor. More...
 
bool operator() (const ElementType &v) const
 Return true if the value is infinite. 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 infinite. More...
 
bool operator() (const TreeIterT &iter) const
 Return true if the tile at the iterator location is infinite. More...
 
bool operator() (const VoxelIterT &iter) const
 Return true if the tile at the iterator location is infinite. More...
 
std::string str () const
 Return a string describing a failed check. More...
 

Detailed Description

template<typename GridT, typename TreeIterT = typename GridT::ValueOnCIter>
struct openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >

Checks for infinite values, e.g. 1/0 or -1/0.

Definition at line 174 of file Diagnostics.h.

Member Typedef Documentation

template<typename GridT , typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >::ElementType = typename VecTraits<typename GridT::ValueType>::ElementType

Definition at line 176 of file Diagnostics.h.

template<typename GridT , typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >::TileIterT = TreeIterT

Definition at line 177 of file Diagnostics.h.

template<typename GridT , typename TreeIterT = typename GridT::ValueOnCIter>
using openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >::VoxelIterT = typename tree::IterTraits<typename TreeIterT::NodeT, typename TreeIterT::ValueIterT> ::template NodeConverter< typename GridT::TreeType::LeafNodeType>::Type

Definition at line 180 of file Diagnostics.h.

Constructor & Destructor Documentation

template<typename GridT , typename TreeIterT = typename GridT::ValueOnCIter>
openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >::CheckInf ( )
inline

Default constructor.

Definition at line 183 of file Diagnostics.h.

Member Function Documentation

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

Return true if the value is infinite.

Definition at line 186 of file Diagnostics.h.

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

Return true if any of the vector components are infinite.

Definition at line 191 of file Diagnostics.h.

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

Return true if the tile at the iterator location is infinite.

Definition at line 198 of file Diagnostics.h.

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

Return true if the tile at the iterator location is infinite.

Definition at line 201 of file Diagnostics.h.

template<typename GridT , typename TreeIterT = typename GridT::ValueOnCIter>
std::string openvdb::OPENVDB_VERSION_NAME::tools::CheckInf< GridT, TreeIterT >::str ( ) const
inline

Return a string describing a failed check.

Definition at line 204 of file Diagnostics.h.


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