#include <TagCompare.hpp>
Public Types | |
typedef std::pair< EntityHandle, const char * > | data_type |
Public Member Functions | |
ByteArrayIterator (EntityHandle start_handle, const void *data_array, size_t tag_size) | |
ByteArrayIterator (EntityHandle start_handle, const void *data_array, const TagInfo &tag_info) | |
bool | operator== (const ByteArrayIterator &other) const |
bool | operator!= (const ByteArrayIterator &other) const |
ByteArrayIterator & | operator++ () |
ByteArrayIterator | operator++ (int) |
ByteArrayIterator & | operator-- () |
ByteArrayIterator | operator-- (int) |
ByteArrayIterator & | operator+= (size_t amt) |
ByteArrayIterator & | operator-= (size_t amt) |
EntityHandle | operator- (const ByteArrayIterator &other) const |
const data_type & | operator* () const |
const data_type * | operator-> () const |
Private Attributes | |
size_t | step |
data_type | data |
Iterator to use in find_tag_values_equal for arrays of data
Definition at line 446 of file TagCompare.hpp.
typedef std::pair< EntityHandle, const char* > moab::ByteArrayIterator::data_type |
Definition at line 449 of file TagCompare.hpp.
|
inline |
Definition at line 456 of file TagCompare.hpp.
457 : step( tag_size ), data( start_handle, reinterpret_cast< const char* >( data_array ) )
458
459 {
460 }
|
inline |
Definition at line 461 of file TagCompare.hpp.
462 : step( tag_info.get_size() == MB_VARIABLE_LENGTH ? sizeof( VarLenTag ) : tag_info.get_size() ),
463 data( start_handle, reinterpret_cast< const char* >( data_array ) )
464 {
465 }
|
inline |
Definition at line 470 of file TagCompare.hpp.
471 {
472 return data.first != other.data.first;
473 }
References data.
|
inline |
|
inline |
Definition at line 474 of file TagCompare.hpp.
475 {
476 ++data.first;
477 data.second += step;
478 return *this;
479 }
Referenced by operator++().
|
inline |
Definition at line 480 of file TagCompare.hpp.
481 {
482 ByteArrayIterator result( *this );
483 operator++();
484 return result;
485 }
References operator++().
|
inline |
Definition at line 498 of file TagCompare.hpp.
499 {
500 data.first += amt;
501 data.second += amt * step;
502 return *this;
503 }
|
inline |
Definition at line 510 of file TagCompare.hpp.
511 {
512 return data.first - other.data.first;
513 }
References data.
|
inline |
Definition at line 486 of file TagCompare.hpp.
487 {
488 --data.first;
489 data.second -= step;
490 return *this;
491 }
Referenced by operator--().
|
inline |
Definition at line 492 of file TagCompare.hpp.
493 {
494 ByteArrayIterator result( *this );
495 operator--();
496 return result;
497 }
References operator--().
|
inline |
Definition at line 504 of file TagCompare.hpp.
505 {
506 data.first -= amt;
507 data.second -= amt * step;
508 return *this;
509 }
|
inline |
|
inline |
Definition at line 466 of file TagCompare.hpp.
467 {
468 return data.first == other.data.first;
469 }
References data.
|
private |
Definition at line 453 of file TagCompare.hpp.
Referenced by moab::VarLenDenseTag::find_entities_with_value(), moab::DenseTag::find_entities_with_value(), operator!=(), operator*(), operator++(), operator+=(), operator-(), operator--(), operator-=(), operator->(), and operator==().
|
private |
Definition at line 452 of file TagCompare.hpp.
Referenced by operator++(), operator+=(), operator--(), and operator-=().