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

#include <TagCompare.hpp>

Public Member Functions

 TagTypeLess (const void *v, int s)
 
bool operator() (const void *data) const
 

Private Attributes

const Tvalue
 
int size
 

Detailed Description

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

Compare fixed-length tags containing a known data type

Definition at line 110 of file TagCompare.hpp.

Constructor & Destructor Documentation

◆ TagTypeLess()

template<typename T >
moab::TagTypeLess< T >::TagTypeLess ( const void *  v,
int  s 
)
inline

Definition at line 117 of file TagCompare.hpp.

117 : value( reinterpret_cast< const T* >( v ) ), size( s / sizeof( T ) ) {}

Member Function Documentation

◆ operator()()

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

Definition at line 119 of file TagCompare.hpp.

120  {
121  const T* ddata = reinterpret_cast< const T* >( data );
122  for( int i = 0; i < size; ++i )
123  if( value[i] <= ddata[i] ) return false;
124  return true;
125  }

References moab::TagTypeLess< T >::size, T, and moab::TagTypeLess< T >::value.

Member Data Documentation

◆ size

template<typename T >
int moab::TagTypeLess< T >::size
private

Definition at line 114 of file TagCompare.hpp.

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

◆ value

template<typename T >
const T* moab::TagTypeLess< T >::value
private

Definition at line 113 of file TagCompare.hpp.

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


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