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

#include <tree.h>

Inheritance diagram for lang::Compound:
Collaboration diagram for lang::Compound:

Public Member Functions

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

Static Public Member Functions

static TreeRef create (int kind, const SourceRange &range_, TreeList &&trees_)
 

Private Attributes

SourceRange range_
 
TreeList trees_
 

Additional Inherited Members

- Public Attributes inherited from lang::Tree
int kind_
 

Constructor & Destructor Documentation

lang::Compound::Compound ( int  kind,
const SourceRange range_ 
)
inline
lang::Compound::Compound ( int  kind,
const SourceRange range_,
TreeList &&  trees_ 
)
inline

Member Function Documentation

static TreeRef lang::Compound::create ( int  kind,
const SourceRange range_,
TreeList &&  trees_ 
)
inlinestatic
virtual bool lang::Compound::isAtom ( ) const
inlineoverridevirtual

Reimplemented from lang::Tree.

virtual TreeRef lang::Compound::map ( std::function< TreeRef(TreeRef)>  fn)
inlineoverridevirtual

Reimplemented from lang::Tree.

const SourceRange& lang::Compound::range ( ) const
inlineoverridevirtual

Reimplemented from lang::Tree.

virtual const TreeList& lang::Compound::trees ( ) const
inlineoverridevirtual

Reimplemented from lang::Tree.

Member Data Documentation

SourceRange lang::Compound::range_
private
TreeList lang::Compound::trees_
private

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