![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define CPG_COMPILE_CONTEXT_CONST (obj) struct CpgCompileContext; struct CpgCompileContextClass; CpgCompileContext * cpg_compile_context_new (void
); void cpg_compile_context_save (CpgCompileContext *context
); void cpg_compile_context_restore (CpgCompileContext *context
); void cpg_compile_context_prepend_object (CpgCompileContext *context
); void cpg_compile_context_append_object (CpgCompileContext *context
); void cpg_compile_context_prepend_function (CpgCompileContext *context
); void cpg_compile_context_append_function (CpgCompileContext *context
); const GSList * cpg_compile_context_get_objects (CpgCompileContext *context
); const GSList * cpg_compile_context_get_functions (CpgCompileContext *context
); CpgCompileContextPrivate;
The compile context provides information for compiling expressions such as the available user defined functions and the objects that can be used to lookup properties used in the expression.
#define CPG_COMPILE_CONTEXT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_COMPILE_CONTEXT, CpgCompileContext const))
CpgCompileContext * cpg_compile_context_new (void
);
Create a new compile context.
Returns : |
A CpgCompileContext |
void cpg_compile_context_save (CpgCompileContext *context
);
Save the current state of the compile context. You can use this to alter the context and restore it to its previous state later. Calls to this function can be nested, but care should be taken to match each call with cpg_compile_context_restore.
|
A CpgCompileContext |
void cpg_compile_context_restore (CpgCompileContext *context
);
Restore the previous state of the compile context. Each call to restore must be matched by a previous call to cpg_compile_context_save.
|
A CpgCompileContext |
void cpg_compile_context_prepend_object (CpgCompileContext *context
);
Prepend a context object to the list of context objects.
|
A CpgCompileContext |
void cpg_compile_context_append_object (CpgCompileContext *context
);
Append a context object to the list of context objects.
|
A CpgCompileContext |
void cpg_compile_context_prepend_function
(CpgCompileContext *context
);
Prepend a context function to the list of context functions.
|
A CpgCompileContext |
void cpg_compile_context_append_function (CpgCompileContext *context
);
Append a context function to the list of context functions.
|
A CpgCompileContext |
const GSList * cpg_compile_context_get_objects (CpgCompileContext *context
);
Get the list of objects to be considered as context for compiling expressions. This returns the internally used list which should not be modified or freed.
|
A CpgCompileContext |
Returns : |
A GSList of CpgObject. [element-type CpgObject][transfer none] |
const GSList * cpg_compile_context_get_functions (CpgCompileContext *context
);
Get the list of custom user functions. This returns the internally used list which should not be modified or freed.
|
A CpgCompileContext |
Returns : |
A GSList of CpgFunction. [element-type CpgFunction][transfer none] |