CpgInstructions

CpgInstructions

Synopsis

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

Object Hierarchy

  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionNumber
         +----CpgInstructionCustomFunction
         +----CpgInstructionFunction
         +----CpgInstructionProperty
  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionProperty
  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionFunction
               +----CpgInstructionVariadicFunction
  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionCustomFunction
  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionNumber
  CpgMiniObject
   +----CpgInstruction
         +----CpgInstructionFunction
               +----CpgInstructionVariadicFunction

Description

Details

CPG_INSTRUCTION()

#define CPG_INSTRUCTION(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION, CpgInstruction))

obj :


CPG_INSTRUCTION_CUSTOM_FUNCTION()

#define CPG_INSTRUCTION_CUSTOM_FUNCTION(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_CUSTOM_FUNCTION, CpgInstructionCustomFunction))

obj :


CPG_INSTRUCTION_FUNCTION()

#define CPG_INSTRUCTION_FUNCTION(obj)			(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_FUNCTION, CpgInstructionFunction))

obj :


CPG_INSTRUCTION_NUMBER()

#define CPG_INSTRUCTION_NUMBER(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_NUMBER, CpgInstructionNumber))

obj :


CPG_INSTRUCTION_PROPERTY()

#define CPG_INSTRUCTION_PROPERTY(obj)			(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_PROPERTY, CpgInstructionProperty))

obj :


CPG_INSTRUCTION_VARIADIC_FUNCTION()

#define CPG_INSTRUCTION_VARIADIC_FUNCTION(obj)			(G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INSTRUCTION_VARIADIC_FUNCTION, CpgInstructionVariadicFunction))

obj :


CpgInstruction

typedef struct _CpgInstruction CpgInstruction;

The base instruction. All other instructions are derived from this.


CpgInstructionProperty

typedef struct _CpgInstructionProperty CpgInstructionProperty;


CpgInstructionFunction

typedef struct _CpgInstructionFunction CpgInstructionFunction;

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


CpgInstructionCustomFunction

typedef struct _CpgInstructionCustomFunction CpgInstructionCustomFunction;

The instruction class for CPG_INSTRUCTION_TYPE_CUSTOM_FUNCTION


CpgInstructionNumber

typedef struct _CpgInstructionNumber CpgInstructionNumber;

The instruction class for CPG_INSTRUCTION_TYPE_NUMBER


CpgInstructionVariadicFunction

typedef struct _CpgInstructionVariadicFunction CpgInstructionVariadicFunction;


cpg_instruction_function_new ()

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

id :

name :

arguments :

Returns :


cpg_instruction_custom_function_new ()

CpgInstruction *    cpg_instruction_custom_function_new (CpgFunction *function,
                                                         gint arguments);

function :

arguments :

Returns :


cpg_instruction_number_new ()

CpgInstruction *    cpg_instruction_number_new          (gdouble value);

value :

Returns :


cpg_instruction_operator_new ()

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

id :

name :

arguments :

Returns :


cpg_instruction_property_new ()

CpgInstruction *    cpg_instruction_property_new        (CpgProperty *property,
                                                         CpgInstructionBinding binding);

Create a new CpgInstructionProperty.

property :

A CpgProperty. transfer none.

binding :

A CpgInstructionPropertyBinding

Returns :

A CpgInstruction

cpg_instruction_variadic_function_new ()

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

Create a new CpgInstructionVariadicFunction.

id :

The function id

name :

The function name. transfer none.

arguments :

The number of arguments

Returns :

A CpgInstruction

cpg_instruction_to_string ()

gchar *             cpg_instruction_to_string           (CpgInstruction *instruction);

instruction :

Returns :