18 class Sphere : public Shape
26 Geometry(Shape *shape) { assert(shape); }
27 void add(Shape *shape) { assert(shape); }
47 void setInt( int i ) { std::cerr << "setInt: " << i << std::endl; }
48 void setEnum( E i ) { std::cerr << "setEnum: " << i << std::endl; }
55 typedef std::vector<void*> ASomething;
66 A() { std::cerr << "A::A" << std::endl; }
67 ~A() { std::cerr << "A::~A" << std::endl; }
70 const std::string & get_string(const std::string& a="") {return a;}
71 void doFunc() { std::cout << "A::doFunc()" << std::endl; func(); }
72 virtual void func() { std::cout << "A::func()" << std::endl; }
78 B() { std::cout << "B::B" << std::endl; }
79 ~B() { std::cout << "B::~B" << std::endl; }
81 void do_something() { std::cout << "B::do_something()" << std::endl; }
85 void useB(B* b) { b->do_something();
100 void setTimeStep(Real h) {}
101 virtual Real getTimeStep() const { return 32;}