Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

binarysave.h File Reference


Detailed Description

StateSaver and LISSOMBinaryStateSaver class declarations.

The use of these classes is deprecated.

Header
/u/nn/cvsroot/lissom/src/binarysave.h,v 1.13 2002/07/29 17:26:48 yschoe Exp

Definition in file binarysave.h.

#include <cstdio>
#include <vector>
#include "tristate.h"
#include "ind_types.h"
#include "kernel.h"

Include dependency graph for binarysave.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  LFBuffer
 Buffer for constructing binary file to write. More...

struct  LFTokenType
 Type of each token; allows access to parts of 64-bit word. More...

class  LISSOMBinaryStateSaver
 StateSaver that can save the state of a LISSOM network to a binary file. More...

class  StateSaver
 Abstract base class for writing a state to a file when that state is directly accessible to this class (e.g. if the class is a friend of the classes to be saved, or if it is in global variables.). More...


Defines

#define NEURONS_PER_BUFFER   1
 Number of neurons to be handled in one buffer for saving and loading.

#define parts_per_row   ((lm.N)/NEURONS_PER_BUFFER)
#define LF_TOKEN_GRAIN_SIZE   4
 Units for token lengths.

#define LFBufferDataType_to_use   i32
 The size of this should match LF_TOKEN_GRAIN_SIZE.

#define LFBufferDataType_swap_endian   i32_swap_endian
#define compareOrSet_proto(type)   type compareOrSet_ ## type(type *destination, type value, int verify, const char *description)


Define Documentation

#define LF_TOKEN_GRAIN_SIZE   4
 

Units for token lengths.

Each token must be an even multiple of this number. Token headers must also be this length, as must the size of LFBufferDataType.

Definition at line 71 of file binarysave.h.

#define NEURONS_PER_BUFFER   1
 

Number of neurons to be handled in one buffer for saving and loading.

The larger the number, the more efficient, but the more memory is required. Must be smaller than N, and N must be an even multiple of it.

Definition at line 62 of file binarysave.h.


Generated on Mon Jan 20 02:35:49 2003 for RF-LISSOM by doxygen1.3-rc2