StorableComponent Class Reference

Provides an interface to binary data saving and uploading. More...

#include <simcomponent.h>

Inheritance diagram for StorableComponent:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void store_data (BinaryStorageBuffer *saver)=0
 Interface to store the component data (e.g. gene values) into a binary buffer.
virtual bool retrieve_data (BinaryStorageBuffer *reader)=0
 Interface to retrieve the same data from the binary buffer.
virtual ~StorableComponent ()


Detailed Description

Provides an interface to binary data saving and uploading.

This interface is used to save and load data from binary data files (serialization).

See also:
BinaryDataSaver and BinaryDataLoader

Definition at line 155 of file simcomponent.h.


Constructor & Destructor Documentation

virtual StorableComponent::~StorableComponent (  )  [inline, virtual]

Definition at line 163 of file simcomponent.h.

00163 { }


Member Function Documentation

virtual bool StorableComponent::retrieve_data ( BinaryStorageBuffer reader  )  [pure virtual]

Interface to retrieve the same data from the binary buffer.

Implemented in Metapop, TTDeletMutations_bitstring, TProtoDeletMutations_bitstring, TTDispersal, TProtoDispersal, TTNeutralGenes, TProtoNeutralGenes, TTWolbachia, and TProtoWolbachia.

virtual void StorableComponent::store_data ( BinaryStorageBuffer saver  )  [pure virtual]

Interface to store the component data (e.g. gene values) into a binary buffer.

Implemented in Metapop, TTDeletMutations_bitstring, TProtoDeletMutations_bitstring, TTDispersal, TProtoDispersal, TTNeutralGenes, TProtoNeutralGenes, TTWolbachia, and TProtoWolbachia.


The documentation for this class was generated from the following file:

Generated for Nemo v2.1.2 by  doxygen 1.5.8 -- Nemo is hosted by  SourceForge.net Logo