linbox
LightContainer< Elem > Struct Template Reference

#include <light_container.h>

+ Inheritance diagram for LightContainer< Elem >:

Public Types

typedef Elem value_type
 
typedef Elem * iterator
 
typedef const Elem * const_iterator
 

Public Member Functions

 LightContainer ()
 
 LightContainer (size_t s)
 
Self_toperator= (const Self_t &v)
 
 LightContainer (const Self_t &v)
 
void reserve (size_t s)
 
size_t size () const
 
Elem & operator[] (size_t i)
 
const Elem & operator[] (size_t i) const
 
void clear ()
 
void resize (size_t s)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
Elem & front ()
 
const Elem & front () const
 
Elem & back ()
 
const Elem & back () const
 
void push_back (const Elem &c)
 
template<class... Args>
void emplace_back (Args &&... args)
 
void pop_back ()
 
 ~LightContainer ()
 
iterator insert (iterator pos, const Elem &c)
 
iterator insert (iterator pos, const_iterator Beg, const_iterator End)
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 

Protected Member Functions

void reallocate (size_t s, size_t endc)
 
iterator insertwithspace (iterator pos, const Elem &c)
 
iterator insertwithrealloc (iterator pos, const Elem &c)
 

Friends

std::ostream & operator<< (std::ostream &o, const Self_t &C)
 

Member Typedef Documentation

◆ value_type

template<typename Elem>
typedef Elem value_type

◆ iterator

template<typename Elem>
typedef Elem* iterator

◆ const_iterator

template<typename Elem>
typedef const Elem* const_iterator

Constructor & Destructor Documentation

◆ LightContainer() [1/3]

template<typename Elem>
LightContainer ( )
inline

◆ LightContainer() [2/3]

template<typename Elem>
LightContainer ( size_t s)
inline

◆ LightContainer() [3/3]

template<typename Elem>
LightContainer ( const Self_t & v)
inline

◆ ~LightContainer()

template<typename Elem>
~LightContainer ( )
inline

Member Function Documentation

◆ operator=()

template<typename Elem>
Self_t & operator= ( const Self_t & v)
inline

◆ reserve()

template<typename Elem>
void reserve ( size_t s)
inline

◆ size()

template<typename Elem>
size_t size ( ) const
inline

◆ operator[]() [1/2]

template<typename Elem>
Elem & operator[] ( size_t i)
inline

◆ operator[]() [2/2]

template<typename Elem>
const Elem & operator[] ( size_t i) const
inline

◆ clear()

template<typename Elem>
void clear ( )
inline

◆ resize()

template<typename Elem>
void resize ( size_t s)
inline

◆ begin() [1/2]

template<typename Elem>
iterator begin ( )
inline

◆ end() [1/2]

template<typename Elem>
iterator end ( )
inline

◆ begin() [2/2]

template<typename Elem>
const_iterator begin ( ) const
inline

◆ end() [2/2]

template<typename Elem>
const_iterator end ( ) const
inline

◆ front() [1/2]

template<typename Elem>
Elem & front ( )
inline

◆ front() [2/2]

template<typename Elem>
const Elem & front ( ) const
inline

◆ back() [1/2]

template<typename Elem>
Elem & back ( )
inline

◆ back() [2/2]

template<typename Elem>
const Elem & back ( ) const
inline

◆ push_back()

template<typename Elem>
void push_back ( const Elem & c)
inline

◆ emplace_back()

template<typename Elem>
template<class... Args>
void emplace_back ( Args &&... args)
inline

◆ pop_back()

template<typename Elem>
void pop_back ( )
inline

◆ insert() [1/2]

template<typename Elem>
iterator insert ( iterator pos,
const Elem & c )
inline

◆ insert() [2/2]

template<typename Elem>
iterator insert ( iterator pos,
const_iterator Beg,
const_iterator End )
inline

◆ erase() [1/2]

template<typename Elem>
iterator erase ( iterator pos)
inline

◆ erase() [2/2]

template<typename Elem>
iterator erase ( iterator first,
iterator last )
inline

◆ reallocate()

template<typename Elem>
void reallocate ( size_t s,
size_t endc )
inlineprotected

◆ insertwithspace()

template<typename Elem>
iterator insertwithspace ( iterator pos,
const Elem & c )
inlineprotected

◆ insertwithrealloc()

template<typename Elem>
iterator insertwithrealloc ( iterator pos,
const Elem & c )
inlineprotected

Friends And Related Symbol Documentation

◆ operator<<

template<typename Elem>
std::ostream & operator<< ( std::ostream & o,
const Self_t & C )
friend

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