Nemo  2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
StorableComponent Class Referenceabstract

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

#include <simcomponent.h>

+ Inheritance diagram for StorableComponent:

Public Member Functions

virtual void store_data (BinaryStorageBuffer *saver)=0
 Interface to store the component data (e.g. gene values) into a binary buffer. More...
 
virtual bool retrieve_data (BinaryStorageBuffer *reader)=0
 Interface to retrieve the same data from the binary buffer. More...
 
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

Constructor & Destructor Documentation

◆ ~StorableComponent()

virtual StorableComponent::~StorableComponent ( )
inlinevirtual
171{ }

Member Function Documentation

◆ retrieve_data()

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

Interface to retrieve the same data from the binary buffer.

Implemented in Metapop, TProtoBDMI, TT_BDMI, TTDeletMutations_bitstring, TProtoDeletMutations_bitstring, TTDispersal, TProtoDispersal, TTNeutralGenes, TProtoNeutralGenes, TTQuanti, TProtoQuanti, TTWolbachia, and TProtoWolbachia.

Referenced by Metapop::read_trait().

+ Here is the caller graph for this function:

◆ store_data()

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, TProtoBDMI, TT_BDMI, TTDeletMutations_bitstring, TProtoDeletMutations_bitstring, TTDispersal, TProtoDispersal, TTNeutralGenes, TProtoNeutralGenes, TTQuanti, TProtoQuanti, TTWolbachia, and TProtoWolbachia.

Referenced by Metapop::store_trait().

+ Here is the caller graph for this function:

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

Generated for Nemo v2.3.56 by  doxygen 1.9.0 -- Nemo is hosted on  Download Nemo

Locations of visitors to this page
Catalogued on GSR