NEURON
hoccontext.h File Reference

Go to the source code of this file.

Classes

struct  HocContext
 

Macros

#define HocTopContextSet
 
#define HocContextRestore
 

Typedefs

typedef struct HocContext HocContext
 

Functions

static HocContexthc_save_and_set_to_top_ (HocContext *hc)
 
static void hc_restore_ (HocContext *hc)
 

Variables

Objecthoc_thisobject
 
Objectdatahoc_top_level_data
 
Symlisthoc_top_level_symlist
 
Symlisthoc_symlist
 

Macro Definition Documentation

◆ HocContextRestore

#define HocContextRestore
Value:
if (hc_) { \
hc_restore_(hc_); \
}

Definition at line 17 of file hoccontext.h.

◆ HocTopContextSet

#define HocTopContextSet
Value:
HocContext hcref; \
HocContext* hc_ = 0; \
if (hoc_thisobject) { \
hc_ = hc_save_and_set_to_top_(&hcref); \
}
static HocContext * hc_save_and_set_to_top_(HocContext *hc)
Definition: hoccontext.h:28
Object * hoc_thisobject
Definition: hoc_oop.cpp:122

Definition at line 10 of file hoccontext.h.

Typedef Documentation

◆ HocContext

typedef struct HocContext HocContext

Function Documentation

◆ hc_restore_()

static void hc_restore_ ( HocContext hc)
static

Definition at line 37 of file hoccontext.h.

◆ hc_save_and_set_to_top_()

static HocContext* hc_save_and_set_to_top_ ( HocContext hc)
static

Definition at line 28 of file hoccontext.h.

Variable Documentation

◆ hoc_symlist

Symlist* hoc_symlist
extern

◆ hoc_thisobject

Object* hoc_thisobject
extern

Definition at line 122 of file hoc_oop.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.