Vcsn  2.2a
Be Rational
vcsn::ast::automaton Class Reference

#include <type-ast.hh>

Inheritance diagram for vcsn::ast::automaton:
Collaboration diagram for vcsn::ast::automaton:

Public Types

using node_t = std::shared_ptr< ast_node >
using nodes_t = std::vector< node_t >

Public Member Functions

 automaton (const std::string &type, const node_t &child)
 automaton (const std::string &type, const nodes_t &children)
const std::string & get_type () const
const nodes_tget_content () const
nodes_tget_content ()
virtual void accept (context_visitor &v) const
- Public Member Functions inherited from vcsn::ast::ast_node
virtual ~ast_node ()=default
virtual bool has_one () const

Private Attributes

std::string type_
nodes_t children_

Detailed Description

Definition at line 294 of file type-ast.hh.

Member Typedef Documentation

using vcsn::ast::automaton::node_t = std::shared_ptr<ast_node>

Definition at line 297 of file type-ast.hh.

using vcsn::ast::automaton::nodes_t = std::vector<node_t>

Definition at line 298 of file type-ast.hh.

Constructor & Destructor Documentation

vcsn::ast::automaton::automaton ( const std::string &  type,
const node_t child 

Definition at line 299 of file type-ast.hh.

vcsn::ast::automaton::automaton ( const std::string &  type,
const nodes_t children 

Definition at line 304 of file type-ast.hh.

Member Function Documentation

virtual void vcsn::ast::automaton::accept ( context_visitor v) const

Implements vcsn::ast::ast_node.

Definition at line 324 of file type-ast.hh.

const nodes_t& vcsn::ast::automaton::get_content ( ) const

Definition at line 314 of file type-ast.hh.

nodes_t& vcsn::ast::automaton::get_content ( )

Definition at line 319 of file type-ast.hh.

const std::string& vcsn::ast::automaton::get_type ( ) const

Definition at line 309 of file type-ast.hh.

Member Data Documentation

nodes_t vcsn::ast::automaton::children_

Definition at line 328 of file type-ast.hh.

std::string vcsn::ast::automaton::type_

Definition at line 327 of file type-ast.hh.

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