Clingo
Loading...
Searching...
No Matches
CppClingo::Ground::LitBool Class Reference

A literal representing a Boolean. More...

#include <literal.hh>

Inheritance diagram for CppClingo::Ground::LitBool:
CppClingo::Ground::LitCheck CppClingo::Ground::Lit

Public Member Functions

 LitBool (bool value)
 Construct the literal.
 
- Public Member Functions inherited from CppClingo::Ground::Lit
virtual ~Lit ()=default
 Destroy the literal.
 
void vars (VariableSet &vars, VarSelectMode mode) const
 Get the variables in the predicate.
 
auto domain () const -> bool
 Returns true if matching literals are always fact.
 
auto single_pass () const -> bool
 Returns true if the literal can be grounded in a single pass.
 
auto matcher (std::pmr::monotonic_buffer_resource &mbr, MatcherType type, std::vector< bool > const &bound) -> std::pair< UMatcher, std::optional< size_t > >
 Returns true if the base of the literal is complete at the time of grounding.
 
auto score (std::vector< bool > const &bound) const -> double
 Compute a score used to order rule bodies.
 
auto output (EvalContext const &ctx, OutputLit &out) const -> bool
 Output the literal.
 
auto copy () const -> ULit
 Copy the literal.
 
auto hash () const -> size_t
 Compute a hash for the literal.
 

Detailed Description

A literal representing a Boolean.


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