Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::AllAttrs Struct Reference

Detailed Description

Definition at line 33 of file derived_data.h.

#include <derived_data.h>

Public Types

template<int i>
using TypeDescriptor = std::tuple_element_t<i, AllAttrTypeDescriptors>
template<int i>
using Type = typename TypeDescriptor<i>::AttrType

Static Public Member Functions

template<typename AttrT>
static constexpr int GetIndex ()
template<typename Fn>
static void ForEachAttr (Fn &&fn)

Static Public Attributes

static constexpr int kNumAttrTypes

Member Typedef Documentation

◆ Type

template<int i>
using operations_research::math_opt::AllAttrs::Type = typename TypeDescriptor<i>::AttrType

Definition at line 44 of file derived_data.h.

◆ TypeDescriptor

template<int i>
using operations_research::math_opt::AllAttrs::TypeDescriptor = std::tuple_element_t<i, AllAttrTypeDescriptors>

Definition at line 40 of file derived_data.h.

Member Function Documentation

◆ ForEachAttr()

template<typename Fn>
void operations_research::math_opt::AllAttrs::ForEachAttr ( Fn && fn)
inlinestatic

Definition at line 63 of file derived_data.h.

◆ GetIndex()

template<typename AttrT>
constexpr int operations_research::math_opt::AllAttrs::GetIndex ( )
inlinestaticconstexpr

Definition at line 49 of file derived_data.h.

Member Data Documentation

◆ kNumAttrTypes

int operations_research::math_opt::AllAttrs::kNumAttrTypes
staticconstexpr
Initial value:
=
std::tuple_size_v<AllAttrTypeDescriptors>

Definition at line 35 of file derived_data.h.


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