libfoedus-core
FOEDUS Core Library
|
Represents an offset range in an array storage. More...
Represents an offset range in an array storage.
Begin is inclusive, end is exclusive.
Definition at line 62 of file array_id.hpp.
#include <array_id.hpp>
Public Member Functions | |
ArrayRange () | |
ArrayRange (ArrayOffset begin, ArrayOffset end) | |
ArrayRange (ArrayOffset begin, ArrayOffset end, ArrayOffset array_size) | |
this one adjusts the case where end might be larger than the whole array size (right-most) More... | |
bool | overlaps (const ArrayRange &other) const |
Returns if there is any overlap with the other range. More... | |
bool | contains (ArrayOffset offset) const |
bool | operator== (const ArrayRange &other) const |
bool | operator!= (const ArrayRange &other) const |
Public Attributes | |
ArrayOffset | begin_ |
Inclusive beginning of the offset range. More... | |
ArrayOffset | end_ |
Exclusive end of the offset range. More... | |
|
inline |
Definition at line 63 of file array_id.hpp.
|
inline |
Definition at line 64 of file array_id.hpp.
|
inline |
this one adjusts the case where end might be larger than the whole array size (right-most)
Definition at line 66 of file array_id.hpp.
References end_.
|
inline |
Definition at line 79 of file array_id.hpp.
Referenced by foedus::storage::array::ArrayComposeContext::execute(), foedus::storage::array::ArrayStoragePimpl::locate_record_for_read(), foedus::storage::array::ArrayStoragePimpl::locate_record_for_write(), foedus::storage::array::ArrayStoragePimpl::lookup_for_read(), foedus::storage::array::ArrayStoragePimpl::lookup_for_write(), and overlaps().
|
inline |
Definition at line 83 of file array_id.hpp.
References operator==().
|
inline |
Definition at line 80 of file array_id.hpp.
Referenced by operator!=().
|
inline |
Returns if there is any overlap with the other range.
Definition at line 74 of file array_id.hpp.
References begin_, contains(), and end_.
Referenced by foedus::storage::array::ArrayStoragePimpl::prefetch_pages_recurse().
ArrayOffset foedus::storage::array::ArrayRange::begin_ |
Inclusive beginning of the offset range.
Definition at line 86 of file array_id.hpp.
Referenced by foedus::storage::array::array_volatile_page_init(), foedus::storage::array::LookupRoute::calculate_page_range(), contains(), foedus::storage::array::ArrayComposeContext::execute(), foedus::storage::array::ArrayStoragePimpl::lookup_for_read(), foedus::storage::array::ArrayStoragePimpl::lookup_for_write(), operator==(), overlaps(), and foedus::storage::array::ArrayStoragePimpl::prefetch_pages_recurse().
ArrayOffset foedus::storage::array::ArrayRange::end_ |
Exclusive end of the offset range.
Definition at line 88 of file array_id.hpp.
Referenced by foedus::storage::array::array_volatile_page_init(), ArrayRange(), foedus::storage::array::LookupRoute::calculate_page_range(), contains(), foedus::storage::array::ArrayComposeContext::execute(), operator==(), overlaps(), and foedus::storage::array::ArrayStoragePimpl::prefetch_pages_recurse().