00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef SST_CORE_UNINITIALIZEDQUEUE_H
00014 #define SST_CORE_UNINITIALIZEDQUEUE_H
00015
00016 #include <sst/core/serialization.h>
00017
00018 #include <sst/core/activityQueue.h>
00019
00020 namespace SST {
00021
00022
00023
00024
00025
00026 class UninitializedQueue : public ActivityQueue {
00027 public:
00028
00029
00030
00031 UninitializedQueue(std::string message);
00032 UninitializedQueue();
00033 ~UninitializedQueue();
00034
00035 bool empty();
00036 int size();
00037 void insert(Activity* activity);
00038 Activity* pop();
00039 Activity* front();
00040
00041
00042 private:
00043 std::string message;
00044
00045 friend class boost::serialization::access;
00046 template<class Archive>
00047 void
00048 serialize(Archive & ar, const unsigned int version )
00049 {
00050 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(ActivityQueue);
00051 ar & BOOST_SERIALIZATION_NVP(message);
00052 }
00053 };
00054
00055 }
00056
00057 BOOST_CLASS_EXPORT_KEY(SST::UninitializedQueue)
00058
00059 #endif // SST_CORE_UNINITIALIZEDQUEUE_H