![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define CPG_INSTRUCTION (obj) #define CPG_INSTRUCTION_CUSTOM_FUNCTION (obj) #define CPG_INSTRUCTION_FUNCTION (obj) #define CPG_INSTRUCTION_NUMBER (obj) #define CPG_INSTRUCTION_PROPERTY (obj) #define CPG_INSTRUCTION_VARIADIC_FUNCTION (obj) CpgInstruction; CpgInstructionProperty; CpgInstructionFunction; CpgInstructionCustomFunction; CpgInstructionNumber; CpgInstructionVariadicFunction; CpgInstruction * cpg_instruction_function_new (guint id
,const gchar *name
,gint arguments
); CpgInstruction * cpg_instruction_custom_function_new (CpgFunction *function
,gint arguments
); CpgInstruction * cpg_instruction_number_new (gdouble value
); CpgInstruction * cpg_instruction_operator_new (guint id
,const gchar *name
,gint arguments
); CpgInstruction * cpg_instruction_property_new (CpgProperty *property
,CpgInstructionBinding binding
); CpgInstruction * cpg_instruction_variadic_function_new (guint id
,gchar const *name
,gint arguments
); gchar * cpg_instruction_to_string (CpgInstruction *instruction
);
CpgMiniObject +----CpgInstruction +----CpgInstructionNumber +----CpgInstructionCustomFunction +----CpgInstructionFunction +----CpgInstructionProperty
CpgMiniObject +----CpgInstruction +----CpgInstructionProperty
CpgMiniObject +----CpgInstruction +----CpgInstructionFunction +----CpgInstructionVariadicFunction
CpgMiniObject +----CpgInstruction +----CpgInstructionCustomFunction
CpgMiniObject +----CpgInstruction +----CpgInstructionNumber
CpgMiniObject +----CpgInstruction +----CpgInstructionFunction +----CpgInstructionVariadicFunction
#define CPG_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION, CpgInstruction))
|
#define CPG_INSTRUCTION_CUSTOM_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_CUSTOM_FUNCTION, CpgInstructionCustomFunction))
|
#define CPG_INSTRUCTION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_FUNCTION, CpgInstructionFunction))
|
#define CPG_INSTRUCTION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_NUMBER, CpgInstructionNumber))
|
#define CPG_INSTRUCTION_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_PROPERTY, CpgInstructionProperty))
|
#define CPG_INSTRUCTION_VARIADIC_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_VARIADIC_FUNCTION, CpgInstructionVariadicFunction))
|
typedef struct _CpgInstruction CpgInstruction;
The base instruction. All other instructions are derived from this.
typedef struct _CpgInstructionFunction CpgInstructionFunction;
The instruction class for CPG_INSTRUCTION_TYPE_FUNCTION
. Note: this
instruction is used both for functions and for operators!
typedef struct _CpgInstructionCustomFunction CpgInstructionCustomFunction;
The instruction class for CPG_INSTRUCTION_TYPE_CUSTOM_FUNCTION
typedef struct _CpgInstructionNumber CpgInstructionNumber;
The instruction class for CPG_INSTRUCTION_TYPE_NUMBER
typedef struct _CpgInstructionVariadicFunction CpgInstructionVariadicFunction;
CpgInstruction * cpg_instruction_function_new (guint id
,const gchar *name
,gint arguments
);
|
|
|
|
|
|
Returns : |
CpgInstruction * cpg_instruction_custom_function_new (CpgFunction *function
,gint arguments
);
|
|
|
|
Returns : |
CpgInstruction * cpg_instruction_number_new (gdouble value
);
|
|
Returns : |
CpgInstruction * cpg_instruction_operator_new (guint id
,const gchar *name
,gint arguments
);
|
|
|
|
|
|
Returns : |
CpgInstruction * cpg_instruction_property_new (CpgProperty *property
,CpgInstructionBinding binding
);
Create a new CpgInstructionProperty.
|
A CpgProperty. transfer none. |
|
A CpgInstructionPropertyBinding |
Returns : |
A CpgInstruction |
CpgInstruction * cpg_instruction_variadic_function_new (guint id
,gchar const *name
,gint arguments
);
Create a new CpgInstructionVariadicFunction.
|
The function id |
|
The function name. transfer none. |
|
The number of arguments |
Returns : |
A CpgInstruction |
gchar * cpg_instruction_to_string (CpgInstruction *instruction
);
|
|
Returns : |