Ignore:
Timestamp:
10/13/15 15:14:23 (9 years ago)
Author:
rlacroix
Message:

Correctly estimate the needed buffer sizes.

The attributes were not considered which could lead to incorrect estimations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/event_client.hpp

    r591 r731  
    88namespace xios 
    99{ 
    10   
    1110  class CEventClient 
    1211  { 
    1312    public: 
    14      
    15 //    CEventClient(CContextClient& client,int nbSender,list<int>& serverList);   
    16     CEventClient(int classId, int typeId); 
    17     void push(int rank,int nbSender, CMessage& msg) ;   
     13      static const size_t headerSize; 
    1814 
    19 //    list<CBufferOut*> newEvent(int classId, int type, list<int> sizes) ; 
    20     list<int> getRanks(void) ; 
    21     list<int> getSizes(void) ; 
    22     void send(list<CBufferOut*>&) ;    
    23     bool isEmpty(void) ; 
    24     list<int> ranks ; 
    25     list<int> nbSenders ; 
    26     list<CMessage*> messages ; 
    27 //    CContextClient* client ; 
    28     int classId ; 
    29     int typeId ; 
    30   } ; 
     15      CEventClient(int classId, int typeId); 
    3116 
     17      void push(int rank, int nbSender, CMessage& msg); 
     18      void send(size_t timeLine, const std::list<int>& sizes, std::list<CBufferOut*>&);  
     19 
     20      bool isEmpty(void); 
     21      std::list<int> getRanks(void); 
     22      std::list<int> getSizes(void); 
     23 
     24    private: 
     25      int classId; 
     26      int typeId; 
     27      std::list<int> ranks; 
     28      std::list<int> nbSenders; 
     29      std::list<CMessage*> messages; 
     30  }; 
    3231} 
    3332 
Note: See TracChangeset for help on using the changeset viewer.