Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::AttrOp< AttrType > Struct Template Reference

#include <safe_attr_ops.h>

Public Types

using Descriptor = AttrTypeDescriptorT<AttrType>
using Key = AttrKeyFor<AttrType>
using ValueType = typename Descriptor::ValueType

Static Public Member Functions

static absl::StatusOr< AttrType > SafeCastAttr (int attr)
static absl::StatusOr< ValueTypeGet (Elemental *e, int attr, Key key)
static absl::Status Set (Elemental *e, int attr, Key key, ValueType value)
static absl::StatusOr< bool > IsNonDefault (Elemental *e, int attr, Key key)
static absl::StatusOr< int64_t > NumNonDefaults (Elemental *e, int attr)
static absl::StatusOr< std::vector< Key > > GetNonDefaults (Elemental *e, int attr)

Detailed Description

template<typename AttrType>
struct operations_research::math_opt::AttrOp< AttrType >

Definition at line 31 of file safe_attr_ops.h.

Member Typedef Documentation

◆ Descriptor

template<typename AttrType>
using operations_research::math_opt::AttrOp< AttrType >::Descriptor = AttrTypeDescriptorT<AttrType>

Definition at line 32 of file safe_attr_ops.h.

◆ Key

template<typename AttrType>
using operations_research::math_opt::AttrOp< AttrType >::Key = AttrKeyFor<AttrType>

Definition at line 33 of file safe_attr_ops.h.

◆ ValueType

template<typename AttrType>
using operations_research::math_opt::AttrOp< AttrType >::ValueType = typename Descriptor::ValueType

Definition at line 34 of file safe_attr_ops.h.

Member Function Documentation

◆ Get()

template<typename AttrType>
absl::StatusOr< ValueType > operations_research::math_opt::AttrOp< AttrType >::Get ( Elemental * e,
int attr,
Key key )
inlinestatic

Definition at line 44 of file safe_attr_ops.h.

◆ GetNonDefaults()

template<typename AttrType>
absl::StatusOr< std::vector< Key > > operations_research::math_opt::AttrOp< AttrType >::GetNonDefaults ( Elemental * e,
int attr )
inlinestatic

Definition at line 64 of file safe_attr_ops.h.

◆ IsNonDefault()

template<typename AttrType>
absl::StatusOr< bool > operations_research::math_opt::AttrOp< AttrType >::IsNonDefault ( Elemental * e,
int attr,
Key key )
inlinestatic

Definition at line 54 of file safe_attr_ops.h.

◆ NumNonDefaults()

template<typename AttrType>
absl::StatusOr< int64_t > operations_research::math_opt::AttrOp< AttrType >::NumNonDefaults ( Elemental * e,
int attr )
inlinestatic

Definition at line 59 of file safe_attr_ops.h.

◆ SafeCastAttr()

template<typename AttrType>
absl::StatusOr< AttrType > operations_research::math_opt::AttrOp< AttrType >::SafeCastAttr ( int attr)
inlinestatic

Definition at line 36 of file safe_attr_ops.h.

◆ Set()

template<typename AttrType>
absl::Status operations_research::math_opt::AttrOp< AttrType >::Set ( Elemental * e,
int attr,
Key key,
ValueType value )
inlinestatic

Definition at line 49 of file safe_attr_ops.h.


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