The use of these classes is deprecated.
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:
This graph shows which files directly or indirectly include this file:
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) |
|
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. |
|
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. |