ScummVM API documentation
Common::Span< ValueType > Class Template Reference
Inheritance diagram for Common::Span< ValueType >:
Common::SpanImpl< ValueType, Span > Common::SpanBase< ValueType, Span > Common::SafeBool< Span< ValueType > > Common::impl::no_base< Span< ValueType > >

Public Types

typedef super_type::value_type value_type
 
typedef super_type::difference_type difference_type
 
typedef super_type::index_type index_type
 
typedef super_type::size_type size_type
 
typedef super_type::const_iterator const_iterator
 
typedef super_type::iterator iterator
 
typedef super_type::pointer pointer
 
typedef super_type::const_pointer const_pointer
 
typedef super_type::reference reference
 
typedef super_type::const_reference const_reference
 
- Public Types inherited from Common::SpanImpl< ValueType, Span >
typedef super_type::value_type value_type
 
typedef super_type::difference_type difference_type
 
typedef super_type::index_type index_type
 
typedef super_type::size_type size_type
 
typedef super_type::const_iterator const_iterator
 
typedef super_type::iterator iterator
 
typedef super_type::pointer pointer
 
typedef super_type::const_pointer const_pointer
 
typedef super_type::reference reference
 
typedef super_type::const_reference const_reference
 
- Public Types inherited from Common::SpanBase< ValueType, Span >
typedef ValueType value_type
 
typedef int32 difference_type
 
typedef uint32 index_type
 
typedef uint32 size_type
 
typedef SpanInternal::SpanIterator< derived_type, true > const_iterator
 
typedef SpanInternal::SpanIterator< derived_type, false > iterator
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 

Public Member Functions

 Span (const pointer data_, const size_type size_)
 
template<typename Other >
 Span (const Other &other)
 
- Public Member Functions inherited from Common::SpanImpl< ValueType, Span >
 SpanImpl (const pointer data_, const size_type size_)
 
 SpanImpl (const Other &other)
 
void clear ()
 
size_type size () const
 
pointer data () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
const String name () const
 
String getValidationMessage (const index_type index, const difference_type deltaInBytes, const SpanValidationMode mode) const
 
const Span< NewValueType > subspan (const index_type index, size_type numEntries=kSpanMaxSize) const
 
Span< NewValueType > subspan (const index_type index, size_type numEntries=kSpanMaxSize)
 
const_derived_type subspan (const index_type index, const size_type numEntries=kSpanMaxSize) const
 
mutable_derived_type subspan (const index_type index, const size_type numEntries=kSpanMaxSize)
 
mutable_value_derived_typeallocate (const size_type numEntries)
 
mutable_value_derived_typeallocateFromSpan (const Other &other)
 
mutable_value_derived_typeallocateFromStream (SeekableReadStream &stream, size_type numEntries=kSpanMaxSize)
 
- Public Member Functions inherited from Common::SpanBase< ValueType, Span >
size_type byteSize () const
 
const_reference operator[] (const index_type index) const
 
reference operator[] (const index_type index)
 
int8 getInt8At (const index_type index) const
 
uint8 getUint8At (const index_type index) const
 
int16 getInt16BEAt (const index_type index) const
 
int16 getInt16LEAt (const index_type index) const
 
uint16 getUint16BEAt (const index_type index) const
 
uint16 getUint16LEAt (const index_type index) const
 
uint32 getUint24LEAt (const index_type index) const
 
uint32 getUint32At (const index_type index) const
 
int32 getInt32BEAt (const index_type index) const
 
int32 getInt32LEAt (const index_type index) const
 
uint32 getUint32BEAt (const index_type index) const
 
uint32 getUint32LEAt (const index_type index) const
 
String getStringAt (const index_type index, size_type numEntries=kSpanMaxSize) const
 
const_pointer getUnsafeDataAt (const index_type index, size_type numEntries=kSpanMaxSize) const
 
pointer getUnsafeDataAt (const index_type index, size_type numEntries=kSpanMaxSize)
 
MemoryReadStream toStream (const index_type index=0, size_type numEntries=kSpanMaxSize) const
 
bool operator== (const Other &other) const
 
bool operator!= (const Other &other) const
 
difference_type operator- (const Other &other) const
 
bool operator< (const Other &other) const
 
bool operator<= (const Other &other) const
 
bool operator> (const Other &other) const
 
bool operator>= (const Other &other) const
 
void unsafeCopyDataTo (void *target) const
 
void copyDataTo (Other &target) const
 
- Public Member Functions inherited from Common::SafeBool< Span< ValueType > >
 operator bool_type () const
 
 operator bool_type ()
 

Additional Inherited Members

- Public Attributes inherited from Common::SpanImpl< ValueType, Span >
value_type * _data
 
size_type _size
 
- Protected Member Functions inherited from Common::SpanImpl< ValueType, Span >
void populateSubspan (Span< NewValueType > &span, const index_type index, size_type numEntries) const
 
- Protected Member Functions inherited from Common::SpanBase< ValueType, Span >
 SpanBase (const SpanBase &)
 
SpanBaseoperator= (const SpanBase &)
 
const_derived_type & impl () const
 
mutable_derived_type & impl ()
 
void clear ()
 
size_type size () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
pointer data () const
 
bool operator_bool () const
 
bool checkInvalidBounds (const index_type index, const difference_type deltaInBytes) const
 
void validate (const index_type index, const difference_type deltaInBytes, const SpanValidationMode mode=kValidateRead) const
 

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