Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::dag::Boolean Class Reference

A boolean (true/false) value. More...

#include <Primitive.h>

Inheritance diagram for fabrique::dag::Boolean:
fabrique::dag::Primitive< bool > fabrique::dag::Value fabrique::HasSource fabrique::Printable fabrique::Typed fabrique::Uncopyable

Public Member Functions

 Boolean (bool, const Type &, SourceRange src=SourceRange::None())
 
std::string str () const
 
virtual ValuePtr Negate (const SourceRange &src) const override
 Unary 'not' operator.
 
virtual ValuePtr And (ValuePtr &) const override
 Logical and. More...
 
virtual ValuePtr Or (ValuePtr &) const override
 Logical or. More...
 
virtual ValuePtr Xor (ValuePtr &) const override
 Logical xor. More...
 
virtual ValuePtr Equals (ValuePtr &) const override
 Equivalence. More...
 
void Accept (Visitor &v) const override
 
- Public Member Functions inherited from fabrique::dag::Primitive< bool >
virtual bool value () const
 
virtual void PrettyPrint (Bytestream &b, size_t=0) const override
 Print a human-readable representation to an output stream and return that output stream.
 
- Public Member Functions inherited from fabrique::dag::Value
virtual bool hasFields () const
 
virtual ValuePtr field (const std::string &) const
 
virtual ValuePtr Add (ValuePtr &) const
 Add this fabrique::dag::Value to a following Value. More...
 
virtual ValuePtr PrefixWith (ValuePtr &) const
 Apply the prefix operation: prefix this value with another value.
 
virtual ValuePtr ScalarAdd (ValuePtr &) const
 Add another fabrique::dag::Value scalar-wise across this Value.
 
virtual const ListasList () const
 A list representation of this value (or nullptr).
 
virtual bool canScalarAdd (const Value &) const
 This Value can add a value to itself in a scalar fashion. More...
 
- Public Member Functions inherited from fabrique::HasSource
 HasSource (const SourceRange &src)
 
const SourceRangesource () const
 
- Public Member Functions inherited from fabrique::Printable
 Printable (const Printable &)
 
Printableoperator= (const Printable &)
 
- Public Member Functions inherited from fabrique::Typed
 Typed (const Type &t)
 
virtual const Typetype () const
 

Additional Inherited Members

- Protected Member Functions inherited from fabrique::dag::Primitive< bool >
 Primitive (const Type &t, const bool &val, SourceRange src)
 
- Protected Member Functions inherited from fabrique::dag::Value
 Value (const Type &, const SourceRange &)
 
- Protected Attributes inherited from fabrique::dag::Primitive< bool >
const bool value_
 

Detailed Description

A boolean (true/false) value.

Definition at line 71 of file Primitive.h.

Member Function Documentation

ValuePtr Boolean::And ( ValuePtr &  ) const
overridevirtual

Logical and.

Reimplemented from fabrique::dag::Value.

Definition at line 60 of file Primitive.cc.

ValuePtr Boolean::Equals ( ValuePtr &  ) const
overridevirtual

Equivalence.

Reimplemented from fabrique::dag::Value.

Definition at line 96 of file Primitive.cc.

ValuePtr Boolean::Or ( ValuePtr &  ) const
overridevirtual

Logical or.

Reimplemented from fabrique::dag::Value.

Definition at line 72 of file Primitive.cc.

ValuePtr Boolean::Xor ( ValuePtr &  ) const
overridevirtual

Logical xor.

Reimplemented from fabrique::dag::Value.

Definition at line 84 of file Primitive.cc.


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