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

#include <type-ast.hh>

Inheritance diagram for vcsn::ast::context:
Collaboration diagram for vcsn::ast::context:

Public Member Functions

 context (std::shared_ptr< ast_node > ls, std::shared_ptr< ast_node > ws)
const std::shared_ptr< ast_nodeget_labelset () const
const std::shared_ptr< ast_nodeget_weightset () const
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::shared_ptr< ast_nodels_
std::shared_ptr< ast_nodews_

Detailed Description

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

Constructor & Destructor Documentation

vcsn::ast::context::context ( std::shared_ptr< ast_node ls,
std::shared_ptr< ast_node ws 

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

Member Function Documentation

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

Implements vcsn::ast::ast_node.

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

const std::shared_ptr<ast_node> vcsn::ast::context::get_labelset ( ) const

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

References ls_.

const std::shared_ptr<ast_node> vcsn::ast::context::get_weightset ( ) const

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

References ws_.

Member Data Documentation

std::shared_ptr<ast_node> vcsn::ast::context::ls_

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

Referenced by get_labelset(), and vcsn::ast::nullableset::get_labelset().

std::shared_ptr<ast_node> vcsn::ast::context::ws_

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

Referenced by get_weightset().

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