PageRenderTime 24ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/lua/import/base.h

#
C++ Header | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | f999e86c96c62dde77a9f09cac426435 MD5 | raw file
 1class Base {
 2 public:
 3     Base() { };
 4     virtual ~Base() { };
 5     virtual const char * A() const {
 6         return "Base::A";
 7     }
 8     const char * B() const {
 9       return "Base::B";
10     }
11     virtual Base *toBase() {
12       return static_cast<Base *>(this);
13     }
14};
15 
16