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

Detailed Description

Definition at line 107 of file element_storage.h.

#include <element_storage.h>

Public Member Functions

 ElementStorage ()
int64_t Add (const absl::string_view name)
bool Erase (const int64_t id)
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
void EnsureNextIdAtLeast (const int64_t id)

Constructor & Destructor Documentation

◆ ElementStorage()

operations_research::math_opt::ElementStorage::ElementStorage ( )
inline

Definition at line 127 of file element_storage.h.

Member Function Documentation

◆ Add()

int64_t operations_research::math_opt::ElementStorage::Add ( const absl::string_view name)
inline

Definition at line 130 of file element_storage.h.

◆ AllIds()

std::vector< int64_t > operations_research::math_opt::ElementStorage::AllIds ( ) const

Definition at line 52 of file element_storage.cc.

◆ EnsureNextIdAtLeast()

void operations_research::math_opt::ElementStorage::EnsureNextIdAtLeast ( const int64_t id)
inline

Definition at line 170 of file element_storage.h.

◆ Erase()

bool operations_research::math_opt::ElementStorage::Erase ( const int64_t id)
inline

Definition at line 137 of file element_storage.h.

◆ Exists()

bool operations_research::math_opt::ElementStorage::Exists ( const int64_t id) const
inline

Definition at line 140 of file element_storage.h.

◆ GetName()

absl::StatusOr< absl::string_view > operations_research::math_opt::ElementStorage::GetName ( const int64_t id) const
inline

Definition at line 146 of file element_storage.h.

◆ next_id()

int64_t operations_research::math_opt::ElementStorage::next_id ( ) const
inline

Definition at line 153 of file element_storage.h.

◆ size()

int64_t operations_research::math_opt::ElementStorage::size ( ) const
inline

Definition at line 162 of file element_storage.h.


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