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

#include <elements.h>

Public Types

using value_type = ElementId<element_type>

Public Member Functions

 ElementIdsConstView (const Container *container ABSL_ATTRIBUTE_LIFETIME_BOUND)
size_t size () const
bool empty () const
ElementId< element_type > operator[] (size_t i) const
auto begin () const
auto end () const

Detailed Description

template<ElementType element_type, typename Container>
class operations_research::math_opt::ElementIdsConstView< element_type, Container >

An adaptor to expose a sequential container of int64_t as strongly typed element ids. Does not own the container.

Definition at line 156 of file elements.h.

Member Typedef Documentation

◆ value_type

template<ElementType element_type, typename Container>
using operations_research::math_opt::ElementIdsConstView< element_type, Container >::value_type = ElementId<element_type>

Definition at line 158 of file elements.h.

Constructor & Destructor Documentation

◆ ElementIdsConstView()

template<ElementType element_type, typename Container>
operations_research::math_opt::ElementIdsConstView< element_type, Container >::ElementIdsConstView ( const Container *container ABSL_ATTRIBUTE_LIFETIME_BOUND)
inlineexplicit

Definition at line 160 of file elements.h.

Member Function Documentation

◆ begin()

template<ElementType element_type, typename Container>
auto operations_research::math_opt::ElementIdsConstView< element_type, Container >::begin ( ) const
inline

Definition at line 171 of file elements.h.

◆ empty()

template<ElementType element_type, typename Container>
bool operations_research::math_opt::ElementIdsConstView< element_type, Container >::empty ( ) const
inline

Definition at line 165 of file elements.h.

◆ end()

template<ElementType element_type, typename Container>
auto operations_research::math_opt::ElementIdsConstView< element_type, Container >::end ( ) const
inline

Definition at line 172 of file elements.h.

◆ operator[]()

template<ElementType element_type, typename Container>
ElementId< element_type > operations_research::math_opt::ElementIdsConstView< element_type, Container >::operator[] ( size_t i) const
inline

Definition at line 167 of file elements.h.

◆ size()

template<ElementType element_type, typename Container>
size_t operations_research::math_opt::ElementIdsConstView< element_type, Container >::size ( ) const
inline

Definition at line 164 of file elements.h.


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