mruby/c VM Source Code release 3.4
Loading...
Searching...
No Matches
RClass Struct Reference

Class object. More...

#include <class.h>

Inheritance diagram for RClass:
Collaboration diagram for RClass:

Data Fields

mrbc_sym sym_id
 class name's symbol ID
unsigned int flag_builtin: 1
 is built-in class? (= 0)
unsigned int flag_module: 1
 is module?
unsigned int flag_alias: 1
 is module alias?
uint8_t num_builtin_method
 num of built-in method.
struct RClasssuper
 pointer to super class.
union { 
   struct RMethod *   method_link 
 pointer to method link. More...
   struct RClass *   aliased 
 aliased class or module. More...
}; 
void(* destructor )(mrbc_value *)
 specify a destructor if need.

Detailed Description

Class object.

Definition at line 83 of file class.h.

Field Documentation

◆ [union]

union { ... } RClass

◆ aliased

struct RClass* RClass::aliased

aliased class or module.

Definition at line 92 of file class.h.

◆ destructor

void(* RClass::destructor) (mrbc_value *)

specify a destructor if need.

Definition at line 98 of file class.h.

◆ flag_alias

unsigned int RClass::flag_alias

is module alias?

Definition at line 87 of file class.h.

◆ flag_builtin

unsigned int RClass::flag_builtin

is built-in class? (= 0)

Definition at line 85 of file class.h.

◆ flag_module

unsigned int RClass::flag_module

is module?

Definition at line 86 of file class.h.

◆ method_link

struct RMethod* RClass::method_link

pointer to method link.

Definition at line 91 of file class.h.

◆ num_builtin_method

uint8_t RClass::num_builtin_method

num of built-in method.

Definition at line 88 of file class.h.

◆ super

struct RClass* RClass::super

pointer to super class.

Definition at line 89 of file class.h.

◆ sym_id

mrbc_sym RClass::sym_id

class name's symbol ID

Definition at line 84 of file class.h.


The documentation for this struct was generated from the following file: