5#ifndef DUNE_DGFEnTITYKEY_HH
6#define DUNE_DGFEnTITYKEY_HH
11#include <dune/grid/io/file/dgfparser/dgfexception.hh>
22 DGFEntityKey (
const std :: vector< A > &key,
bool setOrigKey =
true );
23 DGFEntityKey (
const std::vector< A > &key,
24 int N,
int offset,
bool setOrigKey =
true );
25 DGFEntityKey (
const DGFEntityKey< A > &k );
27 DGFEntityKey< A > &operator= (
const DGFEntityKey< A > &k );
29 inline const A &operator[] (
int i )
const;
30 inline bool operator < (
const DGFEntityKey< A > &k )
const;
32 void orientation (
int base, std :: vector< std :: vector< double > > &vtx );
33 void print( std :: ostream &out = std :: cerr )
const;
35 inline bool origKeySet ()
const;
36 inline const A &origKey (
int i )
const;
37 inline int size ()
const;
40 std :: vector< A > key_, origKey_;
46 inline const A &DGFEntityKey< A > :: operator[] (
int i )
const
61 inline bool DGFEntityKey< A > :: origKeySet ()
const
68 inline const A &DGFEntityKey< A > :: origKey (
int i )
const
75 inline int DGFEntityKey< A > :: size ()
const
85 struct ElementFaceUtil
87 inline static int nofFaces (
int dim,
const std::vector< unsigned int > &element );
88 inline static int faceSize (
int dim,
bool simpl );
90 static DGFEntityKey< unsigned int >
91 generateFace (
int dim,
const std::vector< unsigned int > &element,
int f );
95 static DGFEntityKey< unsigned int >
96 generateCubeFace(
const std::vector< unsigned int > &element,
int f );
99 static DGFEntityKey< unsigned int >
100 generateSimplexFace (
const std::vector< unsigned int > &element,
int f );
104 inline int ElementFaceUtil::nofFaces (
int dim,
const std::vector< unsigned int > &element )
111 switch( element.size() )
121 switch( element.size() )
136 inline int ElementFaceUtil::faceSize(
int dim,
bool simpl )
145 return (simpl ? 3 : 4);
154#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:638
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75