Debian Codegraph @

AspectC++/doc/CompilerManual/aspectc++ code transformation/examples/ah_slice/Example.ah

raw
1 #ifndef __EXAMPLE_AH__
2 #define __EXAMPLE_AH__
3
4
5 aspect Example {
6 advice "Laptop": slice class SL {
7 private: int ram;
8 public: int get_ram(){
9 return ram;
10 }
11 };
12 advice "Laptop": slice class : public ShopItem{};
13
14 };
15
16 #endif