PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/python/import/base.h

#
C++ Header | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | da26bd1daa47d0160f7eab8c4203adb7 MD5 | raw file
 1#include <stdio.h>
 2
 3class Base {
 4 public:
 5     Base() { };
 6     virtual ~Base() { };
 7     virtual void A() {
 8         printf("I'm Base::A\n");
 9     }
10     void B() {
11       printf("I'm Base::B\n");
12     }
13     virtual Base *toBase() {
14       return static_cast<Base *>(this);
15     }
16};
17 
18