Public Types | Public Member Functions | Public Attributes
Clasp::Model Struct Reference

Type for storing a model. More...

#include <enumerator.h>

List of all members.

Public Types

enum  Type { model_sat = 0, model_cons = 1, max_value = 1 }

Public Member Functions

bool consequences () const
 True if this model stores current (cautious/brave) consequences.
bool isTrue (Literal p) const
 True if p is true in model or part of current consequences.
ValueRep value (Var v) const
 For sat models, value of v in model. Otherwise, undefined.

Public Attributes

const SharedMinimizeDatacosts
uint64 num
uint32 opt: 1
uint32 sId:16
uint32 sym: 1
uint32 type:14
const ValueVecvalues

Detailed Description

Type for storing a model.

Definition at line 38 of file enumerator.h.


Member Enumeration Documentation

Enumerator:
model_sat 
model_cons 
max_value 

Definition at line 39 of file enumerator.h.


Member Function Documentation

bool Clasp::Model::consequences ( ) const [inline]

True if this model stores current (cautious/brave) consequences.

Definition at line 41 of file enumerator.h.

bool Clasp::Model::isTrue ( Literal  p) const [inline]

True if p is true in model or part of current consequences.

Definition at line 45 of file enumerator.h.

ValueRep Clasp::Model::value ( Var  v) const [inline]

For sat models, value of v in model. Otherwise, undefined.

Definition at line 43 of file enumerator.h.


Member Data Documentation

Definition at line 48 of file enumerator.h.

Definition at line 46 of file enumerator.h.

Definition at line 51 of file enumerator.h.

Definition at line 49 of file enumerator.h.

Definition at line 52 of file enumerator.h.

Definition at line 50 of file enumerator.h.

Definition at line 47 of file enumerator.h.


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


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41