NEURON
secref.cpp File Reference
#include <../../nrnconf.h>
#include <stdlib.h>
#include "section.h"
#include "parse.hpp"
#include "hoc_membf.h"
#include "oc_ansi.h"
#include <nrnpython_config.h>

Go to the source code of this file.

Functions

static hoc_Item ** sec2pitm (Section *sec)
 
static voidcons (Object *ho)
 
static void destruct (void *v)
 
static double s_unname (void *v)
 
static double s_rename (void *v)
 
int nrn_secref_nchild (Section *sec)
 
static double s_nchild (void *v)
 
static double s_has_parent (void *v)
 
static double s_has_trueparent (void *v)
 
static double s_exists (void *v)
 
static double s_cas (void *v)
 
Sectionnrn_sectionref_steer (Section *sec, Symbol *sym, int *pnindex)
 
void class2oc (const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
 
void SectionRef_reg (void)
 

Variables

int hoc_return_type_code
 
Symbolnrn_sec_sym
 
Symbolnrn_parent_sym
 
Symbolnrn_root_sym
 
Symbolnrn_child_sym
 
Symbolnrn_trueparent_sym
 
static Member_func members []
 

Function Documentation

◆ class2oc()

void class2oc ( const char *  name,
void *(*)(Object *)  cons,
void(*)(void *)  destruct,
Member_func m,
int(*)(void **)  checkpoint,
Member_ret_obj_func mobjret,
Member_ret_str_func strret 
)

Definition at line 1560 of file hoc_oop.cpp.

◆ cons()

static void* cons ( Object ho)
static

Definition at line 49 of file secref.cpp.

◆ destruct()

static void destruct ( void v)
static

Definition at line 55 of file secref.cpp.

◆ nrn_secref_nchild()

int nrn_secref_nchild ( Section sec)

Definition at line 226 of file secref.cpp.

◆ nrn_sectionref_steer()

Section* nrn_sectionref_steer ( Section sec,
Symbol sym,
int *  pnindex 
)

Definition at line 310 of file secref.cpp.

◆ s_cas()

static double s_cas ( void v)
static

Definition at line 270 of file secref.cpp.

◆ s_exists()

static double s_exists ( void v)
static

Definition at line 263 of file secref.cpp.

◆ s_has_parent()

static double s_has_parent ( void v)
static

Definition at line 243 of file secref.cpp.

◆ s_has_trueparent()

static double s_has_trueparent ( void v)
static

Definition at line 253 of file secref.cpp.

◆ s_nchild()

static double s_nchild ( void v)
static

Definition at line 237 of file secref.cpp.

◆ s_rename()

static double s_rename ( void v)
static

Definition at line 84 of file secref.cpp.

◆ s_unname()

static double s_unname ( void v)
static

Definition at line 68 of file secref.cpp.

◆ sec2pitm()

static hoc_Item** sec2pitm ( Section sec)
static

Definition at line 30 of file secref.cpp.

◆ SectionRef_reg()

void SectionRef_reg ( void  )

Definition at line 376 of file secref.cpp.

Variable Documentation

◆ hoc_return_type_code

int hoc_return_type_code
extern

Definition at line 42 of file code.cpp.

◆ members

Member_func members[]
static
Initial value:
= {"sec",
"parent",
"trueparent",
"root",
"child",
"nchild",
"has_parent",
"has_trueparent",
"exists",
"rename",
"unname",
"is_cas",
0,
0}
static double s_has_parent(void *v)
Definition: secref.cpp:243
static double s_has_trueparent(void *v)
Definition: secref.cpp:253
static double s_unname(void *v)
Definition: secref.cpp:68
static double s_rename(void *v)
Definition: secref.cpp:84
static double s_nchild(void *v)
Definition: secref.cpp:237
static double s_exists(void *v)
Definition: secref.cpp:263
static double s_cas(void *v)
Definition: secref.cpp:270

Definition at line 283 of file secref.cpp.

◆ nrn_child_sym

Symbol * nrn_child_sym

Definition at line 27 of file secref.cpp.

◆ nrn_parent_sym

Symbol * nrn_parent_sym

Definition at line 27 of file secref.cpp.

◆ nrn_root_sym

Symbol * nrn_root_sym

Definition at line 27 of file secref.cpp.

◆ nrn_sec_sym

Symbol* nrn_sec_sym

Definition at line 27 of file secref.cpp.

◆ nrn_trueparent_sym

Symbol* nrn_trueparent_sym

Definition at line 28 of file secref.cpp.