3#ifndef DUNE_DGFEnTITYKEY_HH
4#define DUNE_DGFEnTITYKEY_HH
9#include <dune/grid/io/file/dgfparser/dgfexception.hh>
20 DGFEntityKey (
const std :: vector< A > &key,
bool setOrigKey =
true );
21 DGFEntityKey (
const std::vector< A > &key,
22 int N,
int offset,
bool setOrigKey =
true );
23 DGFEntityKey (
const DGFEntityKey< A > &k );
25 DGFEntityKey< A > &operator= (
const DGFEntityKey< A > &k );
27 inline const A &operator[] (
int i )
const;
28 inline bool operator < (
const DGFEntityKey< A > &k )
const;
30 void orientation (
int base, std :: vector< std :: vector< double > > &vtx );
31 void print( std :: ostream &out = std :: cerr )
const;
33 inline bool origKeySet ()
const;
34 inline const A &origKey (
int i )
const;
35 inline int size ()
const;
38 std :: vector< A > key_, origKey_;
44 inline const A &DGFEntityKey< A > :: operator[] (
int i )
const
59 inline bool DGFEntityKey< A > :: origKeySet ()
const
66 inline const A &DGFEntityKey< A > :: origKey (
int i )
const
73 inline int DGFEntityKey< A > :: size ()
const
83 struct ElementFaceUtil
85 inline static int nofFaces (
int dim,
const std::vector< unsigned int > &element );
86 inline static int faceSize (
int dim,
bool simpl );
88 static DGFEntityKey< unsigned int >
89 generateFace (
int dim,
const std::vector< unsigned int > &element,
int f );
93 static DGFEntityKey< unsigned int >
94 generateCubeFace(
const std::vector< unsigned int > &element,
int f );
97 static DGFEntityKey< unsigned int >
98 generateSimplexFace (
const std::vector< unsigned int > &element,
int f );
102 inline int ElementFaceUtil::nofFaces (
int dim,
const std::vector< unsigned int > &element )
109 switch( element.size() )
119 switch( element.size() )
134 inline int ElementFaceUtil::faceSize(
int dim,
bool simpl )
143 return (simpl ? 3 : 4);
152#include "entitykey_inline.hh"
EnableIfInterOperable< T1, T2, bool >::type operator<(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition: iteratorfacades.hh:629
Dune namespace.
Definition: alignedallocator.hh:10