NEURON
strfun.cpp File Reference
#include <../../nrnconf.h>
#include <OS/string.h>
#include <InterViews/regexp.h>
#include <stdio.h>
#include <stdlib.h>
#include "classreg.h"
#include "oc2iv.h"
#include <symdir.h>
#include <oclist.h>
#include <parse.hpp>
#include <hoclist.h>

Go to the source code of this file.

Functions

int nrn_is_artificial (int)
 
unsigned long key_to_hash (String &s)
 
static double l_substr (void *)
 
static double l_len (void *)
 
static double l_head (void *)
 
static double l_tail (void *)
 
static double l_left (void *)
 
static double l_right (void *)
 
static double l_is_name (void *)
 
void hoc_free_symspace (Symbol *)
 
Objecthoc_newobj1 (Symbol *, int)
 
Symbolivoc_alias_lookup (const char *name, Object *ob)
 
void ivoc_free_alias (Object *ob)
 
static double l_alias (void *)
 
static Object ** l_alias_list (void *)
 
static int l_ref2 (Object *o, Object *ob, int nr)
 
static int l_ref1 (Symlist *sl, Objectdata *data, Object *ob, int nr)
 
static int l_ref0 (Symlist *sl, Object *ob, int nr)
 
static int l_ref3 (Symbol *s, Object *ob, int nr)
 
static int l_ref4 (Symbol *s, Object *ob, int nr)
 
static double l_ref (void *)
 
static double l_is_point (void *)
 
static double l_is_artificial (void *)
 
static voidl_cons (Object *)
 
static void l_destruct (void *)
 
void StringFunctions_reg ()
 

Variables

Objectdatahoc_top_level_data
 
Symlisthoc_built_in_symlist
 
int hoc_return_type_code
 
Symlisthoc_top_level_symlist
 
static Member_func l_members []
 
static Member_ret_obj_func l_obj_members [] = {"alias_list", l_alias_list, 0, 0}
 

Function Documentation

◆ hoc_free_symspace()

void hoc_free_symspace ( Symbol s1)

Definition at line 271 of file symbol.cpp.

◆ hoc_newobj1()

Object* hoc_newobj1 ( Symbol sym,
int  narg 
)

Definition at line 565 of file hoc_oop.cpp.

◆ key_to_hash()

unsigned long key_to_hash ( String s)
inline

Definition at line 24 of file strfun.cpp.

◆ l_alias()

static double l_alias ( void )
static

Definition at line 119 of file strfun.cpp.

◆ l_alias_list()

static Object** l_alias_list ( void )
static

Definition at line 153 of file strfun.cpp.

◆ l_cons()

static void* l_cons ( Object )
static

Definition at line 347 of file strfun.cpp.

◆ l_destruct()

static void l_destruct ( void )
static

Definition at line 351 of file strfun.cpp.

◆ l_head()

static double l_head ( void )
static

Definition at line 45 of file strfun.cpp.

◆ l_is_artificial()

static double l_is_artificial ( void )
static

Definition at line 310 of file strfun.cpp.

◆ l_is_name()

static double l_is_name ( void )
static

Definition at line 94 of file strfun.cpp.

◆ l_is_point()

static double l_is_point ( void )
static

Definition at line 304 of file strfun.cpp.

◆ l_left()

static double l_left ( void )
static

Definition at line 80 of file strfun.cpp.

◆ l_len()

static double l_len ( void )
static

Definition at line 40 of file strfun.cpp.

◆ l_ref()

static double l_ref ( void )
static

Definition at line 284 of file strfun.cpp.

◆ l_ref0()

static int l_ref0 ( Symlist sl,
Object ob,
int  nr 
)
static

Definition at line 236 of file strfun.cpp.

◆ l_ref1()

static int l_ref1 ( Symlist sl,
Objectdata data,
Object ob,
int  nr 
)
static

Definition at line 214 of file strfun.cpp.

◆ l_ref2()

static int l_ref2 ( Object o,
Object ob,
int  nr 
)
static

Definition at line 183 of file strfun.cpp.

◆ l_ref3()

static int l_ref3 ( Symbol s,
Object ob,
int  nr 
)
static

Definition at line 252 of file strfun.cpp.

◆ l_ref4()

static int l_ref4 ( Symbol s,
Object ob,
int  nr 
)
static

Definition at line 268 of file strfun.cpp.

◆ l_right()

static double l_right ( void )
static

Definition at line 87 of file strfun.cpp.

◆ l_substr()

static double l_substr ( void )
static

Definition at line 28 of file strfun.cpp.

◆ l_tail()

static double l_tail ( void )
static

Definition at line 65 of file strfun.cpp.

◆ nrn_is_artificial()

int nrn_is_artificial ( int  pnttype)

Definition at line 201 of file init.cpp.

◆ StringFunctions_reg()

void StringFunctions_reg ( )

Definition at line 353 of file strfun.cpp.

Variable Documentation

◆ hoc_built_in_symlist

Symlist* hoc_built_in_symlist
extern

Definition at line 76 of file ivocmac.cpp.

◆ hoc_return_type_code

int hoc_return_type_code
extern

Definition at line 42 of file code.cpp.

◆ hoc_top_level_data

Objectdata* hoc_top_level_data
extern

Definition at line 124 of file hoc_oop.cpp.

◆ hoc_top_level_symlist

Symlist* hoc_top_level_symlist
extern

Definition at line 23 of file symdir.cpp.

◆ l_members

Member_func l_members[]
static
Initial value:
= {"substr",
"len",
"head",
"tail",
"right",
"left",
"is_name",
"alias",
"references",
"is_point_process",
"is_artificial",
0,
0}
static double l_is_artificial(void *)
Definition: strfun.cpp:310
static double l_tail(void *)
Definition: strfun.cpp:65
static double l_left(void *)
Definition: strfun.cpp:80
static double l_len(void *)
Definition: strfun.cpp:40
static double l_substr(void *)
Definition: strfun.cpp:28
static double l_ref(void *)
Definition: strfun.cpp:284
static double l_head(void *)
Definition: strfun.cpp:45
static double l_right(void *)
Definition: strfun.cpp:87
static double l_is_name(void *)
Definition: strfun.cpp:94
static double l_is_point(void *)
Definition: strfun.cpp:304
static double l_alias(void *)
Definition: strfun.cpp:119

Definition at line 320 of file strfun.cpp.

◆ l_obj_members

Member_ret_obj_func l_obj_members[] = {"alias_list", l_alias_list, 0, 0}
static

Definition at line 345 of file strfun.cpp.