Loading...
Searching...
No Matches
ledger::value_scope_t Class Reference

#include <scope.h>

+ Inheritance diagram for ledger::value_scope_t:
+ Collaboration diagram for ledger::value_scope_t:

Public Member Functions

virtual void define (const symbol_t::kind_t kind, const string &name, expr_t::ptr_op_t def)
 
virtual string description ()
 
virtual expr_t::ptr_op_t lookup (const symbol_t::kind_t kind, const string &name)
 
virtual value_t::type_t type_context () const
 
virtual bool type_required () const
 
 value_scope_t (scope_t &_parent, const value_t &_value)
 
 ~value_scope_t () throw ()
 

Public Attributes

scope_tparent
 

Static Public Attributes

static scope_tdefault_scope
 
static empty_scope_tempty_scope
 

Detailed Description

Definition at line 583 of file scope.h.

Constructor & Destructor Documentation

◆ value_scope_t()

ledger::value_scope_t::value_scope_t ( scope_t & _parent,
const value_t & _value )
inline

Definition at line 592 of file scope.h.

References TRACE_CTOR.

◆ ~value_scope_t()

ledger::value_scope_t::~value_scope_t ( )
throw ( )
inline

Definition at line 596 of file scope.h.

References TRACE_DTOR.

Member Function Documentation

◆ define()

virtual void ledger::child_scope_t::define ( const symbol_t::kind_t kind,
const string & name,
expr_t::ptr_op_t def )
inlinevirtualinherited

Reimplemented from ledger::scope_t.

Reimplemented in ledger::bind_scope_t, and ledger::symbol_scope_t.

Definition at line 150 of file scope.h.

References ledger::scope_t::define(), ledger::downcast(), and ledger::child_scope_t::parent.

+ Here is the call graph for this function:

◆ description()

virtual string ledger::value_scope_t::description ( )
inlinevirtual

Implements ledger::scope_t.

Definition at line 600 of file scope.h.

References ledger::scope_t::description(), and ledger::child_scope_t::parent.

+ Here is the call graph for this function:

◆ lookup()

virtual expr_t::ptr_op_t ledger::value_scope_t::lookup ( const symbol_t::kind_t kind,
const string & name )
inlinevirtual

Reimplemented from ledger::child_scope_t.

Definition at line 604 of file scope.h.

References ledger::downcast(), ledger::symbol_t::FUNCTION, ledger::child_scope_t::lookup(), and MAKE_FUNCTOR.

+ Here is the call graph for this function:

◆ type_context()

virtual value_t::type_t ledger::scope_t::type_context ( ) const
inlinevirtualinherited

Reimplemented in ledger::context_scope_t.

Definition at line 109 of file scope.h.

References ledger::value_t::VOID.

◆ type_required()

virtual bool ledger::scope_t::type_required ( ) const
inlinevirtualinherited

Reimplemented in ledger::context_scope_t.

Definition at line 112 of file scope.h.

Member Data Documentation

◆ default_scope

scope_t* ledger::scope_t::default_scope
staticinherited

◆ empty_scope

empty_scope_t* ledger::scope_t::empty_scope
staticinherited

Definition at line 93 of file scope.h.

◆ parent


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