GRATgen
Public Member Functions | List of all members
Proof_Writer< binary > Class Template Reference

Class to handle writing of proofs. More...

Public Member Functions

 Proof_Writer (ostream &_out)
 Constructor. More...
 
void write_id (size_t id)
 Write an id.
 
void write_cnt (size_t c)
 Write a count.
 
void write_lit (lit_t l)
 Write a literal.
 
void write_Z ()
 Write a zero.
 
void write_del (size_t id)
 Write a deletion item. More...
 
void write_uprop (size_t id)
 Write a unit propagation item. More...
 
void start_ty (item_type _ty)
 Start writing of an item. More...
 
void close ()
 Stop writing the certificate and flush the output stream.
 

Detailed Description

template<bool binary>
class Proof_Writer< binary >

Class to handle writing of proofs.

This class handles writing out of proofs, and summarization of deletion and unit propagations.

Parameters
binarySet to operate in binary output mode.

Constructor & Destructor Documentation

template<bool binary>
Proof_Writer< binary >::Proof_Writer ( ostream &  _out)
inline

Constructor.

Parameters
_outOutput stream to write proof to.

Member Function Documentation

template<bool binary>
void Proof_Writer< binary >::start_ty ( item_type  _ty)
inline

Start writing of an item.

Parameters
_tyItem type
template<bool binary>
void Proof_Writer< binary >::write_del ( size_t  id)
inline

Write a deletion item.

Adjacent deletion items are automatically summarized.

template<bool binary>
void Proof_Writer< binary >::write_uprop ( size_t  id)
inline

Write a unit propagation item.

Adjacent unit propagation items are automatically summarized.


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