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

#include <TagCompare.hpp>

Public Member Functions

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

Private Attributes

const void * value
 
int size
 

Detailed Description

Test fixed-length opaque tags for equality

Definition at line 14 of file TagCompare.hpp.

Constructor & Destructor Documentation

◆ TagBytesEqual()

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

Definition at line 21 of file TagCompare.hpp.

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

Member Function Documentation

◆ operator()()

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

Definition at line 22 of file TagCompare.hpp.

23  {
24  return !memcmp( value, data, size );
25  }

References size, and value.

Member Data Documentation

◆ size

int moab::TagBytesEqual::size
private

Definition at line 18 of file TagCompare.hpp.

Referenced by operator()().

◆ value

const void* moab::TagBytesEqual::value
private

Definition at line 17 of file TagCompare.hpp.

Referenced by operator()().


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