OpenMW
Public Member Functions | Public Attributes
Misc::SliceArray< T > Struct Template Reference

#include <slice_array.hpp>

List of all members.

Public Member Functions

 SliceArray ()
 Initialize to zero length.
 SliceArray (const T *_ptr, size_t _length)
 Initialize from pointer + length.
 SliceArray (const char *str)
 Initialize from null-terminated string.
bool operator== (SliceArray &t)
bool operator== (const char *str)
 Only use this for stings.
std::string toString ()

Public Attributes

const T * ptr
size_t length

template<class T>
struct Misc::SliceArray< T >


Constructor & Destructor Documentation

template<class T >
Misc::SliceArray< T >::SliceArray ( ) [inline]

Initialize to zero length.

template<class T >
Misc::SliceArray< T >::SliceArray ( const T *  _ptr,
size_t  _length 
) [inline]

Initialize from pointer + length.

template<class T >
Misc::SliceArray< T >::SliceArray ( const char *  str) [inline]

Initialize from null-terminated string.


Member Function Documentation

template<class T >
bool Misc::SliceArray< T >::operator== ( SliceArray< T > &  t) [inline]
template<class T >
bool Misc::SliceArray< T >::operator== ( const char *  str) [inline]

Only use this for stings.

template<class T >
std::string Misc::SliceArray< T >::toString ( ) [inline]

This allocates a copy of the data. Only use this for debugging and error messages.


Member Data Documentation

template<class T >
size_t Misc::SliceArray< T >::length
template<class T >
const T* Misc::SliceArray< T >::ptr

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