Generated on Mon Aug 25 11:35:53 2008 for Gecode by doxygen 1.5.6

Gecode::MiniModel::Matrix< A >::Slice Class Reference

#include <minimodel.hh>

List of all members.


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)
Slicereverse (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: