Public Member Functions | |
def | __init__ |
def | __getattr__ |
def | __getitem__ |
def | __setitem__ |
def | __setattr__ |
変数スコープ (まだきちんとした管理がされていないのでスコープを抜けてもクリアされない) このオブジェクトに対して、辞書引きを行うと、その名前で宣言された変数が取得される。 s = b.scope b.decl(b.int_, "foobar") s["foobar"] # <= foobar 変数を取得 s.foobar # 上に同じ
Definition at line 103 of file Builder.py.
def ctrump::Builder::Scope::__init__ | ( | self, | ||
g | ||||
) |
Definition at line 114 of file Builder.py.
def ctrump::Builder::Scope::__getattr__ | ( | self, | ||
name | ||||
) |
Definition at line 118 of file Builder.py.
def ctrump::Builder::Scope::__getitem__ | ( | self, | ||
name | ||||
) |
Definition at line 120 of file Builder.py.
def ctrump::Builder::Scope::__setitem__ | ( | self, | ||
name, | ||||
val | ||||
) |
Definition at line 123 of file Builder.py.
def ctrump::Builder::Scope::__setattr__ | ( | self, | ||
name, | ||||
val | ||||
) |
Definition at line 127 of file Builder.py.