Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::TagBytesLess Class Reference

#include <TagCompare.hpp>

Public Member Functions

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

Private Attributes

const void * value
 
int size
 

Detailed Description

Test if fixed-length opaque tag values are less than a value

Definition at line 28 of file TagCompare.hpp.

Constructor & Destructor Documentation

◆ TagBytesLess()

moab::TagBytesLess::TagBytesLess ( const void *  v,
int  s 
)
inline

Definition at line 35 of file TagCompare.hpp.

35 : value( v ), size( s ) {}

Member Function Documentation

◆ operator()()

bool moab::TagBytesLess::operator() ( const void *  data) const
inline

Definition at line 36 of file TagCompare.hpp.

37  {
38  return 0 < memcmp( value, data, size );
39  }

References size, and value.

Member Data Documentation

◆ size

int moab::TagBytesLess::size
private

Definition at line 32 of file TagCompare.hpp.

Referenced by operator()().

◆ value

const void* moab::TagBytesLess::value
private

Definition at line 31 of file TagCompare.hpp.

Referenced by operator()().


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