Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 251 of file type-ast.hh.

Member Typedef Documentation

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

Implements vcsn::ast::ast_node.

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

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

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

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

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

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

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

Member Data Documentation

nodes_t vcsn::ast::automaton::children_
private

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

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

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


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