operations_research::SparsePermutation Class Reference

Detailed Description

Definition at line 27 of file sparse_permutation.h.

Classes

struct  Iterator
 

Public Member Functions

 SparsePermutation (int size)
 
int Size () const
 
int NumCycles () const
 
const std::vector< int > & Support () const
 
Iterator Cycle (int i) const
 
int LastElementInCycle (int i) const
 
void AddToCurrentCycle (int x)
 
void CloseCurrentCycle ()
 
void RemoveCycles (const std::vector< int > &cycle_indices)
 
std::string DebugString () const
 

Constructor & Destructor Documentation

◆ SparsePermutation()

operations_research::SparsePermutation::SparsePermutation ( int  size)
inlineexplicit

Definition at line 29 of file sparse_permutation.h.

Member Function Documentation

◆ AddToCurrentCycle()

void operations_research::SparsePermutation::AddToCurrentCycle ( int  x)
inline

Definition at line 84 of file sparse_permutation.h.

◆ CloseCurrentCycle()

void operations_research::SparsePermutation::CloseCurrentCycle ( )
inline

Definition at line 90 of file sparse_permutation.h.

◆ Cycle()

SparsePermutation::Iterator operations_research::SparsePermutation::Cycle ( int  i) const
inline

Definition at line 117 of file sparse_permutation.h.

◆ DebugString()

std::string operations_research::SparsePermutation::DebugString ( ) const

◆ LastElementInCycle()

int operations_research::SparsePermutation::LastElementInCycle ( int  i) const
inline

Definition at line 124 of file sparse_permutation.h.

◆ NumCycles()

int operations_research::SparsePermutation::NumCycles ( ) const
inline

Definition at line 33 of file sparse_permutation.h.

◆ RemoveCycles()

void operations_research::SparsePermutation::RemoveCycles ( const std::vector< int > &  cycle_indices)

◆ Size()

int operations_research::SparsePermutation::Size ( ) const
inline

Definition at line 32 of file sparse_permutation.h.

◆ Support()

const std::vector<int>& operations_research::SparsePermutation::Support ( ) const
inline

Definition at line 37 of file sparse_permutation.h.


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