omc::Permutation Class Reference

List of all members.

Public Member Functions

 Permutation (size_t)
 Permutation (std::vector< index_t > &)
index_t & operator[] (index_t)
index_t operator[] (index_t) const
index_t operator() (index_t) const
bool next ()

Protected Attributes

std::vector< index_t > m_Perm

Friends

std::ostream & operator<< (std::ostream &, const Permutation &)

Constructor & Destructor Documentation

omc::Permutation::Permutation ( size_t  n  )  [inline]

Constructor: identity permutation of size n.

omc::Permutation::Permutation ( std::vector< index_t > &  Perm  )  [inline]

Constructor: permutation given by a vector.


Member Function Documentation

bool omc::Permutation::next (  )  [inline]

Generate the next lexicographically greater permutation.

index_t omc::Permutation::operator() ( index_t  i  )  const [inline]

Permute.

index_t omc::Permutation::operator[] ( index_t  i  )  const [inline]

Operator [] for reading.

index_t & omc::Permutation::operator[] ( index_t  i  )  [inline]

Operater [] for writing.


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

Generated on Fri Feb 12 16:10:24 2010 by  doxygen 1.6.1