My Project
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
osl::CArray< T, Capacity > Class Template Reference

#include <container.h>

Inheritance diagram for osl::CArray< T, Capacity >:
osl::FixedCapacityVector< T, Capacity >::Array osl::eval::ml::PiecePair::IndexTable

Public Types

typedef std::remove_cv< T >::type T_simple
 
typedef T value_type
 
typedef std::array< T, Capacity >::iterator iterator
 
typedef std::array< T, Capacity >::const_iterator const_iterator
 

Public Member Functions

T & operator[] (size_t i)
 
T const & operator[] (size_t i) const
 
T & operator[] (Player p)
 
const T & operator[] (Player p) const
 
T & operator[] (PtypeO ptypeo)
 
const T & operator[] (PtypeO ptypeo) const
 
iterator begin ()
 
iterator end ()
 
void fill (const T_simple &value=T_simple())
 
template<class T2 , class = typename std::enable_if<!std::is_convertible<T2,T_simple>::value>::type>
void fill (const T2 &value=T2())
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool operator== (const CArray &other) const
 
T & front ()
 
T & back ()
 
const T & front () const
 
const T & back () const
 

Static Public Member Functions

static size_t size ()
 

Public Attributes

std::array< T, Capacity > array
 

Detailed Description

template<typename T, size_t Capacity>
class osl::CArray< T, Capacity >

Definition at line 19 of file container.h.

Member Typedef Documentation

◆ const_iterator

template<typename T , size_t Capacity>
typedef std::array<T,Capacity>::const_iterator osl::CArray< T, Capacity >::const_iterator

Definition at line 77 of file container.h.

◆ iterator

template<typename T , size_t Capacity>
typedef std::array<T,Capacity>::iterator osl::CArray< T, Capacity >::iterator

Definition at line 63 of file container.h.

◆ T_simple

template<typename T , size_t Capacity>
typedef std::remove_cv<T>::type osl::CArray< T, Capacity >::T_simple

Definition at line 23 of file container.h.

◆ value_type

template<typename T , size_t Capacity>
typedef T osl::CArray< T, Capacity >::value_type

Definition at line 62 of file container.h.

Member Function Documentation

◆ back() [1/2]

template<typename T , size_t Capacity>
T & osl::CArray< T, Capacity >::back ( )
inline

Definition at line 88 of file container.h.

References osl::CArray< T, Capacity >::array.

Referenced by osl::RepetitionCounter::checkCount().

◆ back() [2/2]

template<typename T , size_t Capacity>
const T & osl::CArray< T, Capacity >::back ( ) const
inline

Definition at line 90 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ begin() [1/2]

template<typename T , size_t Capacity>
iterator osl::CArray< T, Capacity >::begin ( )
inline

◆ begin() [2/2]

template<typename T , size_t Capacity>
const_iterator osl::CArray< T, Capacity >::begin ( ) const
inline

Definition at line 78 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ cbegin()

template<typename T , size_t Capacity>
const_iterator osl::CArray< T, Capacity >::cbegin ( ) const
inline

Definition at line 80 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ cend()

template<typename T , size_t Capacity>
const_iterator osl::CArray< T, Capacity >::cend ( ) const
inline

Definition at line 81 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ end() [1/2]

template<typename T , size_t Capacity>
iterator osl::CArray< T, Capacity >::end ( )
inline

◆ end() [2/2]

template<typename T , size_t Capacity>
const_iterator osl::CArray< T, Capacity >::end ( ) const
inline

Definition at line 79 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ fill() [1/2]

template<typename T , size_t Capacity>
template<class T2 , class = typename std::enable_if<!std::is_convertible<T2,T_simple>::value>::type>
void osl::CArray< T, Capacity >::fill ( const T2 &  value = T2())
inline

Definition at line 72 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ fill() [2/2]

template<typename T , size_t Capacity>
void osl::CArray< T, Capacity >::fill ( const T_simple value = T_simple())
inline

◆ front() [1/2]

template<typename T , size_t Capacity>
T & osl::CArray< T, Capacity >::front ( )
inline

Definition at line 87 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ front() [2/2]

template<typename T , size_t Capacity>
const T & osl::CArray< T, Capacity >::front ( ) const
inline

Definition at line 89 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ operator==()

template<typename T , size_t Capacity>
bool osl::CArray< T, Capacity >::operator== ( const CArray< T, Capacity > &  other) const
inline

Definition at line 83 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ operator[]() [1/6]

template<typename T , size_t Capacity>
T & osl::CArray< T, Capacity >::operator[] ( Player  p)
inline

Definition at line 34 of file container.h.

References osl::CArray< T, Capacity >::operator[](), and osl::playerToIndex().

◆ operator[]() [2/6]

template<typename T , size_t Capacity>
const T & osl::CArray< T, Capacity >::operator[] ( Player  p) const
inline

Definition at line 44 of file container.h.

References osl::CArray< T, Capacity >::operator[](), and osl::playerToIndex().

◆ operator[]() [3/6]

template<typename T , size_t Capacity>
T & osl::CArray< T, Capacity >::operator[] ( PtypeO  ptypeo)
inline

◆ operator[]() [4/6]

template<typename T , size_t Capacity>
const T & osl::CArray< T, Capacity >::operator[] ( PtypeO  ptypeo) const
inline

◆ operator[]() [5/6]

template<typename T , size_t Capacity>
T & osl::CArray< T, Capacity >::operator[] ( size_t  i)
inline

◆ operator[]() [6/6]

template<typename T , size_t Capacity>
T const & osl::CArray< T, Capacity >::operator[] ( size_t  i) const
inline

Definition at line 29 of file container.h.

References osl::CArray< T, Capacity >::array.

◆ size()

template<typename T , size_t Capacity>
static size_t osl::CArray< T, Capacity >::size ( )
inlinestatic

Member Data Documentation

◆ array

template<typename T , size_t Capacity>
std::array<T,Capacity> osl::CArray< T, Capacity >::array

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