|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
A class to store any kind of data in a char buffer before unloading it in a binary data file. More...
#include <binarystoragebuffer.h>
Collaboration diagram for BinaryStorageBuffer:Public Member Functions | |
| BinaryStorageBuffer () | |
| ~BinaryStorageBuffer () | |
| char * | getBuffer () const |
| off_t | getBuffLength () const |
| off_t | getTotByteRecorded () const |
| unsigned int | getBytesOut () const |
| void | clear () |
| void | emptyBuffer () |
| void | store (void *stream, unsigned int nb_bytes) |
| void | set_buff (BinaryDataSaver *owner) |
| void | set_buff (void *zone, size_t length) |
| void | extend_buff () |
| void | read (void *out, unsigned int nb_bytes) |
| void | BSBread (void *out, unsigned int nb_bytes) |
Private Attributes | |
| char * | _buff |
| unsigned int | _num_buckets |
| off_t | _len |
| off_t | _bytes_in |
| off_t | _bytes_out |
| off_t | _tot_bytes_in |
| BinaryDataSaver * | _myDataSaver |
A class to store any kind of data in a char buffer before unloading it in a binary data file.
|
inline |
|
inline |
|
inline |
References read().
Referenced by BinaryDataLoader::extractPop().
|
inline |
References _buff, _bytes_in, _bytes_out, _len, _num_buckets, and _tot_bytes_in.
Referenced by BinaryDataLoader::clear(), and BinaryDataSaver::printOffsetTable().
|
inline |
References _buff, _bytes_in, _bytes_out, and _len.
Referenced by BinaryDataSaver::printData().
|
inline |
|
inline |
References _buff.
Referenced by BinaryDataSaver::printData(), and BinaryDataSaver::printOffsetTable().
|
inline |
References _bytes_in.
Referenced by BinaryDataSaver::FHwrite(), BinaryDataSaver::printData(), BinaryDataSaver::printOffsetTable(), and BinaryDataSaver::storeData().
|
inline |
|
inline |
|
inline |
References _buff, _bytes_in, _bytes_out, and fatal().
Referenced by BSBread(), Individual::retrieve_data(), Metapop::retrieve_data(), TProtoBDMI::retrieve_data(), TT_BDMI::retrieve_data(), TTDeletMutations_bitstring::retrieve_data(), TProtoDeletMutations_bitstring::retrieve_data(), TTDispersal::retrieve_data(), TProtoDispersal::retrieve_data(), TTNeutralGenes::retrieve_data(), TProtoNeutralGenes::retrieve_data(), TTQuanti_continuous::retrieve_data(), TTQuanti_diallelic::retrieve_data(), TProtoQuanti::retrieve_data(), TTQuanti_diallelic_bitstring::retrieve_data(), and TTWolbachia::retrieve_data().
|
inline |
References _buff, _bytes_in, _len, _myDataSaver, _num_buckets, _tot_bytes_in, fatal(), and MAX_BUFF.
Referenced by BinaryDataSaver::execute(), and BinaryDataLoader::extractPop().
|
inline |
References _buff, _bytes_in, _bytes_out, _len, _num_buckets, and _tot_bytes_in.
| void BinaryStorageBuffer::store | ( | void * | stream, |
| unsigned int | nb_bytes | ||
| ) |
References _buff, _bytes_in, _len, _myDataSaver, _num_buckets, _tot_bytes_in, extend_buff(), MAX_BUCKET, and BinaryDataSaver::printData().
Referenced by BinaryDataSaver::printOffsetTable(), Individual::store_data(), Metapop::store_data(), TProtoBDMI::store_data(), TT_BDMI::store_data(), TTDeletMutations_bitstring::store_data(), TProtoDeletMutations_bitstring::store_data(), TTDispersal::store_data(), TProtoDispersal::store_data(), TTNeutralGenes::store_data(), TProtoNeutralGenes::store_data(), TTQuanti_continuous::store_data(), TTQuanti_diallelic::store_data(), TProtoQuanti::store_data(), TTQuanti_diallelic_bitstring::store_data(), TTWolbachia::store_data(), and BinaryDataSaver::storeData().
|
private |
Referenced by clear(), emptyBuffer(), extend_buff(), getBuffer(), read(), set_buff(), store(), and ~BinaryStorageBuffer().
|
private |
Referenced by clear(), emptyBuffer(), getBuffLength(), read(), set_buff(), and store().
|
private |
Referenced by clear(), emptyBuffer(), getBytesOut(), read(), and set_buff().
|
private |
Referenced by clear(), emptyBuffer(), extend_buff(), set_buff(), and store().
|
private |
Referenced by set_buff(), and store().
|
private |
Referenced by clear(), set_buff(), and store().
|
private |
Referenced by clear(), getTotByteRecorded(), set_buff(), and store().
1.9.1 -- Nemo is hosted on