#include <element_storage.h>
|
int64_t | Add (const absl::string_view name) |
bool | exists (const int64_t id) const |
absl::StatusOr< absl::string_view > | GetName (const int64_t id) const |
int64_t | next_id () const |
std::vector< int64_t > | AllIds () const |
int64_t | size () const |
A dense element storage, for use when no elements have been erased. Same API as ElementStorage, but no deletion.
- Todo
- (b/369972336): We should stay in dense mode if we have a small percentage of deletions.
Definition at line 37 of file element_storage.h.
◆ Add()
int64_t operations_research::math_opt::detail::DenseElementStorage::Add |
( |
const absl::string_view | name | ) |
|
|
inline |
◆ AllIds()
std::vector< int64_t > operations_research::math_opt::detail::DenseElementStorage::AllIds |
( |
| ) |
const |
◆ exists()
bool operations_research::math_opt::detail::DenseElementStorage::exists |
( |
const int64_t | id | ) |
const |
|
inline |
◆ GetName()
absl::StatusOr< absl::string_view > operations_research::math_opt::detail::DenseElementStorage::GetName |
( |
const int64_t | id | ) |
const |
|
inline |
◆ next_id()
int64_t operations_research::math_opt::detail::DenseElementStorage::next_id |
( |
| ) |
const |
|
inline |
◆ size()
int64_t operations_research::math_opt::detail::DenseElementStorage::size |
( |
| ) |
const |
|
inline |
◆ SparseElementStorage
The documentation for this class was generated from the following files: