projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
lua
/
import
/
foo.h
1
#include "base.h"
2
3
class Foo : public Base {
4
public:
5
Foo() { }
6
~Foo() { }
7
virtual const char * A() const {
8
return "Foo::A";
9
}
10
const char * B() const {
11
return "Foo::B";
12
}
13
virtual Base *toBase() {
14
return static_cast<Base *>(this);
15
}
16
static Foo *fromBase(Base *b) {
17
return dynamic_cast<Foo *>(b);
18
}
19
};
20
21