Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
memory_policy.hpp
1// Copyright 2021 Arnaud Becheler <abechele@umich.edu>
2
3/*********************************************************************** * This program is free software; you can
4 *redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free
5 *Software Foundation; either version 2 of the License, or * (at your option) any later version. *
6 * *
7 ***************************************************************************/
8
9#ifndef __MEMORY_TRAIT_H_INCLUDED__
10#define __MEMORY_TRAIT_H_INCLUDED__
11
12#include "PopulationSizeHashMapImplementation.hpp"
13#include "PopulationSizeOnDiskImplementation.hpp"
14
15#include "FlowHashMapImplementation.hpp"
16#include "FlowOnDiskImplementation.hpp"
17
18namespace quetzal
19{
20namespace demography
21{
22namespace memory_policy
23{
27struct on_RAM
28{
29 template <typename Space, typename Time, typename Value>
31
32 template <typename Space, typename Time, typename Value>
34};
38struct on_disk
39{
40 template <typename Space, typename Time, typename Value>
42
43 template <typename Space, typename Time, typename Value>
45};
46} // namespace memory_policy
47} // end namespace demography
48} // end namespace quetzal
49
50#endif
Defines a template class to store the demographic flows number across a landscape along time.
Definition FlowHashMapImplementation.hpp:31
Defines a template class to store the demographic flows number across a landscape along time.
Definition FlowOnDiskImplementation.hpp:38
Population size distribution in time and space.
Definition PopulationSizeHashMapImplementation.hpp:30
Population size distribution in time and space, serialized in a sliding windows to limit RAM usage.
Definition PopulationSizeOnDiskImplementation.hpp:41
Simulation of coalescence-based models of molecular evolution.
Definition coalescence.hpp:21
Keep the demographic data on RAM.
Definition memory_policy.hpp:28
Serialize the unused layers of demographic data on disk, and deserialize them when access is needed.
Definition memory_policy.hpp:39