Gecode::MiniModel::Matrix< A >::Slice Class Reference
#include <minimodel.hh>
Detailed Description
template<class A>
class Gecode::MiniModel::Matrix< A >::Slice
A slice of a matrix.
This class represents a slice of the matrix. It is used to get context-dependent behaviour. The slice will be automatically converted to an args_type Args-array or to a Matrix<args_type> depending on the context where it is used.
Definition at line 1109 of file minimodel.hh.
Public Member Functions | |
Slice (Matrix< A > &a, unsigned int fc, unsigned int tc, unsigned int fr, unsigned int tr) | |
Slice & | reverse (void) |
Reverses the contents of the slice, and returns a reference to it. | |
operator args_type (void) | |
operator Matrix< args_type > (void) |
Constructor & Destructor Documentation
template<class A>
Gecode::MiniModel::Matrix< A >::Slice::Slice | ( | Matrix< A > & | a, | |
unsigned int | fc, | |||
unsigned int | tc, | |||
unsigned int | fr, | |||
unsigned int | tr | |||
) | [inline] |
Definition at line 47 of file matrix.icc.
Member Function Documentation
template<class A>
Matrix< A >::Slice & Gecode::MiniModel::Matrix< A >::Slice::reverse | ( | void | ) | [inline] |
Reverses the contents of the slice, and returns a reference to it.
Definition at line 68 of file matrix.icc.
template<class A>
Gecode::MiniModel::Matrix< A >::Slice::operator args_type | ( | void | ) |
template<class A>
Gecode::MiniModel::Matrix< A >::Slice::operator Matrix< args_type > | ( | void | ) |
The documentation for this class was generated from the following files:
- gecode/minimodel.hh (Revision: 7354)
- gecode/minimodel/matrix.icc (Revision: 4790)