MOAB: Mesh Oriented datABase  (version 5.4.1)
moab::TagOneTypeEqual< T > Class Template Reference

#include <TagCompare.hpp>

Public Member Functions

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

Private Attributes

T value
int size

Detailed Description

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

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

Definition at line 132 of file TagCompare.hpp.

Constructor & Destructor Documentation

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

Definition at line 139 of file TagCompare.hpp.

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

Member Function Documentation

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

Definition at line 141 of file TagCompare.hpp.

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

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

Member Data Documentation

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

Definition at line 136 of file TagCompare.hpp.

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

Definition at line 135 of file TagCompare.hpp.

Referenced by moab::TagOneTypeEqual< 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