Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::parser::GFG Struct Reference

#include <parser.h>

Collaboration diagram for tc::parser::GFG:

Public Member Functions

 GFG ()
 
NodeaddNode (const std::string &name)
 
const EdgeaddEdge (Node &s, const std::string &transition, const Node &t)
 
 GFG (GFG &&)=default
 
 GFG (const GFG &)=delete
 
GFGoperator= (const GFG &) const =delete
 

Static Public Member Functions

static GFG makeGFG (const std::string &grammar)
 

Public Attributes

std::vector< std::unique_ptr
< Node > > 
nodes
 

Private Attributes

std::unordered_map
< std::string, int > 
name2NodeId
 

Friends

std::ostream & operator<< (std::ostream &os, const GFG &g)
 

Constructor & Destructor Documentation

tc::parser::GFG::GFG ( )
inline
tc::parser::GFG::GFG ( GFG &&  )
default
tc::parser::GFG::GFG ( const GFG )
delete

Member Function Documentation

const Edge& tc::parser::GFG::addEdge ( Node s,
const std::string &  transition,
const Node t 
)
Node& tc::parser::GFG::addNode ( const std::string &  name)
static GFG tc::parser::GFG::makeGFG ( const std::string &  grammar)
static
GFG& tc::parser::GFG::operator= ( const GFG ) const
delete

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GFG g 
)
friend

Member Data Documentation

std::unordered_map<std::string, int> tc::parser::GFG::name2NodeId
private
std::vector<std::unique_ptr<Node> > tc::parser::GFG::nodes

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