1 #include <../../nrnconf.h>
34 return double(
p - s1);
42 return double(strlen(
gargstr(1)));
53 char*
buf =
new char[
i + 1];
161 if (!st || st->
type != TEMPLATE) {
162 printf(
"st=%p %s %d\n", st, st ? st->
name :
"NULL", st ? st->
type : 0);
167 int id = (*po)->index;
188 if (
o->ctemplate->constructor) {
194 for (s =
sl->first; s; s = s->
next) {
197 for (
i = 0;
i < total; ++
i) {
218 for (s =
sl->first; s; s = s->
next) {
221 for (
i = 0;
i < total; ++
i) {
240 for (s =
sl->first; s; s = s->
next) {
241 if (s->
type == TEMPLATE) {
274 for (
i = 0;
i < list->
count(); ++
i) {
300 Printf(
" found %d of them\n", nr);
307 return double(ob ? ob->ctemplate->is_point_ : 0);
312 int type = ob ? ob->ctemplate->is_point_ : 0;
374 const auto& it =
symtab_.find(s);
Symbol * install(const char *)
Symbol * lookup(const char *)
std::map< String, Symbol * > symtab_
int EndOfMatch(int subexp=0)
int BeginningOfMatch(int subexp=0)
int Search(const char *text, int length, int index, int range)
virtual unsigned long hash() const
const char * string() const
Symbol * hoc_table_lookup(const char *, Symlist *)
double chkarg(int, double low, double high)
void hoc_execerror(const char *, const char *)
int hoc_is_object_arg(int narg)
void hoc_pushstr(char **d)
size_t hoc_total_array_data(Symbol *s, Objectdata *obd)
Object ** hoc_temp_objvar(Symbol *symtemp, void *v)
void hoc_assign_str(char **cpp, const char *buf)
void hoc_obj_ref(Object *obj)
char * hoc_object_name(Object *ob)
void ivoc_free_alias(Object *ob)
Symbol * hoc_lookup(const char *)
double * hoc_pgetarg(int narg)
Symbol * ivoc_alias_lookup(const char *name, Object *ob)
char ** hoc_pgargstr(int narg)
Object ** hoc_objgetarg(int)
#define ITERATE(itm, lst)
char * emalloc(unsigned n)
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
static int l_ref2(Object *o, Object *ob, int nr)
static double l_is_artificial(void *)
static double l_tail(void *)
static double l_left(void *)
static int l_ref3(Symbol *s, Object *ob, int nr)
Symlist * hoc_top_level_symlist
static int l_ref4(Symbol *s, Object *ob, int nr)
static double l_len(void *)
void StringFunctions_reg()
static void * l_cons(Object *)
static Object ** l_alias_list(void *)
static double l_substr(void *)
Object * hoc_newobj1(Symbol *, int)
static Member_ret_obj_func l_obj_members[]
static double l_ref(void *)
void hoc_free_symspace(Symbol *)
unsigned long key_to_hash(String &s)
static void l_destruct(void *)
static double l_head(void *)
static int l_ref1(Symlist *sl, Objectdata *data, Object *ob, int nr)
static double l_right(void *)
int nrn_is_artificial(int)
static double l_is_name(void *)
Objectdata * hoc_top_level_data
static int l_ref0(Symlist *sl, Object *ob, int nr)
Symlist * hoc_built_in_symlist
static Member_func l_members[]
static double l_is_point(void *)
static double l_alias(void *)
short cpublic
Note: public is a reserved keyword.
HocStruct Object * object_
HocStruct cTemplate * ctemplate
char * strstr(char *cs, char *ct)