Reference documentation for deal.II version Git adf7f9fdfe 2021-01-28 13:54:50 +0100
\(\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\}}\)
Namespaces | Classes | Functions
ReferenceCell::internal Namespace Reference




class  NoPermutation


Type make_reference_cell_from_int (const std::uint8_t kind)
static bool get_bit (const unsigned char number, const unsigned int n)
static void set_bit (unsigned char &number, const unsigned int n, const bool x)

Function Documentation

◆ make_reference_cell_from_int()

ReferenceCell::Type ReferenceCell::internal::make_reference_cell_from_int ( const std::uint8_t  kind)

A helper function to create a ReferenceCell::Type object from an integer. ReferenceCell::Type objects are "singletons" (actually, "multitons" – there are multiple, but they are only a handful and these are all that can be used). What is then necessary is to have a way to create these with their internal id to distinguish the few possible ones in existence. We could do this via a public constructor of ReferenceCell::Type, but that would allow users to create ones outside the range we envision, and we don't want to do that. Rather, the constructor that takes an integer is made private but we have this one function in an internal namespace that is a friend of the class and can be used to create the objects.

Definition at line 39 of file

◆ get_bit()

static bool ReferenceCell::internal::get_bit ( const unsigned char  number,
const unsigned int  n 

Check if the bit at position n in number is set.

Definition at line 762 of file reference_cell.h.

◆ set_bit()

static void ReferenceCell::internal::set_bit ( unsigned char &  number,
const unsigned int  n,
const bool  x 

Set the bit at position n in number to value x.

Definition at line 778 of file reference_cell.h.