#include "codingUtilities/traits.hpp"
#include "dataRepository/RestartFlags.hpp"
#include "common/DataTypes.hpp"
Go to the source code of this file.
|
#define | DECLARE_FIELD(NAME, KEY, TYPE, DEFAULT, PLOTLEVEL, RESTARTFLAG, DESCRIPTION) |
| Generates a traits struct. More...
|
|
◆ DECLARE_FIELD
#define DECLARE_FIELD |
( |
|
NAME, |
|
|
|
KEY, |
|
|
|
TYPE, |
|
|
|
DEFAULT, |
|
|
|
PLOTLEVEL, |
|
|
|
RESTARTFLAG, |
|
|
|
DESCRIPTION |
|
) |
| |
Value: \ \
struct NAME \
{ \ \
static constexpr char const * key() \
{ return KEY; } \ \
using type = TYPE; \ \
using dataType = internal::typeHelper_t< TYPE >; \ \
static constexpr dataType defaultValue() \
{ return DEFAULT; } \ \
static constexpr char const * description = DESCRIPTION; \
}
Generates a traits struct.
- Parameters
-
NAME | Name of the traits struct. |
KEY | The string literal that will be used as the key to register and lookup the data in the repository. |
TYPE | The type of data that will be registered. |
DEFAULT | The default value for the data. |
PLOTLEVEL | The default plot level for the wrapper that will contain the data. |
RESTARTFLAG | The default restart flag for the wrapper that contains the data. |
DESCRIPTION | A string literal that contains a description of the data for use in sphinx documentation. |
Definition at line 39 of file MeshFields.hpp.