Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::CompressedStrongVector< EntryIndex, Index > Class Template Reference

Detailed Description

template<typename EntryIndex, typename Index>
class operations_research::CompressedStrongVector< EntryIndex, Index >

Definition at line 103 of file base_types.h.

#include <base_types.h>

Public Types

using iterator = CompressedStrongVectorIterator<EntryIndex, Index>
using const_iterator = CompressedStrongVectorIterator<EntryIndex, Index>
using value_type = Index

Public Member Functions

 CompressedStrongVector ()
 CompressedStrongVector (const util_intops::StrongVector< EntryIndex, Index > &strong_vector)
 CompressedStrongVector (absl::Span< const Index > vec)
void push_back (Index x)
const std::vector< uint8_t > & byte_stream () const
size_t size_in_bytes () const
bool empty () const
void Reserve (size_t n)
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const

Member Typedef Documentation

◆ const_iterator

template<typename EntryIndex, typename Index>
using operations_research::CompressedStrongVector< EntryIndex, Index >::const_iterator = CompressedStrongVectorIterator<EntryIndex, Index>

Definition at line 106 of file base_types.h.

◆ iterator

template<typename EntryIndex, typename Index>
using operations_research::CompressedStrongVector< EntryIndex, Index >::iterator = CompressedStrongVectorIterator<EntryIndex, Index>

Definition at line 105 of file base_types.h.

◆ value_type

template<typename EntryIndex, typename Index>
using operations_research::CompressedStrongVector< EntryIndex, Index >::value_type = Index

Definition at line 107 of file base_types.h.

Constructor & Destructor Documentation

◆ CompressedStrongVector() [1/3]

template<typename EntryIndex, typename Index>
operations_research::CompressedStrongVector< EntryIndex, Index >::CompressedStrongVector ( )
inlineexplicit

Definition at line 109 of file base_types.h.

◆ CompressedStrongVector() [2/3]

template<typename EntryIndex, typename Index>
operations_research::CompressedStrongVector< EntryIndex, Index >::CompressedStrongVector ( const util_intops::StrongVector< EntryIndex, Index > & strong_vector)
inlineexplicit

Definition at line 115 of file base_types.h.

◆ CompressedStrongVector() [3/3]

template<typename EntryIndex, typename Index>
operations_research::CompressedStrongVector< EntryIndex, Index >::CompressedStrongVector ( absl::Span< const Index > vec)
inlineexplicit

Definition at line 123 of file base_types.h.

Member Function Documentation

◆ begin() [1/2]

template<typename EntryIndex, typename Index>
iterator operations_research::CompressedStrongVector< EntryIndex, Index >::begin ( )
inline

Definition at line 145 of file base_types.h.

◆ begin() [2/2]

template<typename EntryIndex, typename Index>
const_iterator operations_research::CompressedStrongVector< EntryIndex, Index >::begin ( ) const
inline

Definition at line 149 of file base_types.h.

◆ byte_stream()

template<typename EntryIndex, typename Index>
const std::vector< uint8_t > & operations_research::CompressedStrongVector< EntryIndex, Index >::byte_stream ( ) const
inline

Definition at line 134 of file base_types.h.

◆ empty()

template<typename EntryIndex, typename Index>
bool operations_research::CompressedStrongVector< EntryIndex, Index >::empty ( ) const
inline

Definition at line 139 of file base_types.h.

◆ end() [1/2]

template<typename EntryIndex, typename Index>
iterator operations_research::CompressedStrongVector< EntryIndex, Index >::end ( )
inline

Definition at line 146 of file base_types.h.

◆ end() [2/2]

template<typename EntryIndex, typename Index>
const_iterator operations_research::CompressedStrongVector< EntryIndex, Index >::end ( ) const
inline

Definition at line 150 of file base_types.h.

◆ push_back()

template<typename EntryIndex, typename Index>
void operations_research::CompressedStrongVector< EntryIndex, Index >::push_back ( Index x)
inline

Definition at line 131 of file base_types.h.

◆ Reserve()

template<typename EntryIndex, typename Index>
void operations_research::CompressedStrongVector< EntryIndex, Index >::Reserve ( size_t n)
inline

Definition at line 142 of file base_types.h.

◆ size_in_bytes()

template<typename EntryIndex, typename Index>
size_t operations_research::CompressedStrongVector< EntryIndex, Index >::size_in_bytes ( ) const
inline

Definition at line 137 of file base_types.h.


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