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

#include <dynarray.hh>

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

Classes

struct  construct_from_range_tag
 

Public Member Functions

 dynarray ()=default
 
 dynarray (const dynarray &)=delete
 
dynarrayoperator= (const dynarray &)=delete
 
 ~dynarray ()=default
 
 dynarray (size_t n)
 
 dynarray (size_t n, const T &value)
 
template<typename SizedRange >
 dynarray (construct_from_range_tag, SizedRange &&range)
 
 dynarray (dynarray &&other) noexcept
 
dynarrayoperator= (dynarray &&other) noexcept
 
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/6]

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

◆ dynarray() [2/6]

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

◆ ~dynarray()

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

◆ dynarray() [3/6]

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

Definition at line 49 of file dynarray.hh.

◆ dynarray() [4/6]

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

Definition at line 52 of file dynarray.hh.

◆ dynarray() [5/6]

template<typename T >
template<typename SizedRange >
dynarray< T >::dynarray ( construct_from_range_tag  ,
SizedRange &&  range 
)
inline

Definition at line 57 of file dynarray.hh.

◆ dynarray() [6/6]

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

Definition at line 66 of file dynarray.hh.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 97 of file dynarray.hh.

References dynarray< T >::empty().

◆ back() [2/2]

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

Definition at line 101 of file dynarray.hh.

References dynarray< T >::empty().

◆ begin() [1/2]

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

Definition at line 109 of file dynarray.hh.

◆ begin() [2/2]

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

Definition at line 110 of file dynarray.hh.

◆ data() [1/2]

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

Definition at line 106 of file dynarray.hh.

◆ data() [2/2]

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

Definition at line 107 of file dynarray.hh.

◆ empty()

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

◆ end() [1/2]

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

Definition at line 111 of file dynarray.hh.

◆ end() [2/2]

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

Definition at line 112 of file dynarray.hh.

◆ front() [1/2]

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

Definition at line 89 of file dynarray.hh.

References dynarray< T >::empty().

◆ front() [2/2]

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

Definition at line 93 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)
inlinenoexcept

Definition at line 72 of file dynarray.hh.

◆ operator[]() [1/2]

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

Definition at line 80 of file dynarray.hh.

◆ operator[]() [2/2]

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

Definition at line 84 of file dynarray.hh.

◆ size()

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

Definition at line 115 of file dynarray.hh.


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