Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::ElementIdsVector< element_type > Class Template Referencefinal

#include <elements.h>

Public Types

using Container = std::vector<int64_t>
using View = ElementIdsConstView<element_type, Container>
using value_type = typename View::value_type

Public Member Functions

 ElementIdsVector (Container &&container)
 ElementIdsVector (ElementIdsVector &&) noexcept=default
 This is move-constructible only.
View view () const
size_t size () const
bool empty () const
ElementId< element_type > operator[] (size_t i) const
auto begin () const
auto end () const
 ElementIdsVector (const ElementIdsVector &container)=delete
ElementIdsVectoroperator= (const ElementIdsVector &container)=delete
ElementIdsVectoroperator= (ElementIdsVector &&container)=delete
Containercontainer ()
 Provides access to the untyped container.

Detailed Description

template<ElementType element_type>
class operations_research::math_opt::ElementIdsVector< element_type >

A container that exposes a container of int64_t as strongly typed element ids.

Definition at line 216 of file elements.h.

Member Typedef Documentation

◆ Container

template<ElementType element_type>
using operations_research::math_opt::ElementIdsVector< element_type >::Container = std::vector<int64_t>

Definition at line 218 of file elements.h.

◆ value_type

template<ElementType element_type>
using operations_research::math_opt::ElementIdsVector< element_type >::value_type = typename View::value_type

Definition at line 220 of file elements.h.

◆ View

template<ElementType element_type>
using operations_research::math_opt::ElementIdsVector< element_type >::View = ElementIdsConstView<element_type, Container>

Definition at line 219 of file elements.h.

Constructor & Destructor Documentation

◆ ElementIdsVector() [1/3]

template<ElementType element_type>
operations_research::math_opt::ElementIdsVector< element_type >::ElementIdsVector ( Container && container)
inlineexplicit

Definition at line 222 of file elements.h.

◆ ElementIdsVector() [2/3]

template<ElementType element_type>
operations_research::math_opt::ElementIdsVector< element_type >::ElementIdsVector ( ElementIdsVector< element_type > && )
defaultnoexcept

This is move-constructible only.

◆ ElementIdsVector() [3/3]

template<ElementType element_type>
operations_research::math_opt::ElementIdsVector< element_type >::ElementIdsVector ( const ElementIdsVector< element_type > & container)
delete

Member Function Documentation

◆ begin()

template<ElementType element_type>
auto operations_research::math_opt::ElementIdsVector< element_type >::begin ( ) const
inline

Definition at line 237 of file elements.h.

◆ container()

template<ElementType element_type>
Container & operations_research::math_opt::ElementIdsVector< element_type >::container ( )
inline

Provides access to the untyped container.

Definition at line 245 of file elements.h.

◆ empty()

template<ElementType element_type>
bool operations_research::math_opt::ElementIdsVector< element_type >::empty ( ) const
inline

Definition at line 231 of file elements.h.

◆ end()

template<ElementType element_type>
auto operations_research::math_opt::ElementIdsVector< element_type >::end ( ) const
inline

Definition at line 238 of file elements.h.

◆ operator=() [1/2]

template<ElementType element_type>
ElementIdsVector & operations_research::math_opt::ElementIdsVector< element_type >::operator= ( const ElementIdsVector< element_type > & container)
delete

◆ operator=() [2/2]

template<ElementType element_type>
ElementIdsVector & operations_research::math_opt::ElementIdsVector< element_type >::operator= ( ElementIdsVector< element_type > && container)
delete

◆ operator[]()

template<ElementType element_type>
ElementId< element_type > operations_research::math_opt::ElementIdsVector< element_type >::operator[] ( size_t i) const
inline

Definition at line 233 of file elements.h.

◆ size()

template<ElementType element_type>
size_t operations_research::math_opt::ElementIdsVector< element_type >::size ( ) const
inline

Definition at line 230 of file elements.h.

◆ view()

template<ElementType element_type>
View operations_research::math_opt::ElementIdsVector< element_type >::view ( ) const
inline

Definition at line 228 of file elements.h.


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