QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
class.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  category_s
 
struct  class_s
 
struct  class_type_s
 
struct  protocol_s
 
struct  protocollist_s
 

Typedefs

typedef struct category_s category_t
 
typedef struct class_s class_t
 
typedef struct class_type_s class_type_t
 
typedef struct protocol_s protocol_t
 
typedef struct protocollist_s protocollist_t
 

Enumerations

enum  ct_type_t { ct_class, ct_category, ct_protocol }
 

Functions

protocollist_tadd_protocol (protocollist_t *protocollist, const char *name)
 
void category_add_methods (category_t *category, struct methodlist_s *methods)
 
void category_add_protocols (category_t *category, protocollist_t *protocols)
 
int class_access (class_type_t *current_class, class_t *class)
 
void class_add_ivars (class_t *class, struct symtab_s *ivars)
 
void class_add_methods (class_t *class, struct methodlist_s *methods)
 
void class_add_protocols (class_t *class, protocollist_t *protocols)
 
void class_begin (class_type_t *class_type)
 
void class_check_ivars (class_t *class, struct symtab_s *ivars)
 
struct symbol_sclass_find_ivar (class_t *class, int vis, const char *name)
 
struct method_sclass_find_method (class_type_t *class_type, struct method_s *method)
 
void class_finish (class_type_t *class_type)
 
void class_finish_ivar_scope (class_type_t *class_type, struct symtab_s *ivar_scope, struct symtab_s *param_scope)
 
void class_finish_module (void)
 
void class_init (void)
 
struct symtab_sclass_ivar_scope (class_type_t *class_type, struct symtab_s *parent)
 
struct method_sclass_message_response (class_t *class, int class_msg, struct expr_s *sel)
 
struct symtab_sclass_new_ivars (class_t *class)
 
struct symbol_sclass_pointer_symbol (class_t *class_type)
 
struct symbol_sclass_symbol (class_type_t *class_type, int external)
 
struct symtab_sclass_to_struct (class_t *class, struct symtab_s *symtab)
 
void clear_classes (void)
 
int compare_protocols (protocollist_t *protos1, protocollist_t *protos2)
 
void emit_category_ref (const char *class_name, const char *category_name)
 
void emit_class_ref (const char *class_name)
 
struct def_semit_protocol (protocol_t *protocol)
 
struct def_semit_protocol_list (protocollist_t *protocols, const char *name)
 
class_textract_class (class_type_t *class_type)
 
category_tget_category (struct symbol_s *class_name, const char *category_name, int create)
 
class_tget_class (struct symbol_s *sym, int create)
 
const char * get_class_name (class_type_t *class_type, int pretty)
 
protocol_tget_protocol (const char *name, int create)
 
protocollist_tnew_protocol_list (void)
 
int obj_is_class (const struct type_s *type)
 
int obj_is_Class (const struct type_s *type)
 
int obj_is_classptr (const struct type_s *type)
 
int obj_is_id (const struct type_s *type)
 
int obj_types_assignable (const struct type_s *dst, const struct type_s *src)
 
void print_protocollist (struct dstring_s *dstr, protocollist_t *protocollist)
 
int procollist_find_protocol (protocollist_t *protocollist, protocol_t *proto)
 
void protocol_add_methods (protocol_t *protocol, struct methodlist_s *methods)
 
void protocol_add_protocols (protocol_t *protocol, protocollist_t *protocols)
 
struct def_sprotocol_def (protocol_t *protocol)
 

Variables

class_type_tcurrent_class
 
int obj_initialized
 
struct type_s type_Class
 
struct type_s type_id
 
struct type_s type_IMP
 
struct type_s type_ivar
 
struct type_s type_module
 
struct type_s type_obj_category
 
struct type_s type_obj_class
 
struct type_s type_obj_exec_class
 
struct type_s type_obj_method
 
struct type_s type_obj_method_description
 
struct type_s type_obj_object
 
struct type_s type_obj_protocol
 
struct type_s type_obj_super
 
struct type_s type_SEL
 
struct type_s type_supermsg
 

Typedef Documentation

typedef struct category_s category_t
typedef struct class_s class_t
typedef struct class_type_s class_type_t
typedef struct protocol_s protocol_t

Enumeration Type Documentation

enum ct_type_t
Enumerator
ct_class 
ct_category 
ct_protocol 

Function Documentation

protocollist_t* add_protocol ( protocollist_t protocollist,
const char *  name 
)
void category_add_methods ( category_t category,
struct methodlist_s methods 
)
void category_add_protocols ( category_t category,
protocollist_t protocols 
)
int class_access ( class_type_t current_class,
class_t class 
)
void class_add_ivars ( class_t class,
struct symtab_s ivars 
)
void class_add_methods ( class_t class,
struct methodlist_s methods 
)
void class_add_protocols ( class_t class,
protocollist_t protocols 
)
void class_begin ( class_type_t class_type)
void class_check_ivars ( class_t class,
struct symtab_s ivars 
)
struct symbol_s* class_find_ivar ( class_t class,
int  vis,
const char *  name 
)
struct method_s* class_find_method ( class_type_t class_type,
struct method_s method 
)
void class_finish ( class_type_t class_type)
void class_finish_ivar_scope ( class_type_t class_type,
struct symtab_s ivar_scope,
struct symtab_s param_scope 
)
void class_finish_module ( void  )
void class_init ( void  )
struct symtab_s* class_ivar_scope ( class_type_t class_type,
struct symtab_s parent 
)
struct method_s* class_message_response ( class_t class,
int  class_msg,
struct expr_s sel 
)
struct symtab_s* class_new_ivars ( class_t class)
struct symbol_s* class_pointer_symbol ( class_t class_type)
struct symbol_s* class_symbol ( class_type_t class_type,
int  external 
)
struct symtab_s* class_to_struct ( class_t class,
struct symtab_s symtab 
)
void clear_classes ( void  )
int compare_protocols ( protocollist_t protos1,
protocollist_t protos2 
)
void emit_category_ref ( const char *  class_name,
const char *  category_name 
)
void emit_class_ref ( const char *  class_name)
struct def_s* emit_protocol ( protocol_t protocol)
struct def_s* emit_protocol_list ( protocollist_t protocols,
const char *  name 
)
class_t* extract_class ( class_type_t class_type)
category_t* get_category ( struct symbol_s class_name,
const char *  category_name,
int  create 
)
class_t* get_class ( struct symbol_s sym,
int  create 
)
const char* get_class_name ( class_type_t class_type,
int  pretty 
)
protocol_t* get_protocol ( const char *  name,
int  create 
)
protocollist_t* new_protocol_list ( void  )
int obj_is_class ( const struct type_s type)
int obj_is_Class ( const struct type_s type)
int obj_is_classptr ( const struct type_s type)
int obj_is_id ( const struct type_s type)
int obj_types_assignable ( const struct type_s dst,
const struct type_s src 
)
void print_protocollist ( struct dstring_s dstr,
protocollist_t protocollist 
)
int procollist_find_protocol ( protocollist_t protocollist,
protocol_t proto 
)
void protocol_add_methods ( protocol_t protocol,
struct methodlist_s methods 
)
void protocol_add_protocols ( protocol_t protocol,
protocollist_t protocols 
)
struct def_s* protocol_def ( protocol_t protocol)

Variable Documentation

class_type_t* current_class
int obj_initialized
struct type_s type_Class
struct type_s type_id
struct type_s type_IMP
struct type_s type_ivar
struct type_s type_module
struct type_s type_obj_category
struct type_s type_obj_class
struct type_s type_obj_exec_class
struct type_s type_obj_method
struct type_s type_obj_method_description
struct type_s type_obj_object
struct type_s type_obj_protocol
struct type_s type_obj_super
struct type_s type_SEL
struct type_s type_supermsg