All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ast_attribute_color.h
Go to the documentation of this file.
1 #ifndef AST_ATTRIBUTE_COLOR_H_INCLUDED_
2 #define AST_ATTRIBUTE_COLOR_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 namespace risc
7 {
8 
9 namespace tools
10 {
11 
15 class AstAttributeColor: public AstAttribute {
16 public:
17 
18  // for the new rose release
19  virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
20  {
21  return CONTAINER_OWNERSHIP;
22  }
23 
24  // http://en.wikipedia.org/wiki/List_of_8-bit_computer_hardware_palettes
25  enum Color {
26  BLACK = 0,
27  WHITE = 1,
28  RED = 2,
29  CYAN = 3,
30  PURPLE = 4,
31  GREEN = 5,
32  BLUE = 6,
33  YELLOW = 7,
34  NO_COLOR = 255};
35 
36  // This are 'special' colors for the function call hierarchy
40 
43 
48 
52  AstAttributeColor(Color color);
53 };
54 
55 }; // end namespace tools
56 
57 }; // end namespace risc
58 
59 #endif /* AST_ATTRIBUTE_COLOR_H_INCLUDED_ */
60 
61 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
Definition: ast_attribute_color.h:19
Color color_
Definition: ast_attribute_color.h:41
Definition: ast_attribute_color.h:39
Definition: ast_attribute_color.h:29
Definition: ast_attribute_color.h:15
Definition: ast_attribute_color.h:38
AstAttributeColor()
default constructor where the color is 'NO_COLOR'
Definition: ast_attribute_color.cpp:3
Definition: ast_attribute_color.h:33
CallHierarchy call_hierarchy_
Definition: ast_attribute_color.h:42
CallHierarchy
Definition: ast_attribute_color.h:37
Definition: ast_attribute_color.h:34
Definition: ast_attribute_color.h:30
Definition: ast_attribute_color.h:32
Definition: ast_attribute_color.h:31
Color
Definition: ast_attribute_color.h:25
Definition: ast_attribute_color.h:26
Definition: ast_attribute_color.h:28
Definition: ast_attribute_color.h:27