All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
port_call_attribute.h
Go to the documentation of this file.
1 #ifndef PORT_CALL_ATTRIBUTE_H_INCLUDED_
2 #define PORT_CALL_ATTRIBUTE_H_INCLUDED_
3 
4 #include "rose.h"
5 #include "segment.h"
6 
7 #include<set>
8 
9 namespace risc {
10 
11 namespace sg {
12 
17 class PortCallAttribute: public AstAttribute {
18 
19 public:
20 
21  // for the new rose release
22  virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
23  {
24  return CONTAINER_OWNERSHIP;
25  }
26 
30  std::list<Segment*> segment_ids_;
31 
33 
34  //added for socket calls
35  //initially false
39  bool is_set_;
44 
49 };
50 
51 } // end of namespace sg
52 
53 } // end of namespace risc
54 
55 #endif /* PORT_CALL_ATTRIBUTE_H_INCLUDED_ */
56 
57 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
bool is_set_
For sockets. Flag for is the PortCallAttribute for socket call is set.
Definition: port_call_attribute.h:39
int socket_id_
For sockets. Indicate which socket this socket call belongs to.
Definition: port_call_attribute.h:43
bool should_instrument_
Whether the port call should be instrumented.
Definition: port_call_attribute.h:48
PortCallAttribute()
Definition: port_call_attribute.cpp:3
virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
Definition: port_call_attribute.h:22
This class stores for function calls.
Definition: port_call_attribute.h:17
std::list< Segment * > segment_ids_
A list of segment ids that belong to this port call.
Definition: port_call_attribute.h:30