CAPD DynSys Library  5.2.0
capd::vectalg::Container< Scalar, capacity > Class Template Reference

class Container together with suitable iterators The container has fixed size specified by a template argument 'capacity' More...

#include <capd/vectalg/Container.h>

Public Types

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

Public Member Functions

 Container ()
 
 Container (size_type)
 
 Container (size_type, bool)
 
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
 
void resize (size_type newCapacity)
 
ScalarTypeoperator[] (size_type)
 
const ScalarTypeoperator[] (size_type) const
 
ScalarTypeoperator() (size_type)
 
const ScalarTypeoperator() (size_type) const
 
void clear ()
 

Static Public Member Functions

static size_type size ()
 

Public Attributes

const typedef ScalarTypeconst_iterator
 

Protected Attributes

ScalarType data [capacity]
 

Friends

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

Detailed Description

template<typename Scalar, __size_type capacity>
class capd::vectalg::Container< Scalar, capacity >

class Container together with suitable iterators The container has fixed size specified by a template argument 'capacity'

This class is used as a container for vectors, matrices and higher order containers

Member Typedef Documentation

◆ const_reverse_iterator

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

◆ difference_type

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

◆ iterator

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

◆ reverse_iterator

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

◆ ScalarType

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

◆ size_type

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

Constructor & Destructor Documentation

◆ Container() [1/3]

template<typename Scalar , __size_type capacity>
capd::vectalg::Container< Scalar, capacity >::Container

◆ Container() [2/3]

template<typename Scalar , __size_type capacity>
capd::vectalg::Container< Scalar, capacity >::Container ( size_type  )
explicit

◆ Container() [3/3]

template<typename Scalar , __size_type capacity>
capd::vectalg::Container< Scalar, capacity >::Container ( size_type  ,
bool   
)
inline

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

template<typename Scalar , __size_type capacity>
const_iterator capd::vectalg::Container< Scalar, capacity >::begin ( ) const

◆ clear()

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

◆ end() [1/2]

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

◆ end() [2/2]

template<typename Scalar , __size_type capacity>
const_iterator capd::vectalg::Container< Scalar, capacity >::end ( ) const

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ rbegin() [1/2]

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

◆ rbegin() [2/2]

template<typename Scalar , __size_type capacity>
const_reverse_iterator capd::vectalg::Container< Scalar, capacity >::rbegin ( ) const

◆ rend() [1/2]

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

◆ rend() [2/2]

template<typename Scalar , __size_type capacity>
const_reverse_iterator capd::vectalg::Container< Scalar, capacity >::rend ( ) const

◆ resize()

template<typename Scalar , __size_type capacity>
void capd::vectalg::Container< Scalar, capacity >::resize ( size_type  newCapacity)

◆ size()

template<typename Scalar , __size_type capacity>
static size_type capd::vectalg::Container< Scalar, capacity >::size ( )
inlinestatic

Friends And Related Function Documentation

◆ swap

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

Member Data Documentation

◆ const_iterator

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

◆ data

template<typename Scalar , __size_type capacity>
ScalarType capd::vectalg::Container< Scalar, capacity >::data[capacity]
protected