dune-foamgrid 2.8.0
Loading...
Searching...
No Matches
foamgridnulliteratorfactory.hh
Go to the documentation of this file.
1// -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set ts=8 sw=4 et sts=4:
3#ifndef DUNE_FOAMGRID_NULLITERATORFACTORY_HH
4#define DUNE_FOAMGRID_NULLITERATORFACTORY_HH
5
11
12namespace Dune {
13
14template <int dimgrid, int dimworld, class ctype>
16{
17 public:
18 static typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*>::const_iterator null()
19 { return emptyVector_.end(); }
20 private:
21 static typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*> emptyVector_;
22};
23
24template <int dimgrid, int dimworld, class ctype>
25typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*>
26FoamGridNullIteratorFactory<dimgrid, dimworld, ctype>::emptyVector_;
27}
28
29#endif
Definition: dgffoam.cc:6
Definition: foamgridnulliteratorfactory.hh:16
static std::vector< constFoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > * >::const_iterator null()
Definition: foamgridnulliteratorfactory.hh:18