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

#include <tree.h>

Inheritance diagram for lang::Tree:
Collaboration diagram for lang::Tree:

Public Member Functions

 Tree (int kind_)
 
int kind () const
 
virtual bool isAtom () const
 
virtual const SourceRangerange () const
 
virtual double doubleValue () 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)
 

Public Attributes

int kind_
 

Constructor & Destructor Documentation

lang::Tree::Tree ( int  kind_)
inline

Member Function Documentation

virtual bool lang::Tree::boolValue ( ) const
inlinevirtual

Reimplemented in lang::Bool.

virtual double lang::Tree::doubleValue ( ) const
inlinevirtual

Reimplemented in lang::Number.

void lang::Tree::expect ( int  k)
inline
void lang::Tree::expect ( int  k,
int  numsubtrees 
)
inline
virtual bool lang::Tree::isAtom ( ) const
inlinevirtual

Reimplemented in lang::Compound.

int lang::Tree::kind ( ) const
inline
virtual TreeRef lang::Tree::map ( std::function< TreeRef(TreeRef)>  fn)
inlinevirtual

Reimplemented in lang::Compound.

virtual const SourceRange& lang::Tree::range ( ) const
inlinevirtual

Reimplemented in lang::Compound.

virtual const std::string& lang::Tree::stringValue ( ) const
inlinevirtual

Reimplemented in lang::String.

const TreeRef& lang::Tree::tree ( size_t  i) const
inline
virtual const TreeList& lang::Tree::trees ( ) const
inlinevirtual

Reimplemented in lang::Compound.

Member Data Documentation

int lang::Tree::kind_

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