~process();
int run();
+protected:
+ typedef std::vector<neighbor> neigh_type;
+ typedef std::vector<neighbor*> pneigh_type;
+
+ neigh_type neigh;
+ pneigh_type pneigh;
+
private:
- std::vector<neighbor> neigh;
- MAP_TEMPLATE<m_host_t, neighbor*> rev_neigh;
- std::vector<neighbor*> pneigh;
+ typedef MAP_TEMPLATE<m_host_t, neighbor*> rev_neigh_type;
+
+ rev_neigh_type rev_neigh;
communicator comm;
int ctrl_close_pending;
double load;
double expected_load;
- void compute();
+ double sum_of_to_send() const;
virtual double load_balance(double my_load);
+
+ void compute();
void send1_no_bookkeeping(neighbor& nb);
void send1_bookkeeping(neighbor& nb);
void send();