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 /* ************************************************************************* */
TestRegistry::runAllTests
static int runAllTests(TestResult &result)
Definition: TestRegistry.cpp:27
main
int main()
Definition: testFastContainers.cpp:29
FastVector.h
A thin wrapper around std::vector that uses a custom allocator.
EXPECT
#define EXPECT(condition)
Definition: Test.h:150
TestHarness.h
gtsam::FastSet< Key >
gtsam::KeyVector
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:92
Key.h
FastSet.h
A thin wrapper around std::set that uses boost's fast_pool_allocator.
init_vector
void init_vector(Vector &X, int size)
Definition: init_vector.hh:28
TestResult
Definition: TestResult.h:26
gtsam
traits
Definition: chartTesting.h:28
gtsam::TEST
TEST(SmartFactorBase, Pinhole)
Definition: testSmartFactorBase.cpp:38


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:09:14