Go to the documentation of this file.
25 using namespace gtsam;
27 typedef pair<size_t, size_t>
Range;
31 static std::stringstream
ss;
32 static string x1(
"x1"),
x2(
"x2"),
x3(
"x3"),
x4(
"x4"),
x5(
"x5");
41 void g(
const string&
key,
int i) {
45 int add(
const string& k,
int v,
int a) {
125 CHECK(
ss.str() ==
string(
"x1x2x3x4x5"));
135 CHECK(it->second == 1)
153 std::list<KeyInt> actual;
173 list<RangeTree::value_type>
expected;
175 for (
int i = 1;
i <=
N;
i++) {
188 list<RangeTree::value_type> actual;
193 for (
int i =
N;
i >=
N;
i--) {
static int runAllTests(TestResult &result)
bool same(const BTree &other) const
static std::stringstream ss
BTree remove(const KEY &x) const
BTree add(const value_type &xd) const
Double_ range(const Point2_ &p, const Point2_ &q)
const VALUE & find(const KEY &k) const
pair< string, int > KeyInt
int f(const string &key, const Range &range)
purely functional binary tree
Const iterator Not trivial: iterator keeps a stack to indicate current path from root_.
BTree< KEY, TO > map(std::function< TO(const KEY &, const VALUE &)> f) const
BTree< string, Range > RangeTree
void g(const string &key, int i)
pair< size_t, size_t > Range
const gtsam::Symbol key('X', 0)
bool equality(const Errors &actual, const Errors &expected, double tol)
int add(const string &k, int v, int a)
BTree< string, int > IntTree
Array< int, Dynamic, 1 > v
bool mem(const KEY &x) const
#define LONGS_EQUAL(expected, actual)
gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:06:09