SST/macro
message.h
Go to the documentation of this file.
1 #ifndef sumi_message_h
2 #define sumi_message_h
3 
9 #include <sumi/message_fwd.h>
10 
11 namespace sstmac {
12 
16  public serializable_type<transport_message>
17 {
19 
20  public:
21  transport_message(){} //needed for serialization
22 
24  const sumi::message_ptr& msg,
25  long byte_length);
26 
27  virtual void
29 
30  sumi::message_ptr
31  payload() const {
32  return payload_;
33  }
34 
35  std::string
36  to_string() const;
37 
38  int
39  dest() const {
40  return dest_task_;
41  }
42 
43  void
44  set_dest(int dest) {
46  }
47 
48  int
49  src() const {
50  return src_task_;
51  }
52 
53  void
54  set_src(int src) {
56  }
57 
58  virtual void
59  put_on_wire();
60 
62  clone_injection_ack() const;
63 
64  protected:
65  void
66  clone_into(transport_message* cln) const;
67 
68  void
69  reverse();
70 
71  private:
72  sumi::message_ptr payload_;
73 
74 };
75 
76 
77 }
78 
79 #endif // MESSAGE_H
The library_interface class provides a castable type that stores a library id (std::string) for mappi...
::sstmac::hw::network_message * clone_injection_ack() const
ImplementSerializable(transport_message) public
Definition: message.h:18
sumi::message_ptr payload_
Definition: message.h:72
int task_id
Definition: task_id.h:20
void clone_into(transport_message *cln) const
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:33
void set_dest(int dest)
Definition: message.h:44
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
std::string to_string() const
long byte_length() const
Virtual function to return size.
sumi::message_ptr payload() const
Definition: message.h:31
void set_src(int src)
Definition: message.h:54
virtual void serialize_order(serializer &ser)
transport_message(sw::app_id aid, const sumi::message_ptr &msg, long byte_length)
virtual void put_on_wire()
int src() const
Definition: message.h:49
int dest() const
Definition: message.h:39
int app_id
Definition: app_id.h:20