Skip to main content

constructor

Event();

Constructor for event. Returns a new SST::Event.

Parameters

  • returns none

Example

Excerpt from sst-elements/src/sst/elements/simpleElementExample/basicEvent.h
#include <sst/core/event.h>

namespace SST {
namespace simpleElementExample {

// Example event that include a vector<char> payload
// and a boolean value called 'last'
class basicEvent : public SST::Event
{
public:
// Constructor
// Serializable events need a default constructor
basicEvent() : SST::Event(), last(false) { }

// Example data members
std::vector<char> payload;
bool last;

/** Rest of class here */
};

} // namespace simpleElementExample
} // namespace SST
#include <sst/core/event.h>