SaveState Class Reference

Collaboration diagram for SaveState:
Collaboration graph
[legend]

List of all members.

Classes

struct  ACellState
struct  NetConState
struct  NodeState
struct  PreSynState
struct  SecState
struct  StateStructInfo
struct  TQState

Public Member Functions

 SaveState ()
 ~SaveState ()
virtual void save ()
virtual void restore (int type)
virtual void read (OcFile *, boolean close)
virtual void write (OcFile *, boolean close)
void tqcount (const TQItem *, int)
void tqsave (const TQItem *, int)

Private Member Functions

boolean check (boolean warn)
void alloc ()
void ssfree ()
void ssi_def ()
void fread_NodeState (NodeState *, int, FILE *)
void fwrite_NodeState (NodeState *, int, FILE *)
void fread_SecState (SecState *, int, FILE *)
void fwrite_SecState (SecState *, int, FILE *)
void savenode (NodeState &, Node *)
void restorenode (NodeState &, Node *)
boolean checknode (NodeState &, Node *, boolean)
void allocnode (NodeState &, Node *)
void saveacell (ACellState &, int type)
void restoreacell (ACellState &, int type)
boolean checkacell (ACellState &, int type, boolean)
void allocacell (ACellState &, int type)
void savenet ()
void restorenet ()
void readnet (FILE *)
void writenet (FILE *)
boolean checknet (boolean)
void allocnet ()
void free_tq ()
void alloc_tq ()

Private Attributes

double t_
int nroot_
int nsec_
SecStatess_
int nacell_
ACellStateacell_
int nncs_
NetConStatencs_
int npss_
PreSynStatepss_
TQStatetqs_
int tqcnt_
int nprs_
PlayRecordSave ** prs_

Static Private Attributes

static StateStructInfossi
static cTemplate * nct

Constructor & Destructor Documentation

SaveState::SaveState (  ) 
SaveState::~SaveState (  ) 

References acell_, ssfree(), and tqs_.

Here is the call graph for this function:


Member Function Documentation

void SaveState::alloc (  )  [private]
void SaveState::alloc_tq (  )  [private]
void SaveState::allocacell ( ACellState ac,
int  type 
) [private]
void SaveState::allocnet (  )  [private]
void SaveState::allocnode ( NodeState ns,
Node nd 
) [private]
boolean SaveState::check ( boolean  warn  )  [private]

References ForAllSections, fprintf(), nil, nrn_global_ncell, nroot_, nsec_, SaveState::SecState::sec, sec, section_count, section_ref(), and ss_.

Referenced by restore(), and save().

Here is the call graph for this function:

boolean SaveState::checkacell ( ACellState ac,
int  type,
boolean  warn 
) [private]

References fprintf(), memb_func, memb_list, SaveState::ACellState::ncell, and nodecount.

Here is the call graph for this function:

boolean SaveState::checknet ( boolean  warn  )  [private]
boolean SaveState::checknode ( NodeState ns,
Node nd,
boolean  warn 
) [private]
void SaveState::fread_NodeState ( NodeState ns,
int  cnt,
FILE *  f 
) [private]

References v.

Referenced by read().

void SaveState::fread_SecState ( SecState ss,
int  cnt,
FILE *  f 
) [private]

References b, and SaveState::SecState::root.

Referenced by read().

void SaveState::free_tq (  )  [private]
void SaveState::fwrite_NodeState ( NodeState ns,
int  cnt,
FILE *  f 
) [private]

References v.

Referenced by write().

void SaveState::fwrite_SecState ( SecState ss,
int  cnt,
FILE *  f 
) [private]

References b, and SaveState::SecState::root.

Referenced by write().

void SaveState::read ( OcFile ocf,
boolean  close 
) [virtual]
void SaveState::readnet ( FILE *  f  )  [private]
void SaveState::restore ( int  type  )  [virtual]
void SaveState::restoreacell ( ACellState ac,
int  type 
) [private]
void SaveState::restorenet (  )  [private]
void SaveState::restorenode ( NodeState ns,
Node nd 
) [private]
void SaveState::save (  )  [virtual]
void SaveState::saveacell ( ACellState ac,
int  type 
) [private]
void SaveState::savenet (  )  [private]
void SaveState::savenode ( NodeState ns,
Node nd 
) [private]
void SaveState::ssfree (  )  [private]
void SaveState::ssi_def (  )  [private]
void SaveState::tqcount ( const TQItem *  ,
int   
)

References tqcnt_.

void SaveState::tqsave ( const TQItem *  q,
int   
)
void SaveState::write ( OcFile ocf,
boolean  close 
) [virtual]
void SaveState::writenet ( FILE *  f  )  [private]

References fprintf(), SaveState::TQState::items, n, ncs_, nncs_, npss_, SaveState::TQState::nstate, pss_, SaveState::TQState::tdeliver, and tqs_.

Referenced by write().

Here is the call graph for this function:


Member Data Documentation

Referenced by read(), SaveState(), ssfree(), and write().

cTemplate * SaveState::nct [static, private]
int SaveState::nncs_ [private]
int SaveState::nprs_ [private]
int SaveState::npss_ [private]

Referenced by alloc(), check(), read(), SaveState(), and write().

int SaveState::nsec_ [private]

Referenced by check(), and SaveState().

PlayRecordSave** SaveState::prs_ [private]
double SaveState::t_ [private]

Referenced by read(), restore(), save(), and write().

Referenced by alloc_tq(), savenet(), tqcount(), and tqsave().


The documentation for this class was generated from the following file:
Generated on Mon Jun 13 08:10:32 2011 for NEURON by  doxygen 1.6.3