Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::StrictITISpan< IntType, T > Class Template Reference

#include <lp_types.h>

Public Types

using IndexType = IntType
 
using reference = T&
 
using value_type = T
 

Public Member Functions

 StrictITISpan (T *data, IntType size)
 
reference operator[] (IntType i) const
 
IntType size () const
 
auto begin () const
 
auto end () const
 

Detailed Description

template<typename IntType, typename T>
class operations_research::glop::StrictITISpan< IntType, T >

A span of T, indexed by a strict int type IntType. Intended to be passed by value. See b/259677543.

Definition at line 258 of file lp_types.h.

Member Typedef Documentation

◆ IndexType

template<typename IntType , typename T >
using operations_research::glop::StrictITISpan< IntType, T >::IndexType = IntType

Definition at line 260 of file lp_types.h.

◆ reference

template<typename IntType , typename T >
using operations_research::glop::StrictITISpan< IntType, T >::reference = T&

Definition at line 261 of file lp_types.h.

◆ value_type

template<typename IntType , typename T >
using operations_research::glop::StrictITISpan< IntType, T >::value_type = T

Definition at line 262 of file lp_types.h.

Constructor & Destructor Documentation

◆ StrictITISpan()

template<typename IntType , typename T >
operations_research::glop::StrictITISpan< IntType, T >::StrictITISpan ( T * data,
IntType size )
inline

Definition at line 264 of file lp_types.h.

Member Function Documentation

◆ begin()

template<typename IntType , typename T >
auto operations_research::glop::StrictITISpan< IntType, T >::begin ( ) const
inline
Todo
(user): This should probably be a strictly typed iterator too, but StrongVector::begin() already suffers from this problem.

Definition at line 274 of file lp_types.h.

◆ end()

template<typename IntType , typename T >
auto operations_research::glop::StrictITISpan< IntType, T >::end ( ) const
inline

Definition at line 275 of file lp_types.h.

◆ operator[]()

template<typename IntType , typename T >
reference operations_research::glop::StrictITISpan< IntType, T >::operator[] ( IntType i) const
inline

Definition at line 266 of file lp_types.h.

◆ size()

template<typename IntType , typename T >
IntType operations_research::glop::StrictITISpan< IntType, T >::size ( ) const
inline

Definition at line 270 of file lp_types.h.


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