ScummVM API documentation
Common::SpanInternal::SpanIterator< Span, IsConst > Class Template Reference

#include <span.h>

Inheritance diagram for Common::SpanInternal::SpanIterator< Span, IsConst >:
Dgds::SciSpanInternal::SciSpanIterator< Span, IsConst > Sci::SciSpanInternal::SciSpanIterator< Span, IsConst >

Public Types

typedef Span::difference_type difference_type
 
typedef RemoveConst< span_value_type >::type value_type
 
typedef Conditional< IsConst, const span_value_type, span_value_type >::type * pointer
 
typedef Conditional< IsConst, const span_value_type, span_value_type >::type & reference
 

Public Member Functions

 SpanIterator (span_type *const span, const difference_type index)
 
 SpanIterator (const SpanIterator &other)
 
SpanIteratoroperator= (const SpanIterator &other)
 
reference operator* () const
 
pointer operator-> () const
 
reference operator[] (const difference_type index) const
 
SpanIteratoroperator+= (const difference_type delta)
 
SpanIteratoroperator-= (const difference_type delta)
 
SpanIteratoroperator++ ()
 
SpanIterator operator++ (int)
 
SpanIteratoroperator-- ()
 
SpanIterator operator-- (int)
 
SpanIterator operator+ (const difference_type delta) const
 
SpanIterator operator- (const difference_type delta) const
 
difference_type operator- (const SpanIterator &other) const
 
bool operator== (const SpanIterator &other) const
 
bool operator!= (const SpanIterator &other) const
 
bool operator< (const SpanIterator &other) const
 
bool operator<= (const SpanIterator &other) const
 
bool operator> (const SpanIterator &other) const
 
bool operator>= (const SpanIterator &other) const
 
int8 getInt8 () const
 
uint8 getUint8 () const
 
int16 getInt16BE () const
 
int16 getInt16LE () const
 
uint16 getUint16BE () const
 
uint16 getUint16LE () const
 
uint32 getUint24LE () const
 
uint32 getUint32 () const
 
int32 getInt32BE () const
 
int32 getInt32LE () const
 
uint32 getUint32BE () const
 
uint32 getUint32LE () const
 

Protected Attributes

span_type_span
 
difference_type _index
 

Detailed Description

template<typename Span, bool IsConst>
class Common::SpanInternal::SpanIterator< Span, IsConst >

Bounds-checked iteration over a span of memory.


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