Gecode::Matrix< A >::Slice Class Reference
A slice of a matrix. More...
#include <minimodel.hh>
Public Member Functions | |
Slice (Matrix< A > &a, int fc, int tc, int fr, int tr) | |
Construct slice. | |
Slice & | reverse (void) |
Reverses the contents of the slice, and returns a reference to it. | |
operator typename Matrix< A >::args_type (void) | |
Cast to array type. | |
operator Matrix< typename Matrix< A >::args_type > (void) | |
Cast to matrix type. |
Detailed Description
template<class A>
class Gecode::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 1302 of file minimodel.hh.
Constructor & Destructor Documentation
template<class A>
Gecode::Matrix< A >::Slice::Slice | ( | Matrix< A > & | a, | |
int | fc, | |||
int | tc, | |||
int | fr, | |||
int | tr | |||
) | [inline] |
Construct slice.
Definition at line 47 of file matrix.hpp.
Member Function Documentation
template<class A >
Matrix< A >::Slice & Gecode::Matrix< A >::Slice::reverse | ( | void | ) | [inline] |
Reverses the contents of the slice, and returns a reference to it.
Definition at line 65 of file matrix.hpp.
template<class A >
Gecode::Matrix< A >::Slice::operator typename Matrix< A >::args_type | ( | void | ) | [inline] |
Cast to array type.
Definition at line 73 of file matrix.hpp.
template<class A >
Gecode::Matrix< A >::Slice::operator Matrix< typename Matrix< A >::args_type > | ( | void | ) | [inline] |
Cast to matrix type.
Definition at line 78 of file matrix.hpp.
The documentation for this class was generated from the following files:
- gecode/minimodel.hh (Revision: 10684)
- gecode/minimodel/matrix.hpp (Revision: 9898)