dune-foamgrid  2.7-git
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 
12 namespace Dune {
13 
14 template <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 
24 template <int dimgrid, int dimworld, class ctype>
25 typename std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*>
26 FoamGridNullIteratorFactory<dimgrid, dimworld, ctype>::emptyVector_;
27 }
28 
29 #endif
Definition: dgffoam.cc:6
Definition: foamgridnulliteratorfactory.hh:16