source: XIOS/trunk/src/dht_auto_indexing.hpp @ 1638

Last change on this file since 1638 was 1638, checked in by yushan, 5 years ago

dev on ADA

File size: 1.0 KB
Line 
1/*!
2   \file dht_auto_indexing.hpp
3   \author Ha NGUYEN
4   \since 6 Jul 2016
5   \date 6 Jul 2016
6
7   \brief Auto assign global index across processes.
8 */
9
10#ifndef __XIOS_DHT_AUTO_INDEXING_HPP__
11#define __XIOS_DHT_AUTO_INDEXING_HPP__
12
13#include "client_client_dht_template.hpp"
14
15namespace xios
16{
17
18/*!
19  \class CDHTAutoIndexing
20  .
21*/
22class CDHTAutoIndexing: public CClientClientDHTTemplate<size_t>
23{
24  public:
25
26    CDHTAutoIndexing(const CArray<size_t,1>& hashValue,
27                     const ep_lib::MPI_Comm& clientIntraComm);
28
29    CDHTAutoIndexing(Index2VectorInfoTypeMap& hashInitMap,
30                     const ep_lib::MPI_Comm& clientIntraComm);
31
32    size_t getNbIndexesGlobal() const;
33    size_t getIndexStart() const;
34    size_t getIndexCount() const;
35
36    /** Default destructor */
37    virtual ~CDHTAutoIndexing();
38
39  protected:
40    std::vector<size_t> globalIndex_;
41    size_t nbIndexesGlobal_;
42    size_t nbIndexOnProc_ ;
43    size_t beginIndexOnProc_ ;
44};
45
46} // namespace xios
47#endif // __XIOS_DHT_AUTO_INDEXING_HPP__
Note: See TracBrowser for help on using the repository browser.