openMSX
Public Member Functions | List of all members
dynarray< T > Class Template Reference

#include <dynarray.hh>

Inheritance diagram for dynarray< T >:
Inheritance graph
[legend]

Public Member Functions

 dynarray ()=default
 
 dynarray (size_t n)
 
 dynarray (size_t n, const T &value)
 
 dynarray (dynarray &&other)
 
dynarrayoperator= (dynarray &&other)
 
 dynarray (const dynarray &)=delete
 
dynarrayoperator= (const dynarray &)=delete
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
T * data ()
 
const T * data () const
 
T * begin ()
 
const T * begin () const
 
T * end ()
 
const T * end () const
 
bool empty () const
 
size_t size () const
 

Detailed Description

template<typename T>
class dynarray< T >

Definition at line 41 of file dynarray.hh.

Constructor & Destructor Documentation

◆ dynarray() [1/5]

template<typename T >
dynarray< T >::dynarray ( )
default

◆ dynarray() [2/5]

template<typename T >
dynarray< T >::dynarray ( size_t  n)
inlineexplicit

Definition at line 46 of file dynarray.hh.

◆ dynarray() [3/5]

template<typename T >
dynarray< T >::dynarray ( size_t  n,
const T &  value 
)
inline

Definition at line 49 of file dynarray.hh.

◆ dynarray() [4/5]

template<typename T >
dynarray< T >::dynarray ( dynarray< T > &&  other)
inline

Definition at line 52 of file dynarray.hh.

◆ dynarray() [5/5]

template<typename T >
dynarray< T >::dynarray ( const dynarray< T > &  )
delete

Member Function Documentation

◆ back() [1/2]

template<typename T >
T& dynarray< T >::back ( )
inline

Definition at line 86 of file dynarray.hh.

References dynarray< T >::empty().

◆ back() [2/2]

template<typename T >
const T& dynarray< T >::back ( ) const
inline

Definition at line 90 of file dynarray.hh.

References dynarray< T >::empty().

◆ begin() [1/2]

template<typename T >
T* dynarray< T >::begin ( )
inline

Definition at line 98 of file dynarray.hh.

◆ begin() [2/2]

template<typename T >
const T* dynarray< T >::begin ( ) const
inline

Definition at line 99 of file dynarray.hh.

◆ data() [1/2]

template<typename T >
T* dynarray< T >::data ( )
inline

Definition at line 95 of file dynarray.hh.

◆ data() [2/2]

template<typename T >
const T* dynarray< T >::data ( ) const
inline

Definition at line 96 of file dynarray.hh.

◆ empty()

template<typename T >
bool dynarray< T >::empty ( ) const
inline

Definition at line 103 of file dynarray.hh.

Referenced by dynarray< T >::back(), and dynarray< T >::front().

◆ end() [1/2]

template<typename T >
T* dynarray< T >::end ( )
inline

Definition at line 100 of file dynarray.hh.

◆ end() [2/2]

template<typename T >
const T* dynarray< T >::end ( ) const
inline

Definition at line 101 of file dynarray.hh.

◆ front() [1/2]

template<typename T >
T& dynarray< T >::front ( )
inline

Definition at line 78 of file dynarray.hh.

References dynarray< T >::empty().

◆ front() [2/2]

template<typename T >
const T& dynarray< T >::front ( ) const
inline

Definition at line 82 of file dynarray.hh.

References dynarray< T >::empty().

◆ operator=() [1/2]

template<typename T >
dynarray& dynarray< T >::operator= ( const dynarray< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
dynarray& dynarray< T >::operator= ( dynarray< T > &&  other)
inline

Definition at line 58 of file dynarray.hh.

◆ operator[]() [1/2]

template<typename T >
T& dynarray< T >::operator[] ( size_t  i)
inline

Definition at line 69 of file dynarray.hh.

◆ operator[]() [2/2]

template<typename T >
const T& dynarray< T >::operator[] ( size_t  i) const
inline

Definition at line 73 of file dynarray.hh.

◆ size()

template<typename T >
size_t dynarray< T >::size ( ) const
inline

Definition at line 104 of file dynarray.hh.


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