Cyclone ISO C++ API Reference Guide
dds::core::array< _Tp, _Nm > Struct Template Reference

A standard container for storing a fixed size sequence of elements. More...

#include "array.hpp"

Public Types

typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::ptrdiff_t difference_type
 
typedef value_typeiterator
 
typedef _Tp * pointer
 
typedef value_typereference
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::size_t size_type
 
typedef _Tp value_type
 

Public Member Functions

reference at (size_type __n)
 
const_reference at (size_type __n) const
 
reference back ()
 
const_reference back () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
_Tp * data ()
 
const _Tp * data () const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
void fill (const value_type &__u)
 
reference front ()
 
const_reference front () const
 
size_type max_size () const
 
reference operator[] (size_type __n)
 
const_reference operator[] (size_type __n) const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
void swap (array &__other)
 

Public Attributes

value_type _M_instance [_Nm ? _Nm :1]
 
const typedef value_typeconst_iterator
 
const typedef _Tp * const_pointer
 
const typedef value_typeconst_reference
 

Detailed Description

template<typename _Tp, std::size_t _Nm>
struct dds::core::array< _Tp, _Nm >

A standard container for storing a fixed size sequence of elements.

Meets the requirements of a container, a reversible container, and a sequence.

Sets support for random access iterators.

Template Parameters
_TpType of element. Required to be a complete type.
_NmNumber of elements.

Definition at line 70 of file array.hpp.

Member Typedef Documentation

◆ const_reverse_iterator

template<typename _Tp, std::size_t _Nm>
typedef std::reverse_iterator<const_iterator> dds::core::array< _Tp, _Nm >::const_reverse_iterator

Definition at line 82 of file array.hpp.

◆ difference_type

template<typename _Tp, std::size_t _Nm>
typedef std::ptrdiff_t dds::core::array< _Tp, _Nm >::difference_type

Definition at line 80 of file array.hpp.

◆ iterator

template<typename _Tp, std::size_t _Nm>
typedef value_type* dds::core::array< _Tp, _Nm >::iterator

Definition at line 77 of file array.hpp.

◆ pointer

template<typename _Tp, std::size_t _Nm>
typedef _Tp* dds::core::array< _Tp, _Nm >::pointer

Definition at line 73 of file array.hpp.

◆ reference

template<typename _Tp, std::size_t _Nm>
typedef value_type& dds::core::array< _Tp, _Nm >::reference

Definition at line 75 of file array.hpp.

◆ reverse_iterator

template<typename _Tp, std::size_t _Nm>
typedef std::reverse_iterator<iterator> dds::core::array< _Tp, _Nm >::reverse_iterator

Definition at line 81 of file array.hpp.

◆ size_type

template<typename _Tp, std::size_t _Nm>
typedef std::size_t dds::core::array< _Tp, _Nm >::size_type

Definition at line 79 of file array.hpp.

◆ value_type

template<typename _Tp, std::size_t _Nm>
typedef _Tp dds::core::array< _Tp, _Nm >::value_type

Definition at line 72 of file array.hpp.

Member Function Documentation

◆ at() [1/2]

template<typename _Tp, std::size_t _Nm>
reference dds::core::array< _Tp, _Nm >::at ( size_type  __n)
inline

Definition at line 208 of file array.hpp.

◆ at() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reference dds::core::array< _Tp, _Nm >::at ( size_type  __n) const
inline

Definition at line 218 of file array.hpp.

◆ back() [1/2]

template<typename _Tp, std::size_t _Nm>
reference dds::core::array< _Tp, _Nm >::back ( )
inline

Definition at line 240 of file array.hpp.

◆ back() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reference dds::core::array< _Tp, _Nm >::back ( ) const
inline

Definition at line 246 of file array.hpp.

◆ begin() [1/2]

template<typename _Tp, std::size_t _Nm>
iterator dds::core::array< _Tp, _Nm >::begin ( )
inline

Definition at line 104 of file array.hpp.

◆ begin() [2/2]

template<typename _Tp, std::size_t _Nm>
const_iterator dds::core::array< _Tp, _Nm >::begin ( ) const
inline

Definition at line 110 of file array.hpp.

◆ cbegin()

template<typename _Tp, std::size_t _Nm>
const_iterator dds::core::array< _Tp, _Nm >::cbegin ( ) const
inline

Definition at line 152 of file array.hpp.

◆ cend()

template<typename _Tp, std::size_t _Nm>
const_iterator dds::core::array< _Tp, _Nm >::cend ( ) const
inline

Definition at line 158 of file array.hpp.

◆ crbegin()

template<typename _Tp, std::size_t _Nm>
const_reverse_iterator dds::core::array< _Tp, _Nm >::crbegin ( ) const
inline

Definition at line 164 of file array.hpp.

◆ crend()

template<typename _Tp, std::size_t _Nm>
const_reverse_iterator dds::core::array< _Tp, _Nm >::crend ( ) const
inline

Definition at line 170 of file array.hpp.

◆ data() [1/2]

template<typename _Tp, std::size_t _Nm>
_Tp* dds::core::array< _Tp, _Nm >::data ( )
inline

Definition at line 252 of file array.hpp.

◆ data() [2/2]

template<typename _Tp, std::size_t _Nm>
const _Tp* dds::core::array< _Tp, _Nm >::data ( ) const
inline

Definition at line 258 of file array.hpp.

◆ empty()

template<typename _Tp, std::size_t _Nm>
bool dds::core::array< _Tp, _Nm >::empty ( ) const
inline

Definition at line 189 of file array.hpp.

◆ end() [1/2]

template<typename _Tp, std::size_t _Nm>
iterator dds::core::array< _Tp, _Nm >::end ( )
inline

Definition at line 116 of file array.hpp.

◆ end() [2/2]

template<typename _Tp, std::size_t _Nm>
const_iterator dds::core::array< _Tp, _Nm >::end ( ) const
inline

Definition at line 122 of file array.hpp.

◆ fill()

template<typename _Tp, std::size_t _Nm>
void dds::core::array< _Tp, _Nm >::fill ( const value_type __u)
inline

Definition at line 91 of file array.hpp.

◆ front() [1/2]

template<typename _Tp, std::size_t _Nm>
reference dds::core::array< _Tp, _Nm >::front ( )
inline

Definition at line 228 of file array.hpp.

◆ front() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reference dds::core::array< _Tp, _Nm >::front ( ) const
inline

Definition at line 234 of file array.hpp.

◆ max_size()

template<typename _Tp, std::size_t _Nm>
size_type dds::core::array< _Tp, _Nm >::max_size ( ) const
inline

Definition at line 183 of file array.hpp.

◆ operator[]() [1/2]

template<typename _Tp, std::size_t _Nm>
reference dds::core::array< _Tp, _Nm >::operator[] ( size_type  __n)
inline

Definition at line 196 of file array.hpp.

◆ operator[]() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reference dds::core::array< _Tp, _Nm >::operator[] ( size_type  __n) const
inline

Definition at line 202 of file array.hpp.

◆ rbegin() [1/2]

template<typename _Tp, std::size_t _Nm>
reverse_iterator dds::core::array< _Tp, _Nm >::rbegin ( )
inline

Definition at line 128 of file array.hpp.

◆ rbegin() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reverse_iterator dds::core::array< _Tp, _Nm >::rbegin ( ) const
inline

Definition at line 134 of file array.hpp.

◆ rend() [1/2]

template<typename _Tp, std::size_t _Nm>
reverse_iterator dds::core::array< _Tp, _Nm >::rend ( )
inline

Definition at line 140 of file array.hpp.

◆ rend() [2/2]

template<typename _Tp, std::size_t _Nm>
const_reverse_iterator dds::core::array< _Tp, _Nm >::rend ( ) const
inline

Definition at line 146 of file array.hpp.

◆ size()

template<typename _Tp, std::size_t _Nm>
size_type dds::core::array< _Tp, _Nm >::size ( ) const
inline

Definition at line 177 of file array.hpp.

◆ swap()

template<typename _Tp, std::size_t _Nm>
void dds::core::array< _Tp, _Nm >::swap ( array< _Tp, _Nm > &  __other)
inline

Definition at line 97 of file array.hpp.

Member Data Documentation

◆ _M_instance

template<typename _Tp, std::size_t _Nm>
value_type dds::core::array< _Tp, _Nm >::_M_instance[_Nm ? _Nm :1]

Definition at line 85 of file array.hpp.

◆ const_iterator

template<typename _Tp, std::size_t _Nm>
const typedef value_type* dds::core::array< _Tp, _Nm >::const_iterator

Definition at line 78 of file array.hpp.

◆ const_pointer

template<typename _Tp, std::size_t _Nm>
const typedef _Tp* dds::core::array< _Tp, _Nm >::const_pointer

Definition at line 74 of file array.hpp.

◆ const_reference

template<typename _Tp, std::size_t _Nm>
const typedef value_type& dds::core::array< _Tp, _Nm >::const_reference

Definition at line 76 of file array.hpp.


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