TECA
The Toolkit for Extreme Climate Analysis
teca_cf_time_step_mapper Class Referenceabstract

Defines the interface for mapping time steps to files. More...

#include <teca_cf_time_step_mapper.h>

Inheritance diagram for teca_cf_time_step_mapper:
Collaboration diagram for teca_cf_time_step_mapper:

Public Member Functions

virtual bool initialized ()
 
virtual int finalize ()
 
virtual int get_upstream_requests (teca_metadata base_req, std::vector< teca_metadata > &up_reqs)
 
virtual p_teca_cf_layout_manager get_layout_manager (long time_step)=0
 
virtual int to_stream (std::ostream &os)=0
 
template<typename op_t >
int file_table_apply (const op_t &op)
 

Protected Types

using file_table_t = std::unordered_map< long, p_teca_cf_layout_manager >
 

Protected Member Functions

 teca_cf_time_step_mapper (const teca_cf_time_step_mapper &)=delete
 
 teca_cf_time_step_mapper (const teca_cf_time_step_mapper &&)=delete
 
void operator= (const teca_cf_time_step_mapper &)=delete
 
void operator= (const teca_cf_time_step_mapper &&)=delete
 
int alloc_file_comms ()
 
int free_file_comms ()
 

Protected Attributes

MPI_Comm comm
 
std::string index_initializer_key
 
std::string index_request_key
 
long start_time_step
 
long end_time_step
 
long n_time_steps
 
std::vector< long > block_size
 
std::vector< long > block_start
 
long n_files
 
std::vector< std::set< int > > file_ranks
 
std::vector< MPI_Comm > file_comms
 
file_table_t file_table
 

Detailed Description

Defines the interface for mapping time steps to files.


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