C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::matrix::dynamic_array< ElementType > Class Template Reference

#include <tpf_matrix.hpp>

Public Types

using iterator = ElementType *
 
using const_iterator = const ElementType *
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator cbegin ()
 
const_iterator cend ()
 
auto rbegin ()
 
auto rend ()
 
auto crbegin ()
 
auto crend ()
 
size_t size () const
 
void resize (size_t count)
 
 dynamic_array (size_t size=1)
 
 dynamic_array (const dynamic_array &right_hand_side)
 
ElementType * operator& ()
 
ElementType & operator[] (size_t index)
 
const ElementType & operator[] (size_t index) const
 
ElementType & at (size_t index)
 
const ElementType & at (size_t index) const
 
dynamic_arrayoperator= (const dynamic_array &right_hand_side)
 
 dynamic_array (dynamic_array &&right_hand_side) noexcept
 
dynamic_arrayoperator= (dynamic_array &&right_hand_side) noexcept
 
virtual ~dynamic_array ()
 

Friends

std::ostream & operator<< (std::ostream &os, const dynamic_array &da)
 

Detailed Description

template<typename ElementType>
class tpf::matrix::dynamic_array< ElementType >

Definition at line 49 of file tpf_matrix.hpp.

Member Typedef Documentation

◆ const_iterator

template<typename ElementType >
using tpf::matrix::dynamic_array< ElementType >::const_iterator = const ElementType*

Definition at line 58 of file tpf_matrix.hpp.

◆ iterator

template<typename ElementType >
using tpf::matrix::dynamic_array< ElementType >::iterator = ElementType*

Definition at line 52 of file tpf_matrix.hpp.

Constructor & Destructor Documentation

◆ dynamic_array() [1/3]

template<typename ElementType >
tpf::matrix::dynamic_array< ElementType >::dynamic_array ( size_t  size = 1)
inlineexplicit

Definition at line 176 of file tpf_matrix.hpp.

◆ dynamic_array() [2/3]

template<typename ElementType >
tpf::matrix::dynamic_array< ElementType >::dynamic_array ( const dynamic_array< ElementType > &  right_hand_side)
inline

Definition at line 187 of file tpf_matrix.hpp.

◆ dynamic_array() [3/3]

template<typename ElementType >
tpf::matrix::dynamic_array< ElementType >::dynamic_array ( dynamic_array< ElementType > &&  right_hand_side)
inlinenoexcept

Definition at line 275 of file tpf_matrix.hpp.

◆ ~dynamic_array()

template<typename ElementType >
virtual tpf::matrix::dynamic_array< ElementType >::~dynamic_array ( )
inlinevirtual

Definition at line 303 of file tpf_matrix.hpp.

Member Function Documentation

◆ at() [1/2]

template<typename ElementType >
ElementType & tpf::matrix::dynamic_array< ElementType >::at ( size_t  index)
inline

Definition at line 210 of file tpf_matrix.hpp.

◆ at() [2/2]

template<typename ElementType >
const ElementType & tpf::matrix::dynamic_array< ElementType >::at ( size_t  index) const
inline

Definition at line 218 of file tpf_matrix.hpp.

◆ begin()

template<typename ElementType >
iterator tpf::matrix::dynamic_array< ElementType >::begin ( )
inline

Definition at line 108 of file tpf_matrix.hpp.

Here is the caller graph for this function:

◆ cbegin()

template<typename ElementType >
const_iterator tpf::matrix::dynamic_array< ElementType >::cbegin ( )
inline

Definition at line 120 of file tpf_matrix.hpp.

Here is the caller graph for this function:

◆ cend()

template<typename ElementType >
const_iterator tpf::matrix::dynamic_array< ElementType >::cend ( )
inline

Definition at line 127 of file tpf_matrix.hpp.

Here is the caller graph for this function:

◆ crbegin()

template<typename ElementType >
auto tpf::matrix::dynamic_array< ElementType >::crbegin ( )
inline

Definition at line 144 of file tpf_matrix.hpp.

Here is the call graph for this function:

◆ crend()

template<typename ElementType >
auto tpf::matrix::dynamic_array< ElementType >::crend ( )
inline

Definition at line 149 of file tpf_matrix.hpp.

Here is the call graph for this function:

◆ end()

template<typename ElementType >
iterator tpf::matrix::dynamic_array< ElementType >::end ( )
inline

Definition at line 115 of file tpf_matrix.hpp.

Here is the caller graph for this function:

◆ operator&()

template<typename ElementType >
ElementType * tpf::matrix::dynamic_array< ElementType >::operator& ( )
inline

Definition at line 204 of file tpf_matrix.hpp.

◆ operator=() [1/2]

template<typename ElementType >
dynamic_array & tpf::matrix::dynamic_array< ElementType >::operator= ( const dynamic_array< ElementType > &  right_hand_side)
inline

Definition at line 228 of file tpf_matrix.hpp.

◆ operator=() [2/2]

template<typename ElementType >
dynamic_array & tpf::matrix::dynamic_array< ElementType >::operator= ( dynamic_array< ElementType > &&  right_hand_side)
inlinenoexcept

Definition at line 285 of file tpf_matrix.hpp.

◆ operator[]() [1/2]

template<typename ElementType >
ElementType & tpf::matrix::dynamic_array< ElementType >::operator[] ( size_t  index)
inline

Definition at line 206 of file tpf_matrix.hpp.

◆ operator[]() [2/2]

template<typename ElementType >
const ElementType & tpf::matrix::dynamic_array< ElementType >::operator[] ( size_t  index) const
inline

Definition at line 208 of file tpf_matrix.hpp.

◆ rbegin()

template<typename ElementType >
auto tpf::matrix::dynamic_array< ElementType >::rbegin ( )
inline

Definition at line 134 of file tpf_matrix.hpp.

Here is the call graph for this function:

◆ rend()

template<typename ElementType >
auto tpf::matrix::dynamic_array< ElementType >::rend ( )
inline

Definition at line 139 of file tpf_matrix.hpp.

Here is the call graph for this function:

◆ resize()

template<typename ElementType >
void tpf::matrix::dynamic_array< ElementType >::resize ( size_t  count)
inline

Definition at line 157 of file tpf_matrix.hpp.

◆ size()

template<typename ElementType >
size_t tpf::matrix::dynamic_array< ElementType >::size ( ) const
inline

Definition at line 154 of file tpf_matrix.hpp.

Friends And Related Function Documentation

◆ operator<<

template<typename ElementType >
std::ostream & operator<< ( std::ostream &  os,
const dynamic_array< ElementType > &  da 
)
friend

Definition at line 308 of file tpf_matrix.hpp.


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