Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::ThreadSafeIdMap< V > Class Template Referenceabstract

Detailed Description

template<typename V>
class operations_research::math_opt::ThreadSafeIdMap< V >

Definition at line 63 of file thread_safe_id_map.h.

#include <thread_safe_id_map.h>

Public Member Functions

 ThreadSafeIdMap ()=default
absl::Span< const std::pair< int64_t, std::unique_ptr< V > > > UpdateAndGetAll ()
std::vector< std::pair< int64_t, V * > > GetAll () const
V * UpdateAndGet (int64_t id)
V * Get (int64_t id) const
int64_t Insert (std::unique_ptr< V > value)
bool Erase (int64_t key)
int64_t Size () const

Constructor & Destructor Documentation

◆ ThreadSafeIdMap()

template<typename V>
operations_research::math_opt::ThreadSafeIdMap< V >::ThreadSafeIdMap ( )
default

Member Function Documentation

◆ Erase()

template<typename V>
bool operations_research::math_opt::ThreadSafeIdMap< V >::Erase ( int64_t key)

Definition at line 233 of file thread_safe_id_map.h.

◆ Get()

template<typename V>
V * operations_research::math_opt::ThreadSafeIdMap< V >::Get ( int64_t id) const

Definition at line 173 of file thread_safe_id_map.h.

◆ GetAll()

template<typename V>
std::vector< std::pair< int64_t, V * > > operations_research::math_opt::ThreadSafeIdMap< V >::GetAll ( ) const

Definition at line 192 of file thread_safe_id_map.h.

◆ Insert()

template<typename V>
int64_t operations_research::math_opt::ThreadSafeIdMap< V >::Insert ( std::unique_ptr< V > value)

Definition at line 223 of file thread_safe_id_map.h.

◆ Size()

template<typename V>
int64_t operations_research::math_opt::ThreadSafeIdMap< V >::Size ( ) const

Definition at line 166 of file thread_safe_id_map.h.

◆ UpdateAndGet()

template<typename V>
V * operations_research::math_opt::ThreadSafeIdMap< V >::UpdateAndGet ( int64_t id)

Definition at line 209 of file thread_safe_id_map.h.

◆ UpdateAndGetAll()

template<typename V>
absl::Span< const std::pair< int64_t, std::unique_ptr< V > > > operations_research::math_opt::ThreadSafeIdMap< V >::UpdateAndGetAll ( )

Definition at line 157 of file thread_safe_id_map.h.


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