The Cell object is simply a container for the compartments that make up the cell.
Public Fields
-
int CellID
- The identifier of the cell on this machine: 0nCells - 1.
-
int idx
- This is index into the ARRAYS struct of the definition from which this object was created
-
int nCompartments
- Number of compartments that compose this cell
-
Compartment** Compartments
- Array of pointers to this cell's compartments
Public Methods
-
int Save(FILE* out)
- Write cell Data to a file.
-
int SaveConnections( vector <Synapse* > &collection, int targetNode )
- Finish writing cell data to a file.
-
void Load(FILE* in, char* nothing)
- Load Cell data from a file.
-
void LoadConnections( deque<Synapse* > &collection, int targetNode )
- Finish loading cell data.
Documentation
The Cell object is simply a container for the compartments that make up
the cell. It just holds a list of those compartments, and loops through
them at each timestep.
- int CellID
- The identifier of the cell on this machine: 0nCells - 1. Node & CellID form a unique identifier
- int idx
- This is index into the ARRAYS struct of the definition from which this object was created
- int nCompartments
- Number of compartments that compose this cell
- Compartment** Compartments
- Array of pointers to this cell's compartments
- int Save(FILE* out)
-
Write cell Data to a file. This is only the first half of the save
since connection info between compartments must be saved later.
This function saves data about the individual cell and its compartments as
well as synapse data.
- int SaveConnections( vector <Synapse* > &collection, int targetNode )
-
Finish writing cell data to a file. This is the second half of saving cell
data. It is called after all individual cell and compartments have been written.
This is important to the loading of a brain state since memory addresses will need
to be assigned and that cannot be done until all memory has been allocated.
- Parameters:
- out - File pointer to destination
- Returns:
- number of bytes written
- void Load(FILE* in, char* nothing)
-
Load Cell data from a file. This is only the first half of loading since connection
info for this cell cannot be loaded until all cells have been loaded.
- Parameters:
- in - input file stream
nothing - dummy string for moving pointers to
- void LoadConnections( deque<Synapse* > &collection, int targetNode )
-
Finish loading cell data. This function is called after all initial cell data
has been loaded. This is important because the connection data this function loads
cannot be used until all memory has been allocated. With all objects allocated,
pointers to synapse memory addresses can be properly assigned
- Parameters:
- collection - STL queue with synapse memory addresses.
targetNode - the Node ID which the synapse memory addresses are from
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.