Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::TagOneTypeLess< T > Class Template Reference

#include <TagCompare.hpp>

+ Collaboration diagram for moab::TagOneTypeLess< T >:

Public Member Functions

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

Private Attributes

T value
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

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

Definition at line 159 of file TagCompare.hpp.

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

Member Function Documentation

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

Definition at line 161 of file TagCompare.hpp.

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

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

Member Data Documentation

template<typename T >
int moab::TagOneTypeLess< T >::size [private]

Definition at line 156 of file TagCompare.hpp.

template<typename T >
T moab::TagOneTypeLess< T >::value [private]

Definition at line 155 of file TagCompare.hpp.

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

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines