Moving ValueCloneAllocator to Values.h to address forward declared template argument issue.
parent
c8c25b16ab
commit
a84ba5c677
|
@ -33,15 +33,6 @@
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
|
||||||
class GTSAM_EXPORT ValueCloneAllocator {
|
|
||||||
public:
|
|
||||||
static Value* allocate_clone(const Value& a) { return a.clone_(); }
|
|
||||||
static void deallocate_clone(const Value* a) { a->deallocate_(); }
|
|
||||||
private:
|
|
||||||
ValueCloneAllocator() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class ValueType>
|
template<class ValueType>
|
||||||
struct _ValuesKeyValuePair {
|
struct _ValuesKeyValuePair {
|
||||||
|
|
|
@ -52,10 +52,17 @@ namespace gtsam {
|
||||||
|
|
||||||
// Forward declarations / utilities
|
// Forward declarations / utilities
|
||||||
class VectorValues;
|
class VectorValues;
|
||||||
class ValueCloneAllocator;
|
|
||||||
class ValueAutomaticCasting;
|
class ValueAutomaticCasting;
|
||||||
template<typename T> static bool _truePredicate(const T&) { return true; }
|
template<typename T> static bool _truePredicate(const T&) { return true; }
|
||||||
|
|
||||||
|
/* ************************************************************************* */
|
||||||
|
class GTSAM_EXPORT ValueCloneAllocator {
|
||||||
|
public:
|
||||||
|
static Value* allocate_clone(const Value& a) { return a.clone_(); }
|
||||||
|
static void deallocate_clone(const Value* a) { a->deallocate_(); }
|
||||||
|
ValueCloneAllocator() {}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A non-templated config holding any types of Manifold-group elements. A
|
* A non-templated config holding any types of Manifold-group elements. A
|
||||||
* values structure is a map from keys to values. It is used to specify the
|
* values structure is a map from keys to values. It is used to specify the
|
||||||
|
|
Loading…
Reference in New Issue