3#ifndef DUNE_DGFEnTITYKEY_HH
4#define DUNE_DGFEnTITYKEY_HH
9#include <dune/grid/alugrid/3d/topology.hh>
10#include <dune/grid/io/file/dgfparser/dgfexception.hh>
21 DGFEntityKey (
const std :: vector< A > &key,
bool setOrigKey =
true );
22 DGFEntityKey (
const std::vector< A > &key,
23 int N,
int offset,
bool setOrigKey =
true );
24 DGFEntityKey (
const DGFEntityKey< A > &k );
26 DGFEntityKey< A > &operator= (
const DGFEntityKey< A > &k );
28 inline const A &operator[] (
int i )
const;
29 inline bool operator < (
const DGFEntityKey< A > &k )
const;
31 void orientation (
int base, std :: vector< std :: vector< double > > &vtx );
32 void print( std :: ostream &out = std :: cerr )
const;
34 inline bool origKeySet ()
const;
35 inline const A &origKey (
int i )
const;
36 inline int size ()
const;
39 std :: vector< A > key_, origKey_;
45 inline const A &DGFEntityKey< A > :: operator[] (
int i )
const
52 inline bool DGFEntityKey< A > :: operator< (
const DGFEntityKey< A > &k )
const
60 inline bool DGFEntityKey< A > :: origKeySet ()
const
67 inline const A &DGFEntityKey< A > :: origKey (
int i )
const
74 inline int DGFEntityKey< A > :: size ()
const
84 struct ElementFaceUtil
86 inline static int nofFaces (
int dim, std::vector< unsigned int > &element );
87 inline static int faceSize (
int dim,
bool simpl );
89 static DGFEntityKey< unsigned int >
90 generateFace (
int dim,
const std::vector< unsigned int > &element,
int f );
94 static DGFEntityKey< unsigned int >
95 generateCubeFace(
const std::vector< unsigned int > &element,
int f );
98 static DGFEntityKey< unsigned int >
99 generateSimplexFace (
const std::vector< unsigned int > &element,
int f );
103 inline int ElementFaceUtil::nofFaces (
int dim, std::vector< unsigned int > &element )
110 switch( element.size() )
120 switch( element.size() )
135 inline int ElementFaceUtil::faceSize(
int dim,
bool simpl )
144 return (simpl ? 3 : 4);
153#include "entitykey_inline.hh"
Dune namespace.
Definition: alignment.hh:14