![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define CPG_INSTRUCTION_FUNCTION_CONST (obj) struct CpgInstructionFunction; struct CpgInstructionFunctionClass; CpgInstruction * cpg_instruction_function_new (guint id
,const gchar *name
,gint arguments
); void cpg_instruction_function_set_id (CpgInstructionFunction *func
,guint id
); guint cpg_instruction_function_get_id (CpgInstructionFunction *func
); void cpg_instruction_function_set_name (CpgInstructionFunction *func
,gchar const *name
); gchar const * cpg_instruction_function_get_name (CpgInstructionFunction *func
); void cpg_instruction_function_set_arguments (CpgInstructionFunction *func
,gint arguments
); gint cpg_instruction_function_get_arguments (CpgInstructionFunction *func
); CpgInstructionFunctionPrivate;
CpgMiniObject +----CpgInstruction +----CpgInstructionFunction +----CpgInstructionOperator +----CpgInstructionVariadicFunction
#define CPG_INSTRUCTION_FUNCTION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_FUNCTION, CpgInstructionFunction const))
struct CpgInstructionFunction;
The instruction class for CPG_INSTRUCTION_TYPE_FUNCTION
. Note: this
instruction is used both for functions and for operators!
CpgInstruction * cpg_instruction_function_new (guint id
,const gchar *name
,gint arguments
);
void cpg_instruction_function_set_id (CpgInstructionFunction *func
,guint id
);
guint cpg_instruction_function_get_id (CpgInstructionFunction *func
);
void cpg_instruction_function_set_name (CpgInstructionFunction *func
,gchar const *name
);
Set the function name.
|
A CpgInstructionFunction |
|
The function name. [transfer none] |
gchar const * cpg_instruction_function_get_name (CpgInstructionFunction *func
);
Get the function name.
|
A CpgInstructionFunction |
Returns : |
the function name. [transfer none] |
void cpg_instruction_function_set_arguments (CpgInstructionFunction *func
,gint arguments
);
gint cpg_instruction_function_get_arguments
(CpgInstructionFunction *func
);