ViennaGrid - The Vienna Grid Library  2.1.0
Data Structures | Namespaces | Functions
viennagrid/storage/view.hpp File Reference

General functionality for dealing with a subset of elements in a container. More...

#include <iterator>
#include <algorithm>
#include "viennagrid/forwards.hpp"
#include "viennagrid/meta/typemap.hpp"
#include "viennagrid/storage/container.hpp"
#include "viennagrid/storage/container_collection.hpp"
#include "viennagrid/storage/handle.hpp"
#include "viennagrid/storage/id.hpp"

Go to the source code of this file.

Data Structures

class  view< base_container_type_, container_tag >::const_iterator
class  view< base_container_type_, container_tag >::const_reverse_iterator
class  view< base_container_type_, container_tag >::iterator
class  view< base_container_type_, container_tag >::reverse_iterator
struct  view< base_container_type, view_container_tag >
 Metafunction for returning a view on a container using the respective container for holding the references inside the view. More...
class  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. More...

Namespaces

namespace  viennagrid
 

The main ViennaGrid namespace. Most user functionality resides directly in this namespace rather than in sub-namespaces.


namespace  viennagrid::detail
 

Namespace for implementation details. Not intended to be used directly by a library user.


namespace  viennagrid::result_of
 

The metafunction layer. Provides type generators that derive the respective type from the mesh configuration.


Functions

template<typename BaseContainerT >
view< BaseContainerT,
std_set_tag< id_compare_tag >
>::iterator 
find (view< BaseContainerT, std_set_tag< id_compare_tag > > &container, typename view< BaseContainerT, std_set_tag< id_compare_tag > >::value_type const &element)
template<typename BaseContainerT >
view< BaseContainerT,
std_set_tag< id_compare_tag >
>::const_iterator 
find (view< BaseContainerT, std_set_tag< id_compare_tag > > const &container, typename view< BaseContainerT, std_set_tag< id_compare_tag > >::value_type const &element)
template<typename base_container_type , typename view_base_container_type , typename view_container_tag >
void handle (base_container_type &src_container, viennagrid::view< view_base_container_type, view_container_tag > &dst_view)
template<typename base_container_type , typename view_base_container_type , typename handle_container_tag , typename predicate >
void handle_if (base_container_type &src_container, viennagrid::view< view_base_container_type, handle_container_tag > &dst_view, predicate pred)
template<typename base_container_collection_type , typename view_container_collection_type >
void set_base_container (base_container_collection_type &base_container_collection, view_container_collection_type &view_container_collection)
 Sets the reference to the parent container for a view. Also supports views of views, etc.

Detailed Description

General functionality for dealing with a subset of elements in a container.