NEURON
secref.cpp File Reference
#include <../../nrnconf.h>
#include <stdlib.h>
#include "section.h"
#include "parse.hpp"
#include "hoc_membf.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)
 
Objectivoc_list_item (Object *, int)
 
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 *  ,
void *(*)(Object *)  cons,
void(*)(void *)  destruct,
Member_func ,
int(*)(void **)  checkpoint,
Member_ret_obj_func ,
Member_ret_str_func  
)

Definition at line 1581 of file hoc_oop.cpp.

◆ cons()

static void* cons ( Object ho)
static

Definition at line 48 of file secref.cpp.

◆ destruct()

static void destruct ( void v)
static

Definition at line 54 of file secref.cpp.

◆ ivoc_list_item()

Object* ivoc_list_item ( Object ,
int   
)

Definition at line 419 of file oclist.cpp.

◆ nrn_secref_nchild()

int nrn_secref_nchild ( Section sec)

Definition at line 223 of file secref.cpp.

◆ nrn_sectionref_steer()

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

Definition at line 296 of file secref.cpp.

◆ s_cas()

static double s_cas ( void v)
static

Definition at line 267 of file secref.cpp.

◆ s_exists()

static double s_exists ( void v)
static

Definition at line 260 of file secref.cpp.

◆ s_has_parent()

static double s_has_parent ( void v)
static

Definition at line 240 of file secref.cpp.

◆ s_has_trueparent()

static double s_has_trueparent ( void v)
static

Definition at line 250 of file secref.cpp.

◆ s_nchild()

static double s_nchild ( void v)
static

Definition at line 234 of file secref.cpp.

◆ s_rename()

static double s_rename ( void v)
static

Definition at line 85 of file secref.cpp.

◆ s_unname()

static double s_unname ( void v)
static

Definition at line 67 of file secref.cpp.

◆ sec2pitm()

static hoc_Item** sec2pitm ( Section sec)
static

Definition at line 29 of file secref.cpp.

◆ SectionRef_reg()

void SectionRef_reg ( void  )

Definition at line 365 of file secref.cpp.

Variable Documentation

◆ hoc_return_type_code

int hoc_return_type_code

Definition at line 41 of file code.cpp.

◆ members

Member_func members[]
static
Initial value:
= {
"sec", s_rename,
"parent", s_rename,
"trueparent", s_rename,
"root", s_rename,
"child", s_rename,
"nchild", s_nchild,
"has_parent", s_has_parent,
"has_trueparent", s_has_trueparent,
"exists", s_exists,
"rename", s_rename,
"unname", s_unname,
"is_cas", s_cas,
0, 0
}
static double s_has_trueparent(void *v)
Definition: secref.cpp:250
static double s_has_parent(void *v)
Definition: secref.cpp:240
static double s_cas(void *v)
Definition: secref.cpp:267
static double s_rename(void *v)
Definition: secref.cpp:85
static double s_unname(void *v)
Definition: secref.cpp:67
static double s_nchild(void *v)
Definition: secref.cpp:234
static double s_exists(void *v)
Definition: secref.cpp:260

Definition at line 280 of file secref.cpp.

◆ nrn_child_sym

Symbol * nrn_child_sym

Definition at line 26 of file secref.cpp.

◆ nrn_parent_sym

Symbol * nrn_parent_sym

Definition at line 26 of file secref.cpp.

◆ nrn_root_sym

Symbol * nrn_root_sym

Definition at line 26 of file secref.cpp.

◆ nrn_sec_sym

Symbol* nrn_sec_sym

Definition at line 26 of file secref.cpp.

◆ nrn_trueparent_sym

Symbol* nrn_trueparent_sym

Definition at line 27 of file secref.cpp.