#include <scope.h>
Public Types | |
typedef value_t::sequence_t::const_iterator | const_iterator |
typedef value_t::sequence_t::iterator | iterator |
Public Member Functions | |
value_t::sequence_t::iterator | begin () |
value_t::sequence_t::const_iterator | begin () const |
call_scope_t (scope_t &_parent, expr_t::ptr_op_t *_locus=NULL, const int _depth=0) | |
template<typename T > | |
T & | context () |
virtual void | define (const symbol_t::kind_t kind, const string &name, expr_t::ptr_op_t def) |
virtual string | description () |
bool | empty () const |
value_t::sequence_t::iterator | end () |
value_t::sequence_t::const_iterator | end () const |
template<> | |
bool | get (std::size_t index, bool convert) |
template<> | |
long | get (std::size_t index, bool convert) |
template<> | |
amount_t | get (std::size_t index, bool convert) |
template<> | |
balance_t | get (std::size_t index, bool convert) |
template<> | |
string | get (std::size_t index, bool convert) |
template<> | |
mask_t | get (std::size_t index, bool convert) |
template<> | |
date_t | get (std::size_t index, bool convert) |
template<> | |
datetime_t | get (std::size_t index, bool convert) |
template<typename T > | |
T | get (std::size_t index, bool convert=true) |
template<> | |
int | get (std::size_t index, bool) |
template<> | |
scope_t * | get (std::size_t index, bool) |
bool | has (std::size_t index) |
template<typename T > | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
template<> | |
bool | has (std::size_t index) |
virtual expr_t::ptr_op_t | lookup (const symbol_t::kind_t kind, const string &name) |
value_t & | operator[] (const std::size_t index) |
void | pop_back () |
void | push_back (const value_t &val) |
void | push_front (const value_t &val) |
value_t & | resolve (const std::size_t index, value_t::type_t context=value_t::VOID, const bool required=false) |
void | set_args (const value_t &_args) |
std::size_t | size () const |
virtual value_t::type_t | type_context () const |
virtual bool | type_required () const |
value_t & | value () |
virtual | ~call_scope_t () |
Public Attributes | |
value_t | args |
const int | depth |
expr_t::ptr_op_t * | locus |
scope_t * | parent |
void * | ptr |
Static Public Attributes | |
static scope_t * | default_scope |
static empty_scope_t * | empty_scope |
typedef value_t::sequence_t::const_iterator ledger::call_scope_t::const_iterator |
typedef value_t::sequence_t::iterator ledger::call_scope_t::iterator |
|
inlineexplicit |
Definition at line 320 of file scope.h.
References TRACE_CTOR.
|
inlinevirtual |
Definition at line 328 of file scope.h.
References TRACE_DTOR.
|
inline |
Definition at line 379 of file scope.h.
References args, and ledger::value_t::begin().
|
inline |
Definition at line 388 of file scope.h.
References args, and ledger::value_t::begin().
|
inline |
Definition at line 360 of file scope.h.
References assert, ledger::downcast(), and ptr.
|
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.
Implements ledger::scope_t.
Definition at line 294 of file scope.h.
References ledger::scope_t::description(), and ledger::child_scope_t::parent.
|
inline |
Definition at line 398 of file scope.h.
References args, and ledger::value_t::size().
Referenced by ledger::option_t< T >::operator()().
|
inline |
Definition at line 382 of file scope.h.
References args, and ledger::value_t::end().
|
inline |
Definition at line 391 of file scope.h.
References args, and ledger::value_t::end().
Definition at line 485 of file scope.h.
References ledger::value_t::as_boolean(), ledger::value_t::BOOLEAN, resolve(), and ledger::value_t::to_boolean().
Definition at line 496 of file scope.h.
References ledger::value_t::as_long(), ledger::value_t::INTEGER, resolve(), and ledger::value_t::to_long().
Definition at line 503 of file scope.h.
References ledger::value_t::AMOUNT, ledger::value_t::as_amount(), resolve(), and ledger::value_t::to_amount().
Definition at line 510 of file scope.h.
References ledger::value_t::as_balance(), ledger::value_t::BALANCE, resolve(), and ledger::value_t::to_balance().
Definition at line 517 of file scope.h.
References ledger::value_t::as_string(), resolve(), ledger::value_t::STRING, and ledger::value_t::to_string().
Definition at line 524 of file scope.h.
References ledger::value_t::as_mask(), ledger::value_t::MASK, resolve(), and ledger::value_t::to_mask().
Definition at line 531 of file scope.h.
References ledger::value_t::as_date(), ledger::value_t::DATE, resolve(), and ledger::value_t::to_date().
|
inline |
Definition at line 538 of file scope.h.
References ledger::value_t::as_datetime(), ledger::value_t::DATETIME, resolve(), and ledger::value_t::to_datetime().
Definition at line 492 of file scope.h.
References ledger::value_t::INTEGER, resolve(), and ledger::value_t::to_int().
Definition at line 559 of file scope.h.
References ledger::value_t::as_scope(), resolve(), and ledger::value_t::SCOPE.
|
inline |
Definition at line 351 of file scope.h.
References args, and ledger::value_t::size().
|
inline |
Definition at line 404 of file scope.h.
References args, ledger::value_t::BOOLEAN, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 412 of file scope.h.
References args, ledger::value_t::INTEGER, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 420 of file scope.h.
References args, ledger::value_t::INTEGER, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 428 of file scope.h.
References ledger::value_t::AMOUNT, args, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 436 of file scope.h.
References args, ledger::value_t::BALANCE, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 444 of file scope.h.
References args, ledger::value_t::is_null(), resolve(), ledger::value_t::size(), and ledger::value_t::STRING.
|
inline |
Definition at line 452 of file scope.h.
References args, ledger::value_t::DATE, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 460 of file scope.h.
References args, ledger::value_t::DATETIME, ledger::value_t::is_null(), resolve(), and ledger::value_t::size().
|
inline |
Definition at line 468 of file scope.h.
References args, ledger::value_t::is_null(), resolve(), ledger::value_t::SCOPE, and ledger::value_t::size().
|
inlinevirtualinherited |
Implements ledger::scope_t.
Reimplemented in ledger::bind_scope_t, ledger::symbol_scope_t, ledger::value_scope_t, and ledger::session_t.
Definition at line 156 of file scope.h.
References ledger::downcast(), ledger::scope_t::lookup(), and ledger::child_scope_t::parent.
Referenced by ledger::bind_scope_t::lookup(), and ledger::value_scope_t::lookup().
|
inline |
Definition at line 373 of file scope.h.
References args, and ledger::value_t::pop_back().
Definition at line 370 of file scope.h.
References args, ledger::downcast(), and ledger::value_t::push_back().
Definition at line 367 of file scope.h.
References args, ledger::downcast(), and ledger::value_t::push_front().
Referenced by ledger::option_t< T >::operator()().
value_t & ledger::call_scope_t::resolve | ( | const std::size_t | index, |
value_t::type_t | context = value_t::VOID, | ||
const bool | required = false ) |
Referenced by get(), get(), has(), operator[](), and value().
Definition at line 332 of file scope.h.
References args, and ledger::downcast().
|
inline |
Definition at line 395 of file scope.h.
References args, and ledger::value_t::size().
Referenced by ledger::option_t< T >::handler(), ledger::join_args(), and ledger::reporter< Type, handler_ptr, report_method >::operator()().
|
inlinevirtualinherited |
Reimplemented from ledger::scope_t.
Reimplemented from ledger::scope_t.
|
inline |
Definition at line 335 of file scope.h.
References args, resolve(), and ledger::value_t::size().
Referenced by ledger::reporter< Type, handler_ptr, report_method >::operator()().
value_t ledger::call_scope_t::args |
Definition at line 309 of file scope.h.
Referenced by begin(), begin(), empty(), end(), end(), has(), pop_back(), push_back(), push_front(), set_args(), size(), and value().
|
staticinherited |
Definition at line 92 of file scope.h.
Referenced by ledger::global_scope_t::pop_report(), and ledger::global_scope_t::push_report().
|
staticinherited |
expr_t::ptr_op_t* ledger::call_scope_t::locus |
|
inherited |
Definition at line 138 of file scope.h.
Referenced by ledger::child_scope_t::define(), ledger::bind_scope_t::define(), ledger::symbol_scope_t::description(), ledger::context_scope_t::description(), ledger::value_scope_t::description(), ledger::find_scope(), and ledger::child_scope_t::lookup().
|
mutable |