NEURON
classreg.h
Go to the documentation of this file.
1 #pragma once
2 
3 struct Object;
4 
5 using ctor_f = void*(Object*);
6 using dtor_f = void(void*);
7 
8 struct Member_func {
9  const char* name;
10  double (*member)(void*);
11 };
12 
14  const char* name;
15  struct Object** (*member)(void*);
16 };
17 
19  const char* name;
20  const char** (*member)(void*);
21 };
22 void class2oc(const char*,
23  ctor_f* cons,
25  Member_func*,
void *(Object *) ctor_f
Definition: classreg.h:5
void(void *) dtor_f
Definition: classreg.h:6
void class2oc(const char *, ctor_f *cons, dtor_f *destruct, Member_func *, Member_ret_obj_func *, Member_ret_str_func *)
Definition: hoc_oop.cpp:1631
static void destruct(void *v)
Definition: grglyph.cpp:207
static void * cons(Object *o)
Definition: grglyph.cpp:200
const char * name
Definition: classreg.h:9
double(* member)(void *)
Definition: classreg.h:10
const char * name
Definition: classreg.h:14
const char * name
Definition: classreg.h:19
Definition: hocdec.h:173