Generated on Tue May 22 09:40:47 2018 for Gecode by doxygen 1.6.3

ColoredMatrixOptions Class Reference

ColoredMatrixOptions. More...

List of all members.

Public Member Functions

 ColoredMatrixOptions (const char *n)
 Initialize options for example with name n.
void parse (int &argc, char *argv[])
 Parse options from arguments argv (number is argc).
unsigned int height (void) const
 Return height.
unsigned int width (void) const
 Return width.
unsigned int colors (void) const
 Return number of colors.
int not_all_equal (void) const
 Return how to implement not all equals.
int same_or_0 (void) const
 Return how to implement same or 0.
int distinct_except_0 (void) const
 Return how to implement distinct except 0.
int no_monochrome_rectangle (void) const
 Return how to implement distinct except 0.

Detailed Description

ColoredMatrixOptions.

Used in the ColoredMatrix example.

Definition at line 46 of file colored-matrix.cpp.


Constructor & Destructor Documentation

ColoredMatrixOptions::ColoredMatrixOptions ( const char *  n  ) 

Initialize options for example with name n.

Definition at line 457 of file colored-matrix.cpp.


Member Function Documentation

void ColoredMatrixOptions::parse ( int &  argc,
char *  argv[] 
) [inline]

Parse options from arguments argv (number is argc).

Reimplemented from Gecode::BaseOptions.

Definition at line 70 of file colored-matrix.cpp.

unsigned int ColoredMatrixOptions::height ( void   )  const [inline]

Return height.

Definition at line 75 of file colored-matrix.cpp.

unsigned int ColoredMatrixOptions::width ( void   )  const [inline]

Return width.

Definition at line 82 of file colored-matrix.cpp.

unsigned int ColoredMatrixOptions::colors ( void   )  const [inline]

Return number of colors.

Definition at line 89 of file colored-matrix.cpp.

int ColoredMatrixOptions::not_all_equal ( void   )  const [inline]

Return how to implement not all equals.

Definition at line 91 of file colored-matrix.cpp.

int ColoredMatrixOptions::same_or_0 ( void   )  const [inline]

Return how to implement same or 0.

Definition at line 93 of file colored-matrix.cpp.

int ColoredMatrixOptions::distinct_except_0 ( void   )  const [inline]

Return how to implement distinct except 0.

Definition at line 95 of file colored-matrix.cpp.

int ColoredMatrixOptions::no_monochrome_rectangle ( void   )  const [inline]

Return how to implement distinct except 0.

Definition at line 97 of file colored-matrix.cpp.


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