Dummy object for Andrew to play with
parent
7832b586e6
commit
9d3bb30bc2
|
@ -0,0 +1,40 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
|
||||||
|
* Atlanta, Georgia 30332-0415
|
||||||
|
* All Rights Reserved
|
||||||
|
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
|
||||||
|
|
||||||
|
* See LICENSE for the license information
|
||||||
|
|
||||||
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file Dummy.h
|
||||||
|
* @brief Dummy class for testing MATLAB memory allocation
|
||||||
|
* @author Andrew Melim
|
||||||
|
* @author Frank Dellaert
|
||||||
|
* @date June 14, 2012
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace gtsam {
|
||||||
|
|
||||||
|
static size_t gDummyCount;
|
||||||
|
|
||||||
|
struct Dummy {
|
||||||
|
size_t id;
|
||||||
|
Dummy():id(++gDummyCount) {
|
||||||
|
std::cout << "Dummy constructor " << id << std::endl;
|
||||||
|
}
|
||||||
|
~Dummy() {
|
||||||
|
std::cout << "Dummy destructor " << id << std::endl;
|
||||||
|
gDummyCount--;
|
||||||
|
}
|
||||||
|
void print(const std::string& s="") const {
|
||||||
|
std::cout << s << "Dummy " << id << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace gtsam
|
||||||
|
|
|
@ -10,6 +10,12 @@ class gtsam::SharedNoiseModel;
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
|
#include <gtsam_unstable/base/Dummy.h>
|
||||||
|
class Dummy {
|
||||||
|
Dummy();
|
||||||
|
void print(string s) const;
|
||||||
|
};
|
||||||
|
|
||||||
#include <gtsam_unstable/dynamics/PoseRTV.h>
|
#include <gtsam_unstable/dynamics/PoseRTV.h>
|
||||||
class PoseRTV {
|
class PoseRTV {
|
||||||
PoseRTV();
|
PoseRTV();
|
||||||
|
|
Loading…
Reference in New Issue