Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::PermutationApplier< IndexType > Class Template Reference

#include <permutation.h>

Public Member Functions

 PermutationApplier (PermutationCycleHandler< IndexType > *cycle_handler)
 
 PermutationApplier (const PermutationApplier &)=delete
 This type is neither copyable nor movable.
 
PermutationApplieroperator= (const PermutationApplier &)=delete
 
void Apply (IndexType permutation[], int permutation_start, int permutation_end)
 

Detailed Description

template<typename IndexType>
class operations_research::PermutationApplier< IndexType >
Note
this template is not implemented in an especially performance-sensitive way. In particular, it makes multiple virtual method calls for each element of the permutation.

Definition at line 177 of file permutation.h.

Constructor & Destructor Documentation

◆ PermutationApplier() [1/2]

template<typename IndexType >
operations_research::PermutationApplier< IndexType >::PermutationApplier ( PermutationCycleHandler< IndexType > * cycle_handler)
inlineexplicit

Definition at line 179 of file permutation.h.

◆ PermutationApplier() [2/2]

template<typename IndexType >
operations_research::PermutationApplier< IndexType >::PermutationApplier ( const PermutationApplier< IndexType > & )
delete

This type is neither copyable nor movable.

Member Function Documentation

◆ Apply()

template<typename IndexType >
void operations_research::PermutationApplier< IndexType >::Apply ( IndexType permutation[],
int permutation_start,
int permutation_end )
inline

cycle_start is only for debugging.

Set current back to the start of this cycle.

Definition at line 186 of file permutation.h.

◆ operator=()

template<typename IndexType >
PermutationApplier & operations_research::PermutationApplier< IndexType >::operator= ( const PermutationApplier< IndexType > & )
delete

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