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

#include <tree.h>

Inheritance diagram for lang::String:
Collaboration diagram for lang::String:

Public Member Functions

 String (const std::string &value_)
 
virtual const std::string & stringValue () const override
 
- Public Member Functions inherited from lang::Tree
 Tree (int kind_)
 
int kind () const
 
virtual bool isAtom () const
 
virtual const SourceRangerange () const
 
virtual double doubleValue () 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

std::string value_
 

Additional Inherited Members

- Public Attributes inherited from lang::Tree
int kind_
 

Constructor & Destructor Documentation

lang::String::String ( const std::string &  value_)
inline

Member Function Documentation

template<typename... Args>
static TreeRef lang::String::create ( Args &&...  args)
inlinestatic
virtual const std::string& lang::String::stringValue ( ) const
inlineoverridevirtual

Reimplemented from lang::Tree.

Member Data Documentation

std::string lang::String::value_
private

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