| Top |
| TmplScope * | tmpl_scope_new () |
| TmplScope * | tmpl_scope_new_with_parent () |
| TmplScope * | tmpl_scope_ref () |
| void | tmpl_scope_unref () |
| TmplSymbol * | tmpl_scope_peek () |
| TmplSymbol * | tmpl_scope_get () |
| void | tmpl_scope_set () |
TmplScope *
tmpl_scope_new (void);
Creates a new scope to contain variables and custom expressions,
TmplScope *
tmpl_scope_new_with_parent (TmplScope *parent);
Creates a new scope to contain variables and custom expressions,
If parent
is set, the parent scope will be inherited.
TmplSymbol * tmpl_scope_peek (TmplScope *self,const gchar *name);
If the symbol could not be found, NULL is returned.
TmplSymbol * tmpl_scope_get (TmplScope *self,const gchar *name);
If the symbol could not be found, it will be allocated.
void tmpl_scope_set (TmplScope *self,const gchar *name,TmplSymbol *symbol);
If the symbol already exists, it will be overwritten.
If symbol
is NULL, the symbol will be removed from scope.