Reference documentation for deal.II version 9.3.3
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
evaluation_flags.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2020 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16
17#ifndef dealii_matrix_free_evaluation_flags_h
18#define dealii_matrix_free_evaluation_flags_h
19
20#include <deal.II/base/config.h>
21
22
24
25
26
34{
43 {
51 values = 0x1,
55 gradients = 0x2,
59 hessians = 0x4
60 };
61
62
72 inline EvaluationFlags
74 {
75 return static_cast<EvaluationFlags>(static_cast<unsigned int>(f1) |
76 static_cast<unsigned int>(f2));
77 }
78
79
80
87 inline EvaluationFlags &
89 {
90 f1 = f1 | f2;
91 return f1;
92 }
93
94
105 const EvaluationFlags f2)
106 {
107 return static_cast<EvaluationFlags>(static_cast<unsigned int>(f1) &
108 static_cast<unsigned int>(f2));
109 }
110
111
118 inline EvaluationFlags &
120 {
121 f1 = f1 & f2;
122 return f1;
123 }
124
125} // namespace EvaluationFlags
126
127
129
130#endif
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
The namespace for the EvaluationFlags enum.
EvaluationFlags operator|(const EvaluationFlags f1, const EvaluationFlags f2)
EvaluationFlags & operator|=(EvaluationFlags &f1, const EvaluationFlags f2)
EvaluationFlags operator&(const EvaluationFlags f1, const EvaluationFlags f2)
EvaluationFlags & operator&=(EvaluationFlags &f1, const EvaluationFlags f2)