flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
flexiblesusy::cxx_diagrams::field_indices< Field > Struct Template Reference

Declare a type that can hold the field indices for any given field. More...

#include <fields.hpp>

Collaboration diagram for flexiblesusy::cxx_diagrams::field_indices< Field >:
Collaboration graph

Public Types

using type = std::array< int, Field::numberOfFieldIndices >
 

Detailed Description

template<class Field>
struct flexiblesusy::cxx_diagrams::field_indices< Field >

Declare a type that can hold the field indices for any given field.

Todo:
Field should have nested numberOfFieldIndices.
Returns
::type evaluates to std::array<int,int N>.

Definition at line 48 of file fields.hpp.

Member Typedef Documentation

◆ type

template<class Field >
using flexiblesusy::cxx_diagrams::field_indices< Field >::type = std::array<int, Field::numberOfFieldIndices>

using keyword here is type alias (see https://en.cppreference.com/w/cpp/language/type_alias). It allows to use

std::array< int, Field::numberOfFieldIndices > type
Definition: fields.hpp:55

to get

std::array<int, Field::numberOfFieldIndices>

type in the code.

Definition at line 55 of file fields.hpp.


The documentation for this struct was generated from the following file: