NEURON
seclist.cpp File Reference
#include <../../nrnconf.h>
#include "section.h"
#include "neuron.h"
#include "nrnpy.h"
#include "parse.hpp"
#include "hocparse.h"
#include "code.h"
#include "classreg.h"

Go to the source code of this file.

Macros

#define HOC_L_LIST   1
 
#define relative(pc)   (pc + (pc)->i)
 

Functions

template<typename F >
bool seclist_iterate_remove_until (List *sl, F fun, const Section *sec)
 
template<typename F >
void seclist_iterate_remove (List *sl, F fun)
 
void lvappendsec_and_ref (void *sl, Section *sec)
 
static void * constructor (Object *ho)
 
static void destructor (void *v)
 
Sectionnrn_secarg (int i)
 
static double append (void *v)
 
static void children1 (List *sl, Section *sec)
 
static double children (void *v)
 
static void subtree1 (List *sl, Section *sec)
 
static double subtree (void *v)
 
static double wholetree (void *v)
 
static double allroots (void *v)
 
static double seclist_remove (void *v)
 
static double unique (void *v)
 
static double contains (void *v)
 
static double printnames (void *v)
 
double seclist_size (void *v)
 
void SectionList_reg (void)
 
static void check (Object *ob)
 
void forall_sectionlist ()
 
void hoc_ifseclist ()
 

Variables

Section *(* nrnpy_o2sec_p_ )(Object *o)
 
void(* nrnpy_sectionlist_helper_ )(List *, Object *)=0
 
static Member_func members []
 
int hoc_returning
 

Macro Definition Documentation

◆ HOC_L_LIST

#define HOC_L_LIST   1

Definition at line 3 of file seclist.cpp.

◆ relative

#define relative (   pc)    (pc + (pc)->i)

Definition at line 264 of file seclist.cpp.

Function Documentation

◆ allroots()

static double allroots ( void *  v)
static

Definition at line 137 of file seclist.cpp.

◆ append()

static double append ( void *  v)
static

Definition at line 80 of file seclist.cpp.

◆ check()

static void check ( Object ob)
static

Definition at line 267 of file seclist.cpp.

◆ children()

static double children ( void *  v)
static

Definition at line 96 of file seclist.cpp.

◆ children1()

static void children1 ( List sl,
Section sec 
)
static

Definition at line 89 of file seclist.cpp.

◆ constructor()

static void* constructor ( Object ho)
static

Definition at line 52 of file seclist.cpp.

◆ contains()

static double contains ( void *  v)
static

Definition at line 211 of file seclist.cpp.

◆ destructor()

static void destructor ( void *  v)
static

Definition at line 61 of file seclist.cpp.

◆ forall_sectionlist()

void forall_sectionlist ( void  )

Definition at line 276 of file seclist.cpp.

◆ hoc_ifseclist()

void hoc_ifseclist ( void  )

Definition at line 320 of file seclist.cpp.

◆ lvappendsec_and_ref()

void lvappendsec_and_ref ( void *  sl,
Section sec 
)

Definition at line 46 of file seclist.cpp.

◆ nrn_secarg()

Section* nrn_secarg ( int  i)

Definition at line 70 of file seclist.cpp.

◆ printnames()

static double printnames ( void *  v)
static

Definition at line 221 of file seclist.cpp.

◆ seclist_iterate_remove()

template<typename F >
void seclist_iterate_remove ( List sl,
fun 
)

Definition at line 30 of file seclist.cpp.

◆ seclist_iterate_remove_until()

template<typename F >
bool seclist_iterate_remove_until ( List sl,
fun,
const Section sec 
)

Definition at line 13 of file seclist.cpp.

◆ seclist_remove()

static double seclist_remove ( void *  v)
static

Definition at line 151 of file seclist.cpp.

◆ seclist_size()

double seclist_size ( void *  v)

Definition at line 231 of file seclist.cpp.

◆ SectionList_reg()

void SectionList_reg ( void  )

Definition at line 259 of file seclist.cpp.

◆ subtree()

static double subtree ( void *  v)
static

Definition at line 118 of file seclist.cpp.

◆ subtree1()

static void subtree1 ( List sl,
Section sec 
)
static

Definition at line 105 of file seclist.cpp.

◆ unique()

static double unique ( void *  v)
static

Definition at line 193 of file seclist.cpp.

◆ wholetree()

static double wholetree ( void *  v)
static

Definition at line 125 of file seclist.cpp.

Variable Documentation

◆ hoc_returning

int hoc_returning
extern

Definition at line 81 of file code.cpp.

◆ members

Member_func members[]
static
Initial value:
= {{"append", append},
{"remove", seclist_remove},
{"wholetree", wholetree},
{"subtree", subtree},
{"children", children},
{"unique", unique},
{"printnames", printnames},
{"contains", contains},
{"allroots", allroots},
{"size", seclist_size},
{nullptr, nullptr}}
static double subtree(void *v)
Definition: seclist.cpp:118
static double seclist_remove(void *v)
Definition: seclist.cpp:151
static double printnames(void *v)
Definition: seclist.cpp:221
static double allroots(void *v)
Definition: seclist.cpp:137
double seclist_size(void *v)
Definition: seclist.cpp:231
static double unique(void *v)
Definition: seclist.cpp:193
static double children(void *v)
Definition: seclist.cpp:96
static double contains(void *v)
Definition: seclist.cpp:211
static double wholetree(void *v)
Definition: seclist.cpp:125
static double append(void *v)
Definition: seclist.cpp:80

Definition at line 247 of file seclist.cpp.

◆ nrnpy_o2sec_p_

Section*(* nrnpy_o2sec_p_) (Object *o) ( Object o)

Definition at line 42 of file seclist.cpp.

◆ nrnpy_sectionlist_helper_

void(* nrnpy_sectionlist_helper_) (List *, Object *)=0 ( List ,
Object  
)

Definition at line 44 of file seclist.cpp.