CpgInstructionFunction

CpgInstructionFunction

Synopsis

#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;

Object Hierarchy

  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionFunction
               +----CpgInstructionOperator
               +----CpgInstructionVariadicFunction

Description

Details

CPG_INSTRUCTION_FUNCTION_CONST()

#define CPG_INSTRUCTION_FUNCTION_CONST(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_FUNCTION, CpgInstructionFunction const))


struct CpgInstructionFunction

struct CpgInstructionFunction;

The instruction class for CPG_INSTRUCTION_TYPE_FUNCTION. Note: this instruction is used both for functions and for operators!


struct CpgInstructionFunctionClass

struct CpgInstructionFunctionClass {
};


cpg_instruction_function_new ()

CpgInstruction *    cpg_instruction_function_new        (guint id,
                                                         const gchar *name,
                                                         gint arguments);


cpg_instruction_function_set_id ()

void                cpg_instruction_function_set_id     (CpgInstructionFunction *func,
                                                         guint id);


cpg_instruction_function_get_id ()

guint               cpg_instruction_function_get_id     (CpgInstructionFunction *func);


cpg_instruction_function_set_name ()

void                cpg_instruction_function_set_name   (CpgInstructionFunction *func,
                                                         gchar const *name);

Set the function name.

func :

A CpgInstructionFunction

name :

The function name. [transfer none]

cpg_instruction_function_get_name ()

gchar const *       cpg_instruction_function_get_name   (CpgInstructionFunction *func);

Get the function name.

func :

A CpgInstructionFunction

Returns :

the function name. [transfer none]

cpg_instruction_function_set_arguments ()

void                cpg_instruction_function_set_arguments
                                                        (CpgInstructionFunction *func,
                                                         gint arguments);


cpg_instruction_function_get_arguments ()

gint                cpg_instruction_function_get_arguments
                                                        (CpgInstructionFunction *func);


CpgInstructionFunctionPrivate

typedef struct _CpgInstructionFunctionPrivate CpgInstructionFunctionPrivate;