Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::Number Struct Reference

#include <tree.h>

Inheritance diagram for lang::Number:
Collaboration diagram for lang::Number:

Public Member Functions

 Number (double value_)
 
virtual double doubleValue () const override
 
- Public Member Functions inherited from lang::Tree
 Tree (int kind_)
 
int kind () const
 
virtual bool isAtom () const
 
virtual const SourceRangerange () const
 
virtual const std::string & stringValue () const
 
virtual bool boolValue () const
 
virtual const TreeListtrees () const
 
const TreeReftree (size_t i) const
 
virtual TreeRef map (std::function< TreeRef(TreeRef)> fn)
 
void expect (int k)
 
void expect (int k, int numsubtrees)
 

Static Public Member Functions

template<typename... Args>
static TreeRef create (Args &&...args)
 

Private Attributes

double value_
 

Additional Inherited Members

- Public Attributes inherited from lang::Tree
int kind_
 

Constructor & Destructor Documentation

lang::Number::Number ( double  value_)
inline

Member Function Documentation

template<typename... Args>
static TreeRef lang::Number::create ( Args &&...  args)
inlinestatic
virtual double lang::Number::doubleValue ( ) const
inlineoverridevirtual

Reimplemented from lang::Tree.

Member Data Documentation

double lang::Number::value_
private

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