5 #include <libutl/BidIt.h> 31 virtual Object*
get()
const = 0;
38 virtual Object*
get(
size_t offset)
const = 0;
41 virtual size_t offset()
const = 0;
44 virtual void seek(
size_t offset) = 0;
46 virtual void set(
const Object* object) = 0;
56 virtual void set(
size_t offset,
const Object* object) = 0;
59 virtual size_t size()
const = 0;
71 return (offset() - it.
offset());
91 typedef std::random_access_iterator_tag iterator_category;
92 typedef std::ptrdiff_t difference_type;
101 #include <libutl/TRandIt.h> #define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
size_t operator-(const RandIt &it) const
Provides a user-friendly interface to subtract().
Random-access iterator abstraction.
#define UTL_CLASS_DECL_ABC(DC, BC)
Declaration of standard UTL++ functionality for an abstract base class (ABC).
virtual size_t subtract(const RandIt &it) const
Determine the distance between self and another random-access iterator for the same sequence...
Bi-directional iterator abstraction.
Object * operator[](size_t offset) const
Provides a user-friendly interface to get().
virtual size_t offset() const =0
Get the current offset.
Root of UTL++ class hierarchy.