RockyML  0.0.1
A High-Performance Scientific Computing Framework
rocky::zagros::runtime_storage< T_e, T_dim, T_block_dim > Class Template Reference

runtime storage More...

#include <flow.h>

Public Member Functions

size_t container_space ()
 
bool container_exist (std::string id)
 check if a container exists in the memory More...
 
basic_scontainer< T_e, T_block_dim > * container (std::string id)
 access to specific container More...
 
void allocate_container (std::string id, int n_particles, int group_size)
 
void update_partial_best ()
 
void sync_partial_best ()
 
void reset ()
 

Public Attributes

std::vector< std::unique_ptr< basic_scontainer< T_e, T_block_dim > > > cnt_storage
 
std::map< int, std::vector< std::unique_ptr< basic_strategy< T_e, T_block_dim > > > > str_storage
 
std::map< std::string, int > cnt_map
 
std::map< int, int > iter_counter
 
std::map< int, std::deque< T_e > > conv_tracker
 
std::vector< int > bcd_mask
 
std::unique_ptr< basic_scontainer< T_e, T_dim > > blocked_state
 
tbb::enumerable_thread_specific< std::vector< T_e > > th_blocked_states
 
std::unique_ptr< basic_scontainer< T_e, T_block_dim > > partial_best
 

Detailed Description

template<typename T_e, int T_dim, int T_block_dim>
class rocky::zagros::runtime_storage< T_e, T_dim, T_block_dim >

runtime storage

Member Function Documentation

◆ container()

template<typename T_e , int T_dim, int T_block_dim>
basic_scontainer<T_e, T_block_dim>* rocky::zagros::runtime_storage< T_e, T_dim, T_block_dim >::container ( std::string  id)
inline

access to specific container

Parameters
id
Returns
* basic_scontainer<T_e, T_dim>*

◆ container_exist()

template<typename T_e , int T_dim, int T_block_dim>
bool rocky::zagros::runtime_storage< T_e, T_dim, T_block_dim >::container_exist ( std::string  id)
inline

check if a container exists in the memory

Parameters
idcontainer id

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