24 using namespace gtsam;
39 virtual void method() = 0;
46 void method()
override { data = rand(); }
63 int main(
int argc,
char *argv[]) {
66 cout <<
"Stack objects:" << endl;
67 cout <<
"Base:" << endl;
69 cout <<
"Derived:" << endl;
72 cout <<
"Heap objects:" << endl;
73 cout <<
"Base:" << endl;
75 cout <<
"Derived:" << endl;
77 cout <<
"Derived with base pointer:" << endl;
86 for(
int i=0;
i<
n; ++
i)
90 for(
int i=0;
i<
n; ++
i)
94 for(
int i=0;
i<
n; ++
i) {
101 for(
int i=0;
i<
n; ++
i)
113 for(
int i=0;
i<
n; ++
i)
117 for(
int i=0;
i<
n; ++
i)
120 gttic_(dynamic_cast_does_nothing);
121 for(
int i=0;
i<
n; ++
i)
123 gttoc_(dynamic_cast_does_nothing);
125 for(
int i=0;
i<
n; ++
i)
~VirtualDerived() override
void tictoc_finishedIteration_()
int main(int argc, char *argv[])
~DtorTestDerived() override