OKlibrary  0.2.1.6
OKlib::Concepts::Literals< Lit > Class Template Reference

Basic literals concept. More...

#include <Literals.hpp>

List of all members.

Public Types

typedef
OKlib::Literals::traits::var_type
< Lit >::type 
var_type
typedef
OKlib::Literals::traits::cond_type
< Lit >::type 
cond_type

Public Member Functions

void constraints ()
void dummy_use (const Lit &l)

Public Attributes

Lit l
const Lit lc
const var_type v
const cond_type c

Detailed Description

template<typename Lit>
class OKlib::Concepts::Literals< Lit >

Basic literals concept.

Literals are (conceptually) just pairs of variables and atomic conditions, where the atomic condition is never always true and never always false.

So we have associated type traits

and via

By Literals::set_cond(x, condition) we can set the condition in literal x, while from a variable a literal can be constructed.

Since built-in types can model literals, for literals in general the initialisation behaviour of built-in types must be assumed.

Definition at line 61 of file Literals.hpp.


Member Typedef Documentation

template<typename Lit >
typedef OKlib::Literals::traits::cond_type<Lit>::type OKlib::Concepts::Literals< Lit >::cond_type

Definition at line 64 of file Literals.hpp.

template<typename Lit >
typedef OKlib::Literals::traits::var_type<Lit>::type OKlib::Concepts::Literals< Lit >::var_type

Definition at line 63 of file Literals.hpp.


Member Function Documentation

template<typename Lit >
void OKlib::Concepts::Literals< Lit >::dummy_use ( const Lit &  l) [inline]

Definition at line 97 of file Literals.hpp.

Referenced by OKlib::Concepts::Literals< Lit >::constraints().


Member Data Documentation

template<typename Lit >
const cond_type OKlib::Concepts::Literals< Lit >::c

Definition at line 96 of file Literals.hpp.

Referenced by OKlib::Concepts::Literals< Lit >::constraints().

template<typename Lit >
Lit OKlib::Concepts::Literals< Lit >::l

Definition at line 93 of file Literals.hpp.

Referenced by OKlib::Concepts::Literals< Lit >::constraints().

template<typename Lit >
const Lit OKlib::Concepts::Literals< Lit >::lc

Definition at line 94 of file Literals.hpp.

Referenced by OKlib::Concepts::Literals< Lit >::constraints().

template<typename Lit >
const var_type OKlib::Concepts::Literals< Lit >::v

Definition at line 95 of file Literals.hpp.

Referenced by OKlib::Concepts::Literals< Lit >::constraints().


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