00001 00002 #ifndef __UPDATE_CTX_H__ 00003 #define __UPDATE_CTX_H__ 00004 00005 #include "mpi.h" 00006 #include <vector> 00007 00008 namespace ot { 00009 00010 class updateContext { 00011 public: 00012 void * buffer; 00013 void * keys; 00014 std::vector<MPI_Request*> requests; 00015 00016 bool operator== (updateContext other) { 00017 return( buffer == other.buffer ); 00018 } 00019 00020 ~updateContext() { 00021 requests.clear(); 00022 } 00023 }; 00024 00025 } //end namespace 00026 00027 #endif 00028