CAPD::DynSys Library  6.0.0
capd::vectalg::Container< Scalar, 0 > Class Template Reference

Specialization for capacity=0 This container allocates objects on a storage. More...

#include <capd/vectalg/Container.h>

Public Types

typedef Scalar ScalarType
 
typedef __size_type size_type
 
typedef __difference_type difference_type
 
typedef ScalarTypeiterator
 
typedef const ScalarTypeconst_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

Containeroperator= (Container &&) noexcept
 
 Container (Container &&) noexcept
 Move constructor. More...
 
 Container ()
 
 Container (size_type)
 
 Container (size_type, bool)
 
 Container (const Container &)
 
 ~Container ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
Containeroperator= (const Container &)
 
void resize (size_type)
 
ScalarTypeoperator[] (size_type)
 
const ScalarTypeoperator[] (size_type) const
 
ScalarTypeoperator() (size_type)
 
const ScalarTypeoperator() (size_type) const
 
size_type size () const
 
bool empty () const
 
void clear ()
 

Protected Attributes

ScalarTypedata = nullptr
 
size_type capacity =0u
 

Friends

void swap (Container< Scalar, 0 > &A_c1, Container< Scalar, 0 > &A_c2) noexcept
 

Detailed Description

template<typename Scalar>
class capd::vectalg::Container< Scalar, 0 >

Specialization for capacity=0 This container allocates objects on a storage.

Member Typedef Documentation

◆ const_iterator

template<typename Scalar >
typedef const ScalarType* capd::vectalg::Container< Scalar, 0 >::const_iterator

◆ const_reverse_iterator

template<typename Scalar >
typedef std::reverse_iterator<const_iterator> capd::vectalg::Container< Scalar, 0 >::const_reverse_iterator

◆ difference_type

template<typename Scalar >
typedef __difference_type capd::vectalg::Container< Scalar, 0 >::difference_type

◆ iterator

template<typename Scalar >
typedef ScalarType* capd::vectalg::Container< Scalar, 0 >::iterator

◆ reverse_iterator

template<typename Scalar >
typedef std::reverse_iterator<iterator> capd::vectalg::Container< Scalar, 0 >::reverse_iterator

◆ ScalarType

template<typename Scalar >
typedef Scalar capd::vectalg::Container< Scalar, 0 >::ScalarType

◆ size_type

template<typename Scalar >
typedef __size_type capd::vectalg::Container< Scalar, 0 >::size_type

Constructor & Destructor Documentation

◆ Container() [1/5]

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::Container ( Container< Scalar, 0 > &&  a_container)
noexcept

Move constructor.

◆ Container() [2/5]

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::Container
inline

◆ Container() [3/5]

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::Container ( size_type  a_capacity)
explicit

◆ Container() [4/5]

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::Container ( size_type  a_capacity,
bool   
)
inline

◆ Container() [5/5]

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::Container ( const Container< Scalar, 0 > &  a_container)

◆ ~Container()

template<typename Scalar >
capd::vectalg::Container< Scalar, 0 >::~Container
inline

Member Function Documentation

◆ begin() [1/2]

template<typename Scalar >
Container< Scalar, 0 >::iterator capd::vectalg::Container< Scalar, 0 >::begin
inline

◆ begin() [2/2]

template<typename Scalar >
Container< Scalar, 0 >::const_iterator capd::vectalg::Container< Scalar, 0 >::begin
inline

◆ clear()

template<typename Scalar >
void capd::vectalg::Container< Scalar, 0 >::clear

◆ empty()

template<typename Scalar >
bool capd::vectalg::Container< Scalar, 0 >::empty ( ) const
inline

◆ end() [1/2]

template<typename Scalar >
Container< Scalar, 0 >::iterator capd::vectalg::Container< Scalar, 0 >::end
inline

◆ end() [2/2]

template<typename Scalar >
Container< Scalar, 0 >::const_iterator capd::vectalg::Container< Scalar, 0 >::end
inline

◆ operator()() [1/2]

template<typename Scalar >
Scalar & capd::vectalg::Container< Scalar, 0 >::operator() ( size_type  i)
inline

◆ operator()() [2/2]

template<typename Scalar >
const Scalar & capd::vectalg::Container< Scalar, 0 >::operator() ( size_type  i) const
inline

◆ operator=() [1/2]

template<typename Scalar >
Container< Scalar, 0 > & capd::vectalg::Container< Scalar, 0 >::operator= ( const Container< Scalar, 0 > &  a_c)

◆ operator=() [2/2]

template<typename Scalar >
Container< Scalar, 0 > & capd::vectalg::Container< Scalar, 0 >::operator= ( Container< Scalar, 0 > &&  a_c)
noexcept

◆ operator[]() [1/2]

template<typename Scalar >
Scalar & capd::vectalg::Container< Scalar, 0 >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<typename Scalar >
const Scalar & capd::vectalg::Container< Scalar, 0 >::operator[] ( size_type  i) const
inline

◆ rbegin() [1/2]

template<typename Scalar >
Container< Scalar, 0 >::reverse_iterator capd::vectalg::Container< Scalar, 0 >::rbegin
inline

◆ rbegin() [2/2]

template<typename Scalar >
Container< Scalar, 0 >::const_reverse_iterator capd::vectalg::Container< Scalar, 0 >::rbegin
inline

◆ rend() [1/2]

template<typename Scalar >
Container< Scalar, 0 >::reverse_iterator capd::vectalg::Container< Scalar, 0 >::rend
inline

◆ rend() [2/2]

template<typename Scalar >
Container< Scalar, 0 >::const_reverse_iterator capd::vectalg::Container< Scalar, 0 >::rend
inline

◆ resize()

template<typename Scalar >
void capd::vectalg::Container< Scalar, 0 >::resize ( size_type  A_newCapacity)

◆ size()

template<typename Scalar >
size_type capd::vectalg::Container< Scalar, 0 >::size ( ) const
inline

Friends And Related Function Documentation

◆ swap

template<typename Scalar >
void swap ( Container< Scalar, 0 > &  A_c1,
Container< Scalar, 0 > &  A_c2 
)
friend

Member Data Documentation

◆ capacity

template<typename Scalar >
size_type capd::vectalg::Container< Scalar, 0 >::capacity =0u
protected

◆ data

template<typename Scalar >
ScalarType* capd::vectalg::Container< Scalar, 0 >::data = nullptr
protected

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