INMOST
A toolkit for distributed mathematical modeling
INMOST::array< element > Class Template Reference

Classes

class  _iterator
 
class  _reverse_iterator
 

Public Types

typedef unsigned size_type
 
typedef make_unsigned< size_type >::type uenum
 
typedef _iterator< element > iterator
 
typedef _iterator< const element > const_iterator
 
typedef _reverse_iterator< element > reverse_iterator
 
typedef _reverse_iterator< const element > const_reverse_iterator
 

Public Member Functions

__INLINE element * data ()
 
__INLINE const element * data () const
 
 array (size_type n, element c=element())
 
template<class InputIterator >
 array (InputIterator first, InputIterator last)
 
 array (const array &other)
 
__INLINE const element & operator[] (size_type n) const
 
__INLINE element & operator[] (size_type n)
 
__INLINE const element & at (size_type n) const
 
__INLINE element & at (size_type n)
 
__INLINE element & at_safe (size_type n)
 
arrayoperator= (array const &other)
 
void push_back (const element &e)
 
void pop_back ()
 
__INLINE element & back ()
 
__INLINE const element & back () const
 
__INLINE element & front ()
 
__INLINE const element & front () const
 
__INLINE size_type capacity ()
 
__INLINE bool empty () const
 
void resize (size_type n, element c=element())
 
__INLINE size_type size () const
 
__INLINE size_type capacity () const
 
void clear ()
 
void swap (array< element > &other)
 
__INLINE iterator begin ()
 
__INLINE iterator end ()
 
__INLINE const_iterator begin () const
 
__INLINE const_iterator end () const
 
__INLINE reverse_iterator rbegin ()
 
__INLINE reverse_iterator rend ()
 
__INLINE const_reverse_iterator rbegin () const
 
__INLINE const_reverse_iterator rend () const
 
iterator erase (iterator pos)
 
iterator erase (iterator b, iterator e)
 
iterator insert (iterator pos, const element &x)
 
void insert (iterator pos, size_type n, const element &x)
 
template<class InputIterator >
void insert (iterator pos, InputIterator first, InputIterator last)
 
template<class InputIterator >
void replace (iterator m_first, iterator m_last, InputIterator first, InputIterator last)
 
template<class InputIterator >
void assign (InputIterator first, InputIterator last)
 

Static Protected Member Functions

static element * realloc (element *ptr, size_type old_size, size_type new_size)
 
static element * alloc (size_type init_size)
 
static element * copy (const element *ibeg, const element *iend, element *obeg)
 

Friends

template<class >
class shell
 

Detailed Description

template<typename element>
class INMOST::array< element >

Definition at line 66 of file container.hpp.


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