| 1 | /* ---------------------------------------------------------------------------- |
| 2 | |
| 3 | * GTSAM Copyright 2010, Georgia Tech Research Corporation, |
| 4 | * Atlanta, Georgia 30332-0415 |
| 5 | * All Rights Reserved |
| 6 | * Authors: Frank Dellaert, et al. (see THANKS for the full author list) |
| 7 | |
| 8 | * See LICENSE for the license information |
| 9 | |
| 10 | * -------------------------------------------------------------------------- */ |
| 11 | |
| 12 | /** |
| 13 | * @file Dummy.h |
| 14 | * @brief Dummy class for testing MATLAB memory allocation |
| 15 | * @author Andrew Melim |
| 16 | * @author Frank Dellaert |
| 17 | * @date June 14, 2012 |
| 18 | */ |
| 19 | |
| 20 | #include <gtsam_unstable/base/Dummy.h> |
| 21 | #include <iostream> |
| 22 | |
| 23 | namespace gtsam { |
| 24 | |
| 25 | static size_t gDummyCount = 0; |
| 26 | |
| 27 | Dummy::Dummy():id(++gDummyCount) { |
| 28 | std::cout << "Dummy constructor " << id << std::endl; |
| 29 | } |
| 30 | |
| 31 | Dummy::~Dummy() { |
| 32 | std::cout << "Dummy destructor " << id << std::endl; |
| 33 | } |
| 34 | |
| 35 | void Dummy::print(const std::string& s) const { |
| 36 | std::cout << s << "Dummy " << id << std::endl; |
| 37 | } |
| 38 | |
| 39 | unsigned char Dummy::dummyTwoVar(unsigned char a) const { |
| 40 | return a; |
| 41 | } |
| 42 | |
| 43 | } |
| 44 | |