Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename > Class Template Reference

#include <attr_storage.h>

Public Types

using Key = AttrKey<n, Symmetry>

Public Member Functions

void AddRowsAndColumns (const Key key)
void ClearRowsAndColumns (Key key)
 Requires key is currently stored with a non-default value.
void Clear ()
template<int i>
std::vector< KeySlice (const int64_t key_elem) const
template<int i>
int64_t GetSliceSize (const int64_t key_elem) const

Detailed Description

template<int n, typename Symmetry, typename = void>
class operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >

When we have two or more dimensions, we need to store the nondefaults for each dimension to support slicing.

Definition at line 142 of file attr_storage.h.

Member Typedef Documentation

◆ Key

template<int n, typename Symmetry, typename = void>
using operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::Key = AttrKey<n, Symmetry>

Definition at line 144 of file attr_storage.h.

Member Function Documentation

◆ AddRowsAndColumns()

template<int n, typename Symmetry, typename = void>
void operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::AddRowsAndColumns ( const Key key)
inline

NOLINTNEXTLINE(clang-diagnostic-pre-c++20-compat)

Definition at line 146 of file attr_storage.h.

◆ Clear()

template<int n, typename Symmetry, typename = void>
void operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::Clear ( )
inline

Definition at line 169 of file attr_storage.h.

◆ ClearRowsAndColumns()

template<int n, typename Symmetry, typename = void>
void operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::ClearRowsAndColumns ( Key key)
inline

Requires key is currently stored with a non-default value.

NOLINTNEXTLINE(clang-diagnostic-pre-c++20-compat)

Definition at line 156 of file attr_storage.h.

◆ GetSliceSize()

template<int n, typename Symmetry, typename = void>
template<int i>
int64_t operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::GetSliceSize ( const int64_t key_elem) const
inline

Definition at line 198 of file attr_storage.h.

◆ Slice()

template<int n, typename Symmetry, typename = void>
template<int i>
std::vector< Key > operations_research::math_opt::detail::SlicingSupport< n, Symmetry, typename >::Slice ( const int64_t key_elem) const
inline

NOLINTNEXTLINE(clang-diagnostic-pre-c++20-compat)

NOLINTNEXTLINE(clang-diagnostic-pre-c++20-compat)

Definition at line 176 of file attr_storage.h.


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