OR-Tools  8.2
Permutation< IndexType >

Detailed Description

template<typename IndexType>
class operations_research::glop::Permutation< IndexType >

Definition at line 44 of file lp_data/permutation.h.

Public Member Functions

 Permutation ()
 
 Permutation (IndexType size)
 
IndexType size () const
 
bool empty () const
 
void clear ()
 
void resize (IndexType size, IndexType value)
 
void assign (IndexType size, IndexType value)
 
IndexType & operator[] (IndexType i)
 
const IndexType operator[] (IndexType i) const
 
void PopulateFromInverse (const Permutation &inverse)
 
void PopulateFromIdentity ()
 
void PopulateRandomly ()
 
bool Check () const
 
int ComputeSignature () const
 

Constructor & Destructor Documentation

◆ Permutation() [1/2]

Permutation ( )
inline

Definition at line 46 of file lp_data/permutation.h.

◆ Permutation() [2/2]

Permutation ( IndexType  size)
inlineexplicit

Definition at line 48 of file lp_data/permutation.h.

Member Function Documentation

◆ assign()

void assign ( IndexType  size,
IndexType  value 
)
inline

Definition at line 59 of file lp_data/permutation.h.

◆ Check()

bool Check

Definition at line 151 of file lp_data/permutation.h.

◆ clear()

void clear ( )
inline

Definition at line 53 of file lp_data/permutation.h.

◆ ComputeSignature()

int ComputeSignature

Definition at line 169 of file lp_data/permutation.h.

◆ empty()

bool empty ( ) const
inline

Definition at line 51 of file lp_data/permutation.h.

◆ operator[]() [1/2]

IndexType& operator[] ( IndexType  i)
inline

Definition at line 63 of file lp_data/permutation.h.

◆ operator[]() [2/2]

const IndexType operator[] ( IndexType  i) const
inline

Definition at line 65 of file lp_data/permutation.h.

◆ PopulateFromIdentity()

void PopulateFromIdentity

Definition at line 136 of file lp_data/permutation.h.

◆ PopulateFromInverse()

void PopulateFromInverse ( const Permutation< IndexType > &  inverse)

Definition at line 127 of file lp_data/permutation.h.

◆ PopulateRandomly()

void PopulateRandomly

Definition at line 145 of file lp_data/permutation.h.

◆ resize()

void resize ( IndexType  size,
IndexType  value 
)
inline

Definition at line 55 of file lp_data/permutation.h.

◆ size()

IndexType size ( ) const
inline

Definition at line 50 of file lp_data/permutation.h.


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