Flow123d
jenkins-Flow123d-linux-release-multijob-282
|
#include <accessors.hh>
Public Member Functions | |
Enum () | |
Enum (int v) | |
operator int () const | |
operator unsigned int () const | |
Private Attributes | |
int | val_ |
Class that works as base type of all enum types. We need it to return integer from a Selection input without knowing exact enum type. This class contains int and is convertible to int.
Usage example:
// in some general read function that do not know BCTypeEnum int bc_type_int = record.val<Enum>("bc_type_selection_key"); ... // outside of general function enum { dirichlet, neumann, newton } BCTypeEnum; BCTypeEnum bc_type = bc_typ_int;
Definition at line 148 of file accessors.hh.
|
inline |
Definition at line 150 of file accessors.hh.
|
inline |
Definition at line 151 of file accessors.hh.
|
inline |
Definition at line 152 of file accessors.hh.
|
inline |
Definition at line 153 of file accessors.hh.
|
private |
Definition at line 155 of file accessors.hh.