BooleConstant Class Reference

This class wraps a bool value, which was not converted to a boolean polynomial or monomial yet. More...

#include <BooleConstant.h>

List of all members.

Public Member Functions

 BooleConstant ()
 Default constructor.
 BooleConstant (bool value)
 constructor for bool values
 BooleConstant (int value)
 Cosntructor for integer values (nontrivial conversion).
 operator bool () const
 Convert to bool value.
BooleConstant operator! () const
 Negation operation.

Protected Attributes

const bool m_value
 Boolean value is stored as simple bool.

Detailed Description

This class wraps a bool value, which was not converted to a boolean polynomial or monomial yet.

Note:
This is mostly equivalent to the built-in type bool. Only conversion from ineger values to BooleConstant is nontrivial, as it involves the modulo 2 operation.

Constructor & Destructor Documentation

BooleConstant::BooleConstant (  )  [inline]

Default constructor.

BooleConstant::BooleConstant ( bool  value  )  [inline]

constructor for bool values

BooleConstant::BooleConstant ( int  value  )  [inline]

Cosntructor for integer values (nontrivial conversion).


Member Function Documentation

BooleConstant::operator bool (  )  const [inline]

Convert to bool value.

References m_value.

BooleConstant BooleConstant::operator! (  )  const [inline]

Negation operation.

References m_value.


Member Data Documentation

const bool BooleConstant::m_value [protected]

Boolean value is stored as simple bool.

Referenced by operator bool(), and operator!().


The documentation for this class was generated from the following file:
Generated on Tue May 4 08:22:50 2010 for PolyBoRi by  doxygen 1.6.3