#include <map>#include <string_view>
Include dependency graph for structs.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | alpaqa |
| namespace | alpaqa::params |
Macros | |
| #define | PARAMS_TABLE(type_, ...) |
| Helper macro to easily specialize alpaqa::params::attribute_table. | |
| #define | PARAMS_MEMBER(name, ...) |
| Helper macro to easily initialize a alpaqa::params::attribute_table_t. | |
| #define | PARAMS_ALIAS_TABLE(type_, ...) |
| Helper macro to easily specialize alpaqa::params::attribute_alias_table. | |
| #define | PARAMS_MEMBER_ALIAS(alias, name) { #alias, #name } |
| Helper macro to easily initialize a alpaqa::params::attribute_alias_table_t. | |
| #define | ENUM_TABLE(type_, ...) |
| Helper macro to easily specialize alpaqa::params::enum_table. | |
| #define | ENUM_MEMBER(name, ...) |
| Helper macro to easily initialize a alpaqa::params::enum_table_t. | |
Typedefs | |
| template<class T , class S > | |
| using | attribute_table_t = std::map< std::string_view, attribute_accessor< T, S > > |
| Dictionary that maps struct attribute names to type-erased functions that set those attributes. | |
| template<class T , class S > | |
| using | attribute_alias_table_t = std::map< std::string_view, std::string_view > |
| Dictionary that maps struct attribute names to type-erased functions that set those attributes. | |
| template<class T , class S > | |
| using | enum_table_t = std::map< std::string_view, enum_accessor< T, S > > |
| Dictionary that maps enumerator names to their values and documentation. | |
| #define PARAMS_TABLE | ( | type_, | |
| ... | |||
| ) |
Helper macro to easily specialize alpaqa::params::attribute_table.
Definition at line 22 of file structs.hpp.
| #define PARAMS_MEMBER | ( | name, | |
| ... | |||
| ) |
Helper macro to easily initialize a alpaqa::params::attribute_table_t.
Definition at line 31 of file structs.hpp.
| #define PARAMS_ALIAS_TABLE | ( | type_, | |
| ... | |||
| ) |
Helper macro to easily specialize alpaqa::params::attribute_alias_table.
Definition at line 47 of file structs.hpp.
| #define PARAMS_MEMBER_ALIAS | ( | alias, | |
| name | |||
| ) | { #alias, #name } |
Helper macro to easily initialize a alpaqa::params::attribute_alias_table_t.
Definition at line 57 of file structs.hpp.
| #define ENUM_TABLE | ( | type_, | |
| ... | |||
| ) |
Helper macro to easily specialize alpaqa::params::enum_table.
Definition at line 75 of file structs.hpp.
| #define ENUM_MEMBER | ( | name, | |
| ... | |||
| ) |
Helper macro to easily initialize a alpaqa::params::enum_table_t.
Definition at line 84 of file structs.hpp.