testFastContainers.cpp
Go to the documentation of this file.
1 
10 #include <gtsam/inference/Key.h>
11 #include <gtsam/base/FastSet.h>
12 #include <gtsam/base/FastVector.h>
13 
15 
16 using namespace gtsam;
17 
18 /* ************************************************************************* */
19 TEST( testFastContainers, KeySet ) {
20 
21  KeyVector init_vector {2, 3, 4, 5};
22 
23  KeySet actSet(init_vector);
24  KeySet expSet{2, 3, 4, 5};
25  EXPECT(actSet == expSet);
26 }
27 
28 /* ************************************************************************* */
29 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
30 /* ************************************************************************* */
static int runAllTests(TestResult &result)
#define EXPECT(condition)
Definition: Test.h:150
int main()
A thin wrapper around std::vector that uses a custom allocator.
traits
Definition: chartTesting.h:28
void init_vector(Vector &X, int size)
Definition: init_vector.hh:28
TEST(SmartFactorBase, Pinhole)
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:86
A thin wrapper around std::set that uses boost&#39;s fast_pool_allocator.


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:38:08