![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 299 of file attr_storage.h.
#include <attr_storage.h>
Public Types | |
| using | Key = AttrKey<n, Symmetry> |
Public Member Functions | |
| AttrStorage () | |
| AttrStorage (const V default_value) | |
| AttrStorage (const AttrStorage &)=default | |
| AttrStorage & | operator= (const AttrStorage &)=default |
| AttrStorage (AttrStorage &&)=default | |
| AttrStorage & | operator= (AttrStorage &&)=default |
| bool | IsNonDefault (const Key key) const |
| std::optional< V > | Set (const Key key, const V value) |
| V | Get (const Key key) const |
| std::optional< V > | GetIfNonDefault (const Key key) const |
| void | Erase (const Key key) |
| std::vector< Key > | NonDefaults () const |
| template<int i> | |
| std::vector< Key > | Slice (const int64_t key_elem) const |
| template<int i> | |
| int64_t | GetSliceSize (const int64_t key_elem) const |
| int64_t | num_non_defaults () const |
| void | Clear () |
| using operations_research::math_opt::AttrStorage< V, n, Symmetry >::Key = AttrKey<n, Symmetry> |
Definition at line 301 of file attr_storage.h.
|
inlineexplicit |
Definition at line 307 of file attr_storage.h.
|
inlineexplicit |
Definition at line 311 of file attr_storage.h.
|
default |
|
default |
|
inline |
Definition at line 416 of file attr_storage.h.
|
inline |
Definition at line 366 of file attr_storage.h.
|
inline |
Definition at line 352 of file attr_storage.h.
|
inline |
Definition at line 357 of file attr_storage.h.
|
inline |
Definition at line 402 of file attr_storage.h.
|
inline |
Definition at line 320 of file attr_storage.h.
|
inline |
Definition at line 374 of file attr_storage.h.
|
inline |
Definition at line 413 of file attr_storage.h.
|
default |
|
default |
|
inline |
Definition at line 326 of file attr_storage.h.
|
inline |
Definition at line 388 of file attr_storage.h.