#include <Options.h>
Definition at line 344 of file Options.h.
◆ BoolOption()
Definition at line 349 of file Options.h.
350 :
Option(n, d, c,
"<bool>"), value(v) {}
Option(const char *name_, const char *desc_, const char *cate_, const char *type_)
◆ help()
| virtual void Minisat::BoolOption::help |
( |
bool | verbose = false | ) |
|
|
inlinevirtual |
Implements Minisat::Option.
Definition at line 370 of file Options.h.
370 {
371
372 fprintf(stderr,
" -%s, -no-%s",
name,
name);
373
375 fprintf(stderr, " ");
376
377 fprintf(stderr, " ");
378 fprintf(stderr, "(default: %s)\n", value ? "on" : "off");
379 if (verbose){
381 fprintf(stderr, "\n");
382 }
383 }
◆ operator bool()
| Minisat::BoolOption::operator bool |
( |
void | | ) |
const |
|
inline |
◆ operator bool &()
| Minisat::BoolOption::operator bool & |
( |
void | | ) |
|
|
inline |
◆ operator=()
Definition at line 354 of file Options.h.
354{ value = b; return *this; }
◆ parse()
| virtual bool Minisat::BoolOption::parse |
( |
const char * | str | ) |
|
|
inlinevirtual |
Implements Minisat::Option.
Definition at line 356 of file Options.h.
356 {
357 const char* span = str;
358
359 if (match(span, "-")){
360 bool b = !match(span, "no-");
361
363 value = b;
364 return true; }
365 }
366
367 return false;
368 }
The documentation for this class was generated from the following file: