ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

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

Bounds-checked iteration over a span of memory. More...

#include <span.h>

Collaboration diagram for Common::SpanInternal::SpanIterator< Span, IsConst >:

List of all members.

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 ()
 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

Private Types

typedef Span::value_type span_value_type
typedef Conditional< IsConst,
const Span, Span >::type 
span_type

Detailed Description

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

Bounds-checked iteration over a span of memory.

Definition at line 67 of file span.h.


Member Typedef Documentation

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

Definition at line 72 of file span.h.

template<typename Span , bool IsConst>
typedef Conditional<IsConst, const span_value_type, span_value_type>::type* Common::SpanInternal::SpanIterator< Span, IsConst >::pointer

Definition at line 74 of file span.h.

template<typename Span , bool IsConst>
typedef Conditional<IsConst, const span_value_type, span_value_type>::type& Common::SpanInternal::SpanIterator< Span, IsConst >::reference

Definition at line 75 of file span.h.

template<typename Span , bool IsConst>
typedef Conditional<IsConst, const Span, Span>::type Common::SpanInternal::SpanIterator< Span, IsConst >::span_type [private]

Definition at line 69 of file span.h.

template<typename Span , bool IsConst>
typedef Span::value_type Common::SpanInternal::SpanIterator< Span, IsConst >::span_value_type [private]

Definition at line 68 of file span.h.

template<typename Span , bool IsConst>
typedef RemoveConst<span_value_type>::type Common::SpanInternal::SpanIterator< Span, IsConst >::value_type

Definition at line 73 of file span.h.


Constructor & Destructor Documentation

template<typename Span , bool IsConst>
Common::SpanInternal::SpanIterator< Span, IsConst >::SpanIterator (  )  [inline]

Definition at line 77 of file span.h.

template<typename Span , bool IsConst>
Common::SpanInternal::SpanIterator< Span, IsConst >::SpanIterator ( span_type *const   span,
const difference_type  index 
) [inline]

Definition at line 79 of file span.h.

template<typename Span , bool IsConst>
Common::SpanInternal::SpanIterator< Span, IsConst >::SpanIterator ( const SpanIterator< Span, IsConst > &  other  )  [inline]

Definition at line 87 of file span.h.


Member Function Documentation

template<typename Span , bool IsConst>
int16 Common::SpanInternal::SpanIterator< Span, IsConst >::getInt16BE (  )  const [inline]

Definition at line 205 of file span.h.

template<typename Span , bool IsConst>
int16 Common::SpanInternal::SpanIterator< Span, IsConst >::getInt16LE (  )  const [inline]

Definition at line 209 of file span.h.

template<typename Span , bool IsConst>
int32 Common::SpanInternal::SpanIterator< Span, IsConst >::getInt32BE (  )  const [inline]

Definition at line 229 of file span.h.

template<typename Span , bool IsConst>
int32 Common::SpanInternal::SpanIterator< Span, IsConst >::getInt32LE (  )  const [inline]

Definition at line 233 of file span.h.

template<typename Span , bool IsConst>
int8 Common::SpanInternal::SpanIterator< Span, IsConst >::getInt8 (  )  const [inline]

Definition at line 197 of file span.h.

template<typename Span , bool IsConst>
uint16 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint16BE (  )  const [inline]

Definition at line 213 of file span.h.

template<typename Span , bool IsConst>
uint16 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint16LE (  )  const [inline]

Definition at line 217 of file span.h.

template<typename Span , bool IsConst>
uint32 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint24LE (  )  const [inline]

Definition at line 221 of file span.h.

template<typename Span , bool IsConst>
uint32 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint32 (  )  const [inline]

Definition at line 225 of file span.h.

template<typename Span , bool IsConst>
uint32 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint32BE (  )  const [inline]

Definition at line 237 of file span.h.

template<typename Span , bool IsConst>
uint32 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint32LE (  )  const [inline]

Definition at line 241 of file span.h.

template<typename Span , bool IsConst>
uint8 Common::SpanInternal::SpanIterator< Span, IsConst >::getUint8 (  )  const [inline]

Definition at line 201 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator!= ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 172 of file span.h.

template<typename Span , bool IsConst>
reference Common::SpanInternal::SpanIterator< Span, IsConst >::operator* (  )  const [inline]

Definition at line 101 of file span.h.

template<typename Span , bool IsConst>
SpanIterator Common::SpanInternal::SpanIterator< Span, IsConst >::operator+ ( const difference_type  delta  )  const [inline]

Definition at line 150 of file span.h.

template<typename Span , bool IsConst>
SpanIterator Common::SpanInternal::SpanIterator< Span, IsConst >::operator++ ( int   )  [inline]

Definition at line 134 of file span.h.

template<typename Span , bool IsConst>
SpanIterator& Common::SpanInternal::SpanIterator< Span, IsConst >::operator++ (  )  [inline]

Definition at line 130 of file span.h.

template<typename Span , bool IsConst>
SpanIterator& Common::SpanInternal::SpanIterator< Span, IsConst >::operator+= ( const difference_type  delta  )  [inline]

Definition at line 119 of file span.h.

template<typename Span , bool IsConst>
SpanIterator Common::SpanInternal::SpanIterator< Span, IsConst >::operator- ( const difference_type  delta  )  const [inline]

Definition at line 155 of file span.h.

template<typename Span , bool IsConst>
difference_type Common::SpanInternal::SpanIterator< Span, IsConst >::operator- ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 159 of file span.h.

template<typename Span , bool IsConst>
SpanIterator& Common::SpanInternal::SpanIterator< Span, IsConst >::operator-- (  )  [inline]

Definition at line 140 of file span.h.

template<typename Span , bool IsConst>
SpanIterator Common::SpanInternal::SpanIterator< Span, IsConst >::operator-- ( int   )  [inline]

Definition at line 144 of file span.h.

template<typename Span , bool IsConst>
SpanIterator& Common::SpanInternal::SpanIterator< Span, IsConst >::operator-= ( const difference_type  delta  )  [inline]

Definition at line 126 of file span.h.

template<typename Span , bool IsConst>
pointer Common::SpanInternal::SpanIterator< Span, IsConst >::operator-> (  )  const [inline]

Definition at line 106 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator< ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 176 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator<= ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 181 of file span.h.

template<typename Span , bool IsConst>
SpanIterator& Common::SpanInternal::SpanIterator< Span, IsConst >::operator= ( const SpanIterator< Span, IsConst > &  other  )  [inline]

Definition at line 91 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator== ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 168 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator> ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 185 of file span.h.

template<typename Span , bool IsConst>
bool Common::SpanInternal::SpanIterator< Span, IsConst >::operator>= ( const SpanIterator< Span, IsConst > &  other  )  const [inline]

Definition at line 189 of file span.h.

template<typename Span , bool IsConst>
reference Common::SpanInternal::SpanIterator< Span, IsConst >::operator[] ( const difference_type  index  )  const [inline]

Definition at line 110 of file span.h.


Member Data Documentation

template<typename Span , bool IsConst>
difference_type Common::SpanInternal::SpanIterator< Span, IsConst >::_index [protected]

Definition at line 247 of file span.h.

template<typename Span , bool IsConst>
span_type* Common::SpanInternal::SpanIterator< Span, IsConst >::_span [protected]

Definition at line 246 of file span.h.


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


Generated on Sat Sep 26 2020 05:03:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge