![]() |
NEURON
|
All hoc functions used in the NEURON codebase. More...
Classes | |
struct | TmpObjectDeleter |
Typedefs | |
using | TmpObject = std::unique_ptr< Object, TmpObjectDeleter > |
Functions | |
Symbol * | hoc_get_symbol (const char *var) |
void | hoc_register_var (DoubScal *, DoubVec *, VoidFunc *) |
void | ivoc_help (const char *) |
Symbol * | hoc_lookup (const char *) |
void | hoc_execerror (const char *, const char *) |
void | hoc_execerr_ext (const char *fmt,...) |
printf style specification of hoc_execerror message. More... | |
char * | hoc_object_name (Object *) |
void | hoc_retpushx (double) |
double * | hoc_getarg (int) |
int | ifarg (int) |
int | vector_instance_px (void *, double **) |
void | install_vector_method (const char *, double(*)(void *)) |
int | vector_arg_px (int i, double **p) |
double | hoc_Exp (double) |
double | hoc_pow (double, double) |
int | hoc_is_tempobj_arg (int narg) |
std::FILE * | hoc_obj_file_arg (int i) |
void | hoc_reg_nmodl_text (int type, const char *txt) |
void | hoc_reg_nmodl_filename (int type, const char *filename) |
std::size_t | nrn_mallinfo (int item) |
int | nrn_mlh_gsort (double *vec, int *base_ptr, int total_elems, int(*cmp)(double, double)) |
void | state_discontinuity (int i, double *pd, double d) |
IvocVect * | vector_arg (int) |
int | vector_buffer_size (IvocVect *) |
int | vector_capacity (IvocVect *) |
IvocVect * | vector_new (int, Object *=nullptr) |
IvocVect * | vector_new0 () |
IvocVect * | vector_new1 (int) |
IvocVect * | vector_new2 (IvocVect *) |
Object ** | vector_pobj (IvocVect *) |
void | vector_resize (IvocVect *, int) |
double * | vector_vec (IvocVect *) |
int | vector_buffer_size (void *) |
int | vector_capacity (void *) |
Object ** | vector_pobj (void *) |
void | vector_resize (void *, int) |
double * | vector_vec (void *) |
int | hoc_obj_run (const char *, Object *) |
Brief explanation of hoc_obj_run. More... | |
void | hoc_prstack () |
Print up to the 10 most-recently-pushed elements on the stack. More... | |
int | hoc_argtype (int) |
int | hoc_is_double_arg (int) |
int | hoc_is_pdouble_arg (int) |
int | hoc_is_str_arg (int) |
int | hoc_is_object_arg (int) |
char * | hoc_gargstr (int) |
char ** | hoc_pgargstr (int) |
Object ** | hoc_objgetarg (int) |
Object * | hoc_name2obj (const char *name, int index) |
char ** | hoc_temp_charptr () |
int | hoc_is_temp_charptr (char **cpp) |
void | hoc_assign_str (char **pstr, const char *buf) |
double | chkarg (int, double low, double high) |
double | hoc_call_func (Symbol *, int narg) |
void | hoc_call_func_result_on_stack (Symbol *s, int narg) |
double | hoc_call_objfunc (Symbol *, int narg, Object *) |
int | hoc_set_color (int) |
void | hoc_plt (int, double, double) |
void | hoc_plprint (const char *) |
void | hoc_ret () |
void | hoc_push (neuron::container::generic_data_handle handle) |
template<typename T > | |
void | hoc_push (neuron::container::data_handle< T > const &handle) |
void | hoc_pushx (double) |
void | hoc_pushstr (char **) |
void | hoc_pushobj (Object **) |
void | hoc_push_object (Object *) |
void | hoc_pushpx (double *) |
void | hoc_pushs (Symbol *) |
void | hoc_pushi (int) |
void | hoc_push_ndim (int) |
int | hoc_pop_ndim () |
int | hoc_stack_type () |
Get the type of the top entry. More... | |
bool | hoc_stack_type_is_ndim () |
template<typename T > | |
T | hoc_pop () |
Pop an object of type T from the HOC stack. More... | |
template<typename T > | |
T | hoc_get_arg (std::size_t narg) |
Get the nth (1..N) argument on the stack. More... | |
double * | hoc_pgetarg (int narg) |
double | hoc_xpop () |
Symbol * | hoc_spop () |
double * | hoc_pxpop () |
Object ** | hoc_objpop () |
Pop pointer to object pointer and return top elem from stack. More... | |
TmpObject | hoc_pop_object () |
char ** | hoc_strpop () |
int | hoc_ipop () |
void | hoc_nopop () |
template<typename T > | |
neuron::container::data_handle< T > | hoc_pop_handle () |
Shorthand for hoc_pop<data_handle<T>>(). More... | |
template<typename T > | |
neuron::container::data_handle< T > | hoc_hgetarg (int narg) |
Shorthand for hoc_get_arg<data_handle<T>>(narg). More... | |
void | hoc_execerror_mes (const char *, const char *, int) |
void | hoc_warning (const char *, const char *) |
double * | hoc_val_pointer (const char *) |
neuron::container::data_handle< double > | hoc_val_handle (std::string_view) |
Symbol * | hoc_table_lookup (const char *, Symlist *) |
Symbol * | hoc_install (const char *, int, double, Symlist **) |
template<typename T > | |
T const & | hoc_look_inside_stack (int i) |
Get the stack entry at depth i. More... | |
Object * | hoc_obj_look_inside_stack (int) |
void | hoc_stkobj_unref (Object *, int stkindex) |
size_t | hoc_total_array_data (const Symbol *, Objectdata *) |
char * | hoc_araystr (Symbol *, int, Objectdata *) |
char * | hoc_object_pathname (Object *) |
const char * | expand_env_var (const char *) |
void | check_obj_type (Object *, const char *) |
int | is_obj_type (Object *, const char *) |
void | hoc_obj_ref (Object *) |
void | hoc_obj_unref (Object *) |
void | hoc_dec_refcount (Object **) |
Object ** | hoc_temp_objvar (Symbol *template_symbol, void *cpp_object) |
Object ** | hoc_temp_objptr (Object *) |
Object * | hoc_new_object (Symbol *symtemp, void *v) |
void | hoc_new_object_asgn (Object **obp, Symbol *template_symbol, void *cpp_object) |
Object * | nrn_pntproc_nmodlrandom_wrap (void *pnt, Symbol *sym) |
Object * | nrn_nmodlrandom_wrap (Prop *prop, Symbol *sym) |
HocSymExtension * | hoc_var_extra (const char *) |
double | check_domain_limits (float *, double) |
Object * | hoc_obj_get (int i) |
void | hoc_obj_set (int i, Object *) |
void | nrn_hoc_lock () |
void | nrn_hoc_unlock () |
void | nrn_exit (int) |
void | hoc_free_list (Symlist **) |
int | hoc_errno_check () |
Symbol * | hoc_parse_stmt (const char *, Symlist **) |
void | hoc_run_stmt (Symbol *) |
Symbol * | hoc_parse_expr (const char *, Symlist **) |
double | hoc_run_expr (Symbol *) |
void | hoc_free_string (char *) |
int | hoc_xopen1 (const char *, const char *) |
int | hoc_xopen_run (Symbol *, const char *) |
void | hoc_symbol_limits (Symbol *, float, float) |
void | sym_extra_alloc (Symbol *) |
int | hoc_chdir (const char *path) |
void | hoc_final_exit () |
void | hoc_sprint1 (char **, int) |
double | hoc_scan (std::FILE *) |
char * | hoc_symbol_units (Symbol *sym, const char *units) |
void | hoc_fake_call (Symbol *) |
void | hoc_last_init () |
void | hoc_obj_notify (Object *) |
int | ivoc_list_count (Object *) |
Object * | ivoc_list_item (Object *, int) |
double | hoc_func_table (void *vpft, int n, double *args) |
void | hoc_spec_table (void **pfunctable, int n) |
void * | hoc_sec_internal_name2ptr (const char *s, int eflag) |
void * | hoc_pysec_name2ptr (const char *s, int eflag) |
void | vector_append (IvocVect *, double) |
void | vector_delete (IvocVect *) |
Object ** | vector_temp_objvar (IvocVect *) |
int | is_vector_arg (int) |
char * | vector_get_label (IvocVect *) |
void | vector_set_label (IvocVect *, char *) |
Symbol * | hoc_install_var (const char *, double *) |
void | hoc_class_registration () |
void | hoc_spinit () |
void | hoc_freearay (Symbol *) |
int | hoc_arayinfo_install (Symbol *, int) |
void | hoc_free_arrayinfo (Arrayinfo *) |
void | hoc_free_val_array (double *, std::size_t) |
std::size_t | hoc_total_array (Symbol *) |
void | frame_debug () |
void | hoc_oop_initaftererror () |
void | hoc_init () |
void | initplot () |
void | hoc_audit_command (const char *) |
void | hoc_audit_from_hoc_main1 (int, const char **, const char **) |
void | hoc_audit_from_final_exit () |
void | hoc_audit_from_xopen1 (const char *, const char *) |
void | hoc_xopen_from_audit (const char *fname) |
int | hoc_retrieving_audit () |
int | hoc_retrieve_audit (int id) |
int | hoc_saveaudit () |
void | hoc_close_plot () |
void | ivoc_cleanup () |
void | ivoc_final_exit () |
int | hoc_oc (const char *) |
int | hoc_oc (const char *, std::ostream &os) |
void | hoc_initcode () |
int | hoc_ParseExec (int) |
int | hoc_get_line () |
int | hoc_araypt (Symbol *, int) |
double | hoc_opasgn (int op, double dest, double src) |
void | hoc_install_object_data_index (Symbol *) |
void | hoc_template_notify (Object *, int) |
void | hoc_construct_point (Object *, int) |
void | hoc_call_ob_proc (Object *ob, Symbol *sym, int narg) |
void | hoc_push_frame (Symbol *, int) |
void | hoc_pop_frame () |
int | hoc_argindex () |
void | hoc_pop_defer () |
void | hoc_tobj_unref (Object **) |
int | hoc_stacktype () |
int | hoc_inside_stacktype (int) |
void | hoc_link_symbol (Symbol *, Symlist *) |
void | hoc_unlink_symbol (Symbol *, Symlist *) |
void | notify_freed (void *) |
void | notify_pointer_freed (void *) |
int | ivoc_list_look (Object *, Object *, char *, int) |
void | ivoc_free_alias (Object *) |
Symbol * | ivoc_alias_lookup (const char *, Object *) |
void | hoc_obj_disconnect (Object *) |
void | hoc_free_object (Object *) |
void | hoc_free_pstring (char **) |
void | hoc_on_init_register (void(*)()) |
int | hoc_pid () |
int | hoc_ired (const char *, int, int, int) |
double | hoc_xred (const char *, double, double, double) |
int | hoc_sred (const char *, char *, char *) |
void | nrnpy_pass () |
void | hoc_free_allobjects (cTemplate *, Symlist *, Objectdata *) |
int | nrn_is_cable () |
void * | nrn_opaque_obj2pyobj (Object *) |
void | bbs_done (void) |
int | hoc_main1 (int, const char **, const char **) |
char * | cxx_char_alloc (std::size_t size) |
Variables | |
int | nrnignore |
double | hoc_ac_ |
double | hoc_epsilon |
int | nrn_inpython_ |
int | hoc_color |
Objectdata * | hoc_objectdata |
void * | nrn_parsing_pysec_ |
int | hoc_returning |
int | stoprun |
int | nrn_mpiabort_on_error_ |
All hoc functions used in the NEURON codebase.
using TmpObject = std::unique_ptr<Object, TmpObjectDeleter> |
void check_obj_type | ( | Object * | obj, |
const char * | type_name | ||
) |
Definition at line 2098 of file hoc_oop.cpp.
char* cxx_char_alloc | ( | std::size_t | size | ) |
const char* expand_env_var | ( | const char * | s | ) |
Definition at line 113 of file fileio.cpp.
char* hoc_araystr | ( | Symbol * | sym, |
int | index, | ||
Objectdata * | obd | ||
) |
void hoc_audit_from_hoc_main1 | ( | int | argc, |
const char ** | argv, | ||
const char ** | envp | ||
) |
void hoc_audit_from_xopen1 | ( | const char * | fname, |
const char * | rcs | ||
) |
void hoc_call_func_result_on_stack | ( | Symbol * | s, |
int | narg | ||
) |
Definition at line 648 of file hoc_oop.cpp.
Definition at line 384 of file hoc_oop.cpp.
int hoc_chdir | ( | const char * | path | ) |
Definition at line 800 of file fileio.cpp.
void hoc_class_registration | ( | ) |
Definition at line 31 of file classreg.cpp.
void hoc_construct_point | ( | Object * | ob, |
int | narg | ||
) |
Definition at line 68 of file hocmech.cpp.
void hoc_dec_refcount | ( | Object ** | pobj | ) |
Definition at line 1850 of file hoc_oop.cpp.
void hoc_execerr_ext | ( | const char * | fmt, |
... | |||
) |
printf style specification of hoc_execerror message.
(512 char limit)
Definition at line 828 of file fileio.cpp.
void hoc_execerror_mes | ( | const char * | s, |
const char * | t, | ||
int | prnt | ||
) |
void hoc_free_allobjects | ( | cTemplate * | ctemplate, |
Symlist * | sl, | ||
Objectdata * | data | ||
) |
Definition at line 1732 of file hoc_oop.cpp.
void hoc_free_list | ( | Symlist ** | list | ) |
Definition at line 254 of file symbol.cpp.
void hoc_free_object | ( | Object * | p | ) |
Definition at line 283 of file symbol.cpp.
void hoc_free_pstring | ( | char ** | p | ) |
Definition at line 294 of file symbol.cpp.
void hoc_free_string | ( | char * | p | ) |
Definition at line 290 of file symbol.cpp.
void hoc_free_val_array | ( | double * | , |
std::size_t | |||
) |
double hoc_func_table | ( | void * | vpft, |
int | n, | ||
double * | args | ||
) |
Definition at line 75 of file functabl.cpp.
char* hoc_gargstr | ( | int | ) |
T hoc_get_arg | ( | std::size_t | narg | ) |
Get the nth (1..N) argument on the stack.
This is a templated version of hoc_getarg, hoc_pgetarg and friends.
neuron::container::data_handle<T> hoc_hgetarg | ( | int | narg | ) |
void hoc_init | ( | ) |
Definition at line 232 of file hoc_init.cpp.
Definition at line 77 of file symbol.cpp.
void hoc_install_object_data_index | ( | Symbol * | sp | ) |
Definition at line 297 of file hoc_oop.cpp.
Symbol* hoc_install_var | ( | const char * | name, |
double * | pval | ||
) |
Definition at line 123 of file symbol.cpp.
int hoc_ired | ( | const char * | prompt, |
int | defalt, | ||
int | min, | ||
int | max | ||
) |
Definition at line 155 of file symbol.cpp.
T const& hoc_look_inside_stack | ( | int | i | ) |
Symbol* hoc_lookup | ( | const char * | s | ) |
Definition at line 59 of file symbol.cpp.
int hoc_main1 | ( | int | argc, |
const char ** | argv, | ||
const char ** | envp | ||
) |
Object* hoc_name2obj | ( | const char * | name, |
int | index | ||
) |
Definition at line 859 of file hoc_oop.cpp.
Definition at line 450 of file hoc_oop.cpp.
Definition at line 478 of file hoc_oop.cpp.
void hoc_obj_disconnect | ( | Object * | ob | ) |
Definition at line 5 of file ocobserv.cpp.
std::FILE* hoc_obj_file_arg | ( | int | i | ) |
Definition at line 47 of file ocfile.cpp.
Object* hoc_obj_get | ( | int | i | ) |
Definition at line 57 of file hoc_oop.cpp.
void hoc_obj_notify | ( | Object * | ob | ) |
Definition at line 10 of file ocobserv.cpp.
void hoc_obj_ref | ( | Object * | obj | ) |
Definition at line 1844 of file hoc_oop.cpp.
int hoc_obj_run | ( | const char * | cmd, |
Object * | ob | ||
) |
Brief explanation of hoc_obj_run.
Detailed explanation of hoc_obj_run goes here.
Definition at line 315 of file hoc_oop.cpp.
void hoc_obj_set | ( | int | i, |
Object * | obj | ||
) |
Definition at line 66 of file hoc_oop.cpp.
void hoc_obj_unref | ( | Object * | obj | ) |
Definition at line 1881 of file hoc_oop.cpp.
char* hoc_object_name | ( | Object * | ob | ) |
Definition at line 73 of file hoc_oop.cpp.
char* hoc_object_pathname | ( | Object * | ob | ) |
Definition at line 1828 of file hoc_oop.cpp.
Object** hoc_objpop | ( | ) |
void hoc_on_init_register | ( | void(*)() | ) |
void hoc_oop_initaftererror | ( | ) |
Definition at line 412 of file hoc_oop.cpp.
T hoc_pop | ( | ) |
neuron::container::data_handle<T> hoc_pop_handle | ( | ) |
void hoc_prstack | ( | ) |
void hoc_push | ( | neuron::container::data_handle< T > const & | handle | ) |
void hoc_push | ( | neuron::container::generic_data_handle | handle | ) |
void* hoc_pysec_name2ptr | ( | const char * | s, |
int | eflag | ||
) |
Definition at line 806 of file cabcode.cpp.
void hoc_reg_nmodl_filename | ( | int | type, |
const char * | filename | ||
) |
Definition at line 109 of file hocusr.cpp.
void hoc_retpushx | ( | double | x | ) |
Definition at line 154 of file hocusr.cpp.
double hoc_scan | ( | std::FILE * | ) |
void* hoc_sec_internal_name2ptr | ( | const char * | s, |
int | eflag | ||
) |
Definition at line 764 of file cabcode.cpp.
void hoc_spec_table | ( | void ** | pfunctable, |
int | n | ||
) |
Definition at line 107 of file functabl.cpp.
void hoc_spinit | ( | ) |
Definition at line 48 of file hocusr.cpp.
void hoc_sprint1 | ( | char ** | ppbuf, |
int | argn | ||
) |
Definition at line 367 of file fileio.cpp.
int hoc_sred | ( | const char * | prompt, |
char * | defalt, | ||
char * | charlist | ||
) |
void hoc_symbol_limits | ( | Symbol * | sym, |
float | low, | ||
float | high | ||
) |
char* hoc_symbol_units | ( | Symbol * | sym, |
const char * | units | ||
) |
Definition at line 48 of file symbol.cpp.
Definition at line 484 of file hoc_oop.cpp.
void hoc_template_notify | ( | Object * | ob, |
int | message | ||
) |
Definition at line 52 of file ocobserv.cpp.
std::size_t hoc_total_array | ( | Symbol * | s | ) |
Definition at line 83 of file hoc_oop.cpp.
size_t hoc_total_array_data | ( | const Symbol * | s, |
Objectdata * | obd | ||
) |
Definition at line 95 of file hoc_oop.cpp.
Definition at line 131 of file symbol.cpp.
neuron::container::data_handle<double> hoc_val_handle | ( | std::string_view | s | ) |
HocSymExtension* hoc_var_extra | ( | const char * | name | ) |
int hoc_xopen1 | ( | const char * | name, |
const char * | rcs | ||
) |
Definition at line 166 of file fileio.cpp.
double hoc_xred | ( | const char * | prompt, |
double | defalt, | ||
double | min, | ||
double | max | ||
) |
void install_vector_method | ( | const char * | name, |
double(*)(void *) | f | ||
) |
Definition at line 361 of file ivocvect.cpp.
int is_obj_type | ( | Object * | obj, |
const char * | type_name | ||
) |
Definition at line 2110 of file hoc_oop.cpp.
int is_vector_arg | ( | int | i | ) |
Definition at line 378 of file ivocvect.cpp.
Definition at line 144 of file strfun.cpp.
void ivoc_cleanup | ( | ) |
Definition at line 15 of file ocnoiv1.cpp.
void ivoc_final_exit | ( | ) |
Definition at line 740 of file ivocmain.cpp.
void ivoc_free_alias | ( | Object * | ob | ) |
Definition at line 153 of file strfun.cpp.
void ivoc_help | ( | const char * | ) |
Definition at line 14 of file ocnoiv1.cpp.
int ivoc_list_count | ( | Object * | olist | ) |
Definition at line 396 of file oclist.cpp.
Definition at line 402 of file oclist.cpp.
Definition at line 462 of file oclist.cpp.
void nrn_hoc_lock | ( | ) |
Definition at line 819 of file multicore.cpp.
void nrn_hoc_unlock | ( | ) |
Definition at line 827 of file multicore.cpp.
std::size_t nrn_mallinfo | ( | int | item | ) |
Definition at line 302 of file symbol.cpp.
int nrn_mlh_gsort | ( | double * | vec, |
int * | base_ptr, | ||
int | total_elems, | ||
int(*)(double, double) | cmp | ||
) |
Definition at line 3877 of file ivocvect.cpp.
Definition at line 126 of file nmodlrandom.cpp.
void* nrn_opaque_obj2pyobj | ( | Object * | ho | ) |
Definition at line 2119 of file hoc_oop.cpp.
Definition at line 111 of file nmodlrandom.cpp.
void nrnpy_pass | ( | ) |
Definition at line 819 of file fileio.cpp.
void sym_extra_alloc | ( | Symbol * | sym | ) |
Definition at line 248 of file symbol.cpp.
void vector_append | ( | IvocVect * | v, |
double | x | ||
) |
Definition at line 323 of file ivocvect.cpp.
IvocVect* vector_arg | ( | int | i | ) |
Definition at line 265 of file ivocvect.cpp.
int vector_arg_px | ( | int | i, |
double ** | p | ||
) |
Definition at line 396 of file ivocvect.cpp.
int vector_buffer_size | ( | IvocVect * | v | ) |
Definition at line 272 of file ivocvect.cpp.
int vector_buffer_size | ( | void * | v | ) |
Definition at line 275 of file ivocvect.cpp.
int vector_capacity | ( | IvocVect * | v | ) |
Definition at line 278 of file ivocvect.cpp.
int vector_capacity | ( | void * | v | ) |
Definition at line 281 of file ivocvect.cpp.
void vector_delete | ( | IvocVect * | v | ) |
Definition at line 262 of file ivocvect.cpp.
char* vector_get_label | ( | IvocVect * | v | ) |
Definition at line 317 of file ivocvect.cpp.
int vector_instance_px | ( | void * | v, |
double ** | px | ||
) |
Definition at line 372 of file ivocvect.cpp.
Definition at line 284 of file ivocvect.cpp.
IvocVect* vector_new0 | ( | ) |
Definition at line 287 of file ivocvect.cpp.
IvocVect* vector_new1 | ( | int | n | ) |
Definition at line 290 of file ivocvect.cpp.
Definition at line 293 of file ivocvect.cpp.
Definition at line 296 of file ivocvect.cpp.
Object** vector_pobj | ( | void * | v | ) |
Definition at line 299 of file ivocvect.cpp.
void vector_resize | ( | IvocVect * | v, |
int | n | ||
) |
Definition at line 302 of file ivocvect.cpp.
void vector_resize | ( | void * | v, |
int | n | ||
) |
Definition at line 305 of file ivocvect.cpp.
void vector_set_label | ( | IvocVect * | v, |
char * | s | ||
) |
Definition at line 320 of file ivocvect.cpp.
Definition at line 314 of file ivocvect.cpp.
double* vector_vec | ( | IvocVect * | v | ) |
Definition at line 308 of file ivocvect.cpp.
double* vector_vec | ( | void * | v | ) |
Definition at line 311 of file ivocvect.cpp.
|
extern |
Definition at line 222 of file hoc_init.cpp.
|
extern |
Definition at line 221 of file hoc_init.cpp.
|
extern |
Definition at line 122 of file hoc_oop.cpp.
|
extern |
|
extern |
Definition at line 146 of file fadvance.cpp.