Added IndexFormatter for printing Indices
parent
e81a442c96
commit
3dd2eec937
|
|
@ -21,11 +21,17 @@
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
#include <boost/function/function1.hpp>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
/// Integer variable index type
|
/// Integer variable index type
|
||||||
typedef size_t Index;
|
typedef size_t Index;
|
||||||
|
|
||||||
|
/** A function to convert indices to strings, for example by translating back
|
||||||
|
* to a nonlinear key and then to a Symbol. */
|
||||||
|
typedef boost::function<std::string(Index)> IndexFormatter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class that uses templates to select between two types based on
|
* Helper class that uses templates to select between two types based on
|
||||||
* whether TEST_TYPE is const or not.
|
* whether TEST_TYPE is const or not.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue