• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/memEvent.h

00001 // Copyright 2009-2010 Sandia Corporation. Under the terms
00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
00003 // Government retains certain rights in this software.
00004 // 
00005 // Copyright (c) 2009-2010, Sandia Corporation
00006 // All rights reserved.
00007 // 
00008 // This file is part of the SST software package. For license
00009 // information, see the LICENSE file in the top level directory of the
00010 // distribution.
00011 
00012 
00013 
00014 #ifndef _MEMEVENT_H
00015 #define _MEMEVENT_H
00016 
00017 #include <sst/core/event.h>
00018 
00019 namespace SST {
00020 
00021 class MemEvent : public Event {
00022     public:
00023         typedef enum { MEM_LOAD, MEM_LOAD_RESP, 
00024                 MEM_STORE, MEM_STORE_RESP } Type_t;
00025         MemEvent() : Event() { }
00026 
00027         unsigned long   address;
00028         // this should be Type_t but SERIALIZATION barfs on it
00029         int             type;
00030         uint64_t        tag;
00031     
00032     private:
00033         
00034         friend class boost::serialization::access;
00035         template<class Archive>
00036         void serialize(Archive & ar, const unsigned int version )
00037         {
00038             ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Event);
00039             ar & BOOST_SERIALIZATION_NVP( address );
00040             ar & BOOST_SERIALIZATION_NVP( type );
00041             ar & BOOST_SERIALIZATION_NVP( tag );
00042         }
00043 };
00044 
00045     
00046 } //namespace SST
00047 
00048 #endif

Generated on Fri Oct 22 2010 11:02:13 for SST by  doxygen 1.7.1