ViennaGrid - The Vienna Grid Library  2.1.0
Data Structures | Public Types | Public Member Functions | Friends
view< base_container_type_, container_tag > Class Template Reference

A view holds references to a subset of elements in another elements, but represents itself to the outside as another container. More...

#include <view.hpp>

Data Structures

class  const_iterator
class  const_reverse_iterator
class  iterator
class  reverse_iterator

Public Types

typedef base_container_type_ base_container_type
typedef
detail::result_of::const_handle_type
< base_container_type,
handle_tag >::type 
const_handle_type
typedef const value_typeconst_pointer
typedef const value_typeconst_reference
typedef
base_container_type::handle_tag 
handle_tag
typedef
detail::result_of::handle_type
< base_container_type,
handle_tag >::type 
handle_type
typedef value_typepointer
typedef value_typereference
typedef
handle_container_type::size_type 
size_type
typedef
base_container_type::value_type 
value_type

Public Member Functions

reference back ()
const_reference back () const
iterator begin ()
const_iterator begin () const
const_iterator cbegin ()
const_iterator cend ()
void clear ()
reference dereference_handle (handle_type handle)
const_reference dereference_handle (const_handle_type handle) const
bool empty () const
iterator end ()
const_iterator end () const
void erase_handle (handle_type handle)
iterator find (const_reference element)
const_iterator find (const_reference element) const
reference front ()
const_reference front () const
handle_type handle (reference element)
const_handle_type handle (const_reference element) const
handle_type handle_at (std::size_t pos)
const_handle_type handle_at (std::size_t pos) const
void increment_size ()
void insert_handle (handle_type handle)
void insert_unique_handle (handle_type handle)
reference operator[] (size_type index)
const_reference operator[] (size_type index) const
void resize (size_type size_)
void set_base_container (base_container_type &base_container_)
template<typename other_container_tag >
void set_base_container (view< base_container_type, other_container_tag > &base_view)
template<typename other_container_tag >
void set_base_container (view< base_container_type, other_container_tag > const &base_view)
void set_handle (handle_type element, size_type pos)
size_type size () const
 view ()

Friends

class view

Detailed Description

template<typename base_container_type_, typename container_tag>
class viennagrid::view< base_container_type_, container_tag >

A view holds references to a subset of elements in another elements, but represents itself to the outside as another container.

Template Parameters:
base_container_type_The container type on which the view acts
container_tagCategorization tag for the view in order to specialize on certain details of different container types.

Member Typedef Documentation

typedef base_container_type_ base_container_type
typedef const value_type* const_pointer
typedef const value_type& const_reference
typedef base_container_type::handle_tag handle_tag
typedef value_type* pointer
typedef handle_container_type::size_type size_type
typedef base_container_type::value_type value_type

Constructor & Destructor Documentation

view ( ) [inline]

Member Function Documentation

reference back ( ) [inline]
const_reference back ( ) const [inline]
iterator begin ( ) [inline]
const_iterator begin ( ) const [inline]
const_iterator cbegin ( ) [inline]
const_iterator cend ( ) [inline]
void clear ( ) [inline]
bool empty ( ) const [inline]
iterator end ( ) [inline]
const_iterator end ( ) const [inline]
void erase_handle ( handle_type  handle) [inline]
iterator find ( const_reference  element) [inline]
const_iterator find ( const_reference  element) const [inline]
reference front ( ) [inline]
const_reference front ( ) const [inline]
handle_type handle ( reference  element) [inline]
const_handle_type handle ( const_reference  element) const [inline]
handle_type handle_at ( std::size_t  pos) [inline]
const_handle_type handle_at ( std::size_t  pos) const [inline]
void increment_size ( ) [inline]
void insert_handle ( handle_type  handle) [inline]
void insert_unique_handle ( handle_type  handle) [inline]
reference operator[] ( size_type  index) [inline]
const_reference operator[] ( size_type  index) const [inline]
void resize ( size_type  size_) [inline]
void set_base_container ( base_container_type base_container_) [inline]
void set_base_container ( view< base_container_type, other_container_tag > &  base_view) [inline]
void set_base_container ( view< base_container_type, other_container_tag > const &  base_view) [inline]
void set_handle ( handle_type  element,
size_type  pos 
) [inline]
size_type size ( ) const [inline]

Friends And Related Function Documentation

friend class view [friend]

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