SST::Interfaces::SimpleMem Class Reference

Simplified, generic interface to Memory models. More...

#include <simpleMem.h>

Inheritance diagram for SST::Interfaces::SimpleMem:
SST::Module

Data Structures

class  Handler
 Event Handler class with user-data argument. More...
class  Handler< classT, void >
 Event Handler class without user-data. More...
class  HandlerBase
 Functor classes for Clock handling. More...
class  Request
 Represents both memory requests and responses. More...

Public Types

typedef uint64_t Addr
 All Addresses can be 64-bit.

Public Member Functions

 SimpleMem (SST::Component *comp, Params &params)
 Constructor, designed to be used via 'loadModuleWithComponent'.
virtual bool initialize (const std::string &linkName, HandlerBase *handler=NULL)=0
 Second half of building the interface.
virtual void sendInitData (Request *req)=0
 Sends a memory-based request during the init() phase.
virtual void sendInitData (SST::Event *ev)
 Sends a generic Event during the init() phase (Mostly acts as a passthrough).
virtual SST::EventrecvInitData ()
 Receive any data during the init() phase.
virtual SST::LinkgetLink (void) const =0
 Returns a handle to the underlying SST::Link.
virtual void sendRequest (Request *req)=0
 Send a Request to the other side of the link.
virtual RequestrecvResponse (void)=0
 Receive a Request response from the side of the link.

Detailed Description

Simplified, generic interface to Memory models.


Constructor & Destructor Documentation

SST::Interfaces::SimpleMem::SimpleMem ( SST::Component comp,
Params params 
) [inline]

Constructor, designed to be used via 'loadModuleWithComponent'.


Member Function Documentation

virtual bool SST::Interfaces::SimpleMem::initialize ( const std::string &  linkName,
HandlerBase handler = NULL 
) [pure virtual]

Second half of building the interface.

Intialize with link name name, and handler, if any

Returns:
true if the link was able to be configured.
virtual SST::Event* SST::Interfaces::SimpleMem::recvInitData (  )  [inline, virtual]

Receive any data during the init() phase.

See also:
SST::Link::recvInitData()

References getLink(), and SST::Link::recvInitData().

virtual Request* SST::Interfaces::SimpleMem::recvResponse ( void   )  [pure virtual]

Receive a Request response from the side of the link.

Use this method for polling-based applications. Register a handler for push-based notification of responses.

Returns:
NULL if nothing is available.
Pointer to a Request response (that should be deleted)
virtual void SST::Interfaces::SimpleMem::sendInitData ( SST::Event ev  )  [inline, virtual]

Sends a generic Event during the init() phase (Mostly acts as a passthrough).

See also:
SST::Link::sendInitData()

References getLink(), and SST::Link::sendInitData().


The documentation for this class was generated from the following file:

Generated on 14 Sep 2015 for SST by  doxygen 1.6.1