All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
initiatorsocket.h
Go to the documentation of this file.
1 #ifndef INITIATORSOCKET_H_INCLUDED_
2 #define INITIATORSOCKET_H_INCLUDED_
3 
4 #include <vector>
5 
6 #include "class.h"
7 #include "socket.h"
8 
9 #include "rose.h"
10 
11 namespace risc {
12 
13 class InitiatorSocket: public Socket {
14 
15 public:
16 
20  explicit InitiatorSocket(SgVariableDefinition *ast_node, Class *parent);
21 
22  void get_mapped_sockets(std::set<risc::Socket*> &mapped_sockets);
23 
27  void register_nb_transport_bw(SgFunctionDeclaration* func_decl);
28 
32  SgFunctionDeclaration* get_registered_nb_transport_bw();
33 
34 private:
39 
43  SgFunctionDeclaration* registered_nb_transport_bw_;
44 };
45 
46 typedef std::vector<InitiatorSocket*> InitiatorSocketVector;
47 typedef std::vector<InitiatorSocket*>::iterator InitiatorSocketVectorIter;
48 typedef std::vector<InitiatorSocket*>::const_iterator InitiatorSocketVectorConstIter;
49 
50 }; // end namespace risc
51 
52 #endif /* INITIATORSOCKET_H_INCLUDED_ */
53 
54 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
std::vector< InitiatorSocket * > InitiatorSocketVector
Definition: class.h:50
Definition: initiatorsocket.h:13
InitiatorSocket(SgVariableDefinition *ast_node, Class *parent)
default constructor
Definition: initiatorsocket.cpp:3
Definition: class.h:53
Definition: socket.h:13
std::vector< InitiatorSocket * >::const_iterator InitiatorSocketVectorConstIter
Definition: initiatorsocket.h:48
SgFunctionDeclaration * registered_nb_transport_bw_
registered method for nb_transport_bw_
Definition: initiatorsocket.h:43
void get_mapped_sockets(std::set< risc::Socket * > &mapped_sockets)
Definition: initiatorsocket.cpp:8
std::vector< InitiatorSocket * >::iterator InitiatorSocketVectorIter
Definition: initiatorsocket.h:47
SgFunctionDeclaration * get_registered_nb_transport_bw()
get the registered nb_transport_bw method
Definition: initiatorsocket.cpp:21
void register_nb_transport_bw(SgFunctionDeclaration *func_decl)
register the nb_transport_bw method for this socket
Definition: initiatorsocket.cpp:14