Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::TagOneTypeLess< T > Class Template Reference

#include <TagCompare.hpp>

Public Member Functions

 TagOneTypeLess (const void *v)
bool operator() (const void *data) const

Private Attributes

int size

Detailed Description

template<typename T>
class moab::TagOneTypeLess< T >

Compare single-value tags containing a known data type Optimization of TagTypeLess for 1-value case.

Definition at line 152 of file TagCompare.hpp.

Constructor & Destructor Documentation

◆ TagOneTypeLess()

template<typename T >
moab::TagOneTypeLess< T >::TagOneTypeLess ( const void *  v)

Definition at line 159 of file TagCompare.hpp.

159 : value( *reinterpret_cast< const T* >( v ) ), size( 0 ) {}

Member Function Documentation

◆ operator()()

template<typename T >
bool moab::TagOneTypeLess< T >::operator() ( const void *  data) const

Definition at line 161 of file TagCompare.hpp.

162  {
163  const T* ddata = reinterpret_cast< const T* >( data );
164  return *ddata < value;
165  }

References moab::TagOneTypeLess< T >::value.

Member Data Documentation

◆ size

template<typename T >
int moab::TagOneTypeLess< T >::size

Definition at line 156 of file TagCompare.hpp.

◆ value

template<typename T >
T moab::TagOneTypeLess< T >::value

Definition at line 155 of file TagCompare.hpp.

Referenced by moab::TagOneTypeLess< T >::operator()().

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