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

sst/elements/include/memoryIF.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 #ifndef _MEMORYIF_H
00014 #define _MEMORYIF_H
00015 
00016 template < typename addrT = unsigned long,
00017             typename cookieT = void*,
00018             typename dataT = unsigned long
00019          >
00020 class MemoryIF
00021 {
00022     public: // types
00023         typedef addrT    addr_t;
00024         typedef cookieT  cookie_t;
00025         typedef dataT    data_t;
00026         virtual ~MemoryIF() {;}
00027 
00028     public: // functions
00029         virtual bool read( addr_t, cookie_t ) = 0;
00030         virtual bool write( addr_t, cookie_t ) = 0;
00031         virtual bool read( addr_t, data_t*, cookie_t ) = 0;
00032         virtual bool write( addr_t, data_t*, cookie_t ) = 0;
00033         virtual bool popCookie( cookie_t& ) = 0;
00034 };
00035 
00036 #endif

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