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

UnsignedIntOption Class Reference

#include <support.hh>

Inherits BaseOption.

List of all members.


Detailed Description

Unsigned integer option.

Definition at line 129 of file support.hh.


Public Member Functions

 UnsignedIntOption (const char *o, const char *e, unsigned int v=0)
 Initialize for option o and explanation e and default value v.
void value (unsigned int v)
 Set default value to v.
unsigned int value (void) const
 Return current option value.
virtual bool parse (int &argc, char *argv[])
 Parse option at first position.
virtual void help (void)
 Print help text.

Protected Attributes

unsigned int cur
 Current value.

Constructor & Destructor Documentation

UnsignedIntOption::UnsignedIntOption ( const char *  o,
const char *  e,
unsigned int  v = 0 
) [inline]

Initialize for option o and explanation e and default value v.

Definition at line 72 of file options.icc.


Member Function Documentation

void UnsignedIntOption::value ( unsigned int  v  )  [inline]

Set default value to v.

Definition at line 76 of file options.icc.

unsigned int UnsignedIntOption::value ( void   )  const [inline]

Return current option value.

Definition at line 80 of file options.icc.

bool UnsignedIntOption::parse ( int &  argc,
char *  argv[] 
) [virtual]

Parse option at first position.

Implements BaseOption.

Definition at line 116 of file options.cc.

void UnsignedIntOption::help ( void   )  [virtual]

Print help text.

Implements BaseOption.

Definition at line 132 of file options.cc.


Member Data Documentation

unsigned int UnsignedIntOption::cur [protected]

Current value.

Definition at line 131 of file support.hh.


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