finitediff
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PermutationIdexoutOfRangeException Class Reference
Inheritance diagram for PermutationIdexoutOfRangeException:
Inheritance graph
[legend]
Collaboration diagram for PermutationIdexoutOfRangeException:
Collaboration graph
[legend]

Public Member Functions

 PermutationIdexoutOfRangeException (const unsigned int index, const unsigned int size)
 
virtual const char * what () const throw ()
 

Private Member Functions

std::string message (const unsigned int index, const unsigned int size) const
 

Private Attributes

std::string _msg
 

Detailed Description

This exception is raised when one try to access to an element out of range of a permutation

// populate 'perm'
unsigned int k=perm(5) // throws

The constructor of Mpermutation from std::array<unsigned int,tp_size> also throws when one element of the array is larger than tp_size.

Constructor & Destructor Documentation

PermutationIdexoutOfRangeException::PermutationIdexoutOfRangeException ( const unsigned int  index,
const unsigned int  size 
)
inline

Member Function Documentation

std::string PermutationIdexoutOfRangeException::message ( const unsigned int  index,
const unsigned int  size 
) const
inlineprivate
virtual const char* PermutationIdexoutOfRangeException::what ( ) const
throw (
)
inlinevirtual

Member Data Documentation

std::string PermutationIdexoutOfRangeException::_msg
private

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