Generated on Tue Sep 25 2012 20:53:26 for Gecode by doxygen 1.7.5
Gecode::Slice Class Reference

A slice of a matrix. More...

#include <minimodel.hh>

List of all members.

Public Types

typedef ArrayTraits< A >::ArgsType ArgsType
 The type of the Args-array type for ValueType values.

Public Member Functions

 Slice (const Matrix< A > &a, int fc, int tc, int fr, int tr)
 Construct slice.
Slicereverse (void)
 Reverses the contents of the slice, and returns a reference to it.
 operator ArgsType (void)
 Cast to array type.
 operator Matrix< ArgsType > (void)
 Cast to matrix type.
 operator const ArgsType (void) const
 Cast to array type.
 operator const Matrix< ArgsType > (void) const
 Cast to matrix type.

Detailed Description

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 ArgsType Args-array or to a Matrix<ArgsType> depending on the context where it is used.


Member Typedef Documentation

The type of the Args-array type for ValueType values.

Definition at line 1614 of file minimodel.hh.


Constructor & Destructor Documentation

Gecode::Slice::Slice ( const 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

Slice< A > & Gecode::Slice::reverse ( void  )

Reverses the contents of the slice, and returns a reference to it.

Definition at line 66 of file matrix.hpp.

Gecode::Slice::operator ArgsType ( void  ) [inline]

Cast to array type.

Definition at line 74 of file matrix.hpp.

Gecode::Slice::operator Matrix< ArgsType > ( void  )

Cast to matrix type.

Gecode::Slice::operator const ArgsType ( void  ) const

Cast to array type.

Gecode::Slice::operator const Matrix< ArgsType > ( void  ) const

Cast to matrix type.


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