Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::dag::Primitive< T > Class Template Referenceabstract

The result of evaluating an expression. More...

#include <Primitive.h>

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

Public Member Functions

virtual std::string str () const =0
 
virtual T 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 Negate (const SourceRange &loc) const
 Unary 'not' operator.
 
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 ValuePtr And (ValuePtr &) const
 Logical and. More...
 
virtual ValuePtr Or (ValuePtr &) const
 Logical or. More...
 
virtual ValuePtr Xor (ValuePtr &) const
 Logical xor. More...
 
virtual ValuePtr Equals (ValuePtr &) const
 Equivalence. More...
 
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...
 
virtual void Accept (Visitor &) const =0
 
- 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
 

Protected Member Functions

 Primitive (const Type &t, const T &val, SourceRange src)
 
- Protected Member Functions inherited from fabrique::dag::Value
 Value (const Type &, const SourceRange &)
 

Protected Attributes

const T value_
 

Detailed Description

template<class T>
class fabrique::dag::Primitive< T >

The result of evaluating an expression.

Definition at line 48 of file Primitive.h.


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