add base module

release/4.3a0
Varun Agrawal 2022-07-26 16:47:27 -04:00
parent d6fe41d59d
commit eaac392f37
17 changed files with 20 additions and 17 deletions

View File

@ -62,7 +62,7 @@ namespace gtsam {
* convenience to avoid having lengthy types in the code. Through timing, * convenience to avoid having lengthy types in the code. Through timing,
* we've seen that the fast_pool_allocator can lead to speedups of several * we've seen that the fast_pool_allocator can lead to speedups of several
* percent. * percent.
* @addtogroup base * @ingroup base
*/ */
template<typename KEY, typename VALUE> template<typename KEY, typename VALUE>
class ConcurrentMap : public ConcurrentMapBase<KEY,VALUE> { class ConcurrentMap : public ConcurrentMapBase<KEY,VALUE> {

View File

@ -28,7 +28,7 @@ namespace gtsam {
/** /**
* Disjoint set forest using an STL map data structure underneath * Disjoint set forest using an STL map data structure underneath
* Uses rank compression and union by rank, iterator version * Uses rank compression and union by rank, iterator version
* @addtogroup base * @ingroup base
*/ */
template <class KEY> template <class KEY>
class DSFMap { class DSFMap {

View File

@ -33,7 +33,7 @@ namespace gtsam {
* A fast implementation of disjoint set forests that uses vector as underly data structure. * A fast implementation of disjoint set forests that uses vector as underly data structure.
* This is the absolute minimal DSF data structure, and only allows size_t keys * This is the absolute minimal DSF data structure, and only allows size_t keys
* Uses rank compression but not union by rank :-( * Uses rank compression but not union by rank :-(
* @addtogroup base * @ingroup base
*/ */
class GTSAM_EXPORT DSFBase { class GTSAM_EXPORT DSFBase {
@ -59,7 +59,7 @@ public:
/** /**
* DSFVector additionally keeps a vector of keys to support more expensive operations * DSFVector additionally keeps a vector of keys to support more expensive operations
* @addtogroup base * @ingroup base
*/ */
class GTSAM_EXPORT DSFVector: public DSFBase { class GTSAM_EXPORT DSFVector: public DSFBase {

View File

@ -34,7 +34,7 @@ namespace gtsam {
* convenience to avoid having lengthy types in the code. Through timing, * convenience to avoid having lengthy types in the code. Through timing,
* we've seen that the fast_pool_allocator can lead to speedups of several * we've seen that the fast_pool_allocator can lead to speedups of several
* percent. * percent.
* @addtogroup base * @ingroup base
*/ */
template<typename VALUE> template<typename VALUE>
class FastList: public std::list<VALUE, typename internal::FastDefaultAllocator<VALUE>::type> { class FastList: public std::list<VALUE, typename internal::FastDefaultAllocator<VALUE>::type> {

View File

@ -31,7 +31,7 @@ namespace gtsam {
* convenience to avoid having lengthy types in the code. Through timing, * convenience to avoid having lengthy types in the code. Through timing,
* we've seen that the fast_pool_allocator can lead to speedups of several * we've seen that the fast_pool_allocator can lead to speedups of several
* percent. * percent.
* @addtogroup base * @ingroup base
*/ */
template<typename KEY, typename VALUE> template<typename KEY, typename VALUE>
class FastMap : public std::map<KEY, VALUE, std::less<KEY>, class FastMap : public std::map<KEY, VALUE, std::less<KEY>,

View File

@ -43,7 +43,7 @@ namespace gtsam {
* fast_pool_allocator instead of the default STL allocator. This is just a * fast_pool_allocator instead of the default STL allocator. This is just a
* convenience to avoid having lengthy types in the code. Through timing, * convenience to avoid having lengthy types in the code. Through timing,
* we've seen that the fast_pool_allocator can lead to speedups of several %. * we've seen that the fast_pool_allocator can lead to speedups of several %.
* @addtogroup base * @ingroup base
*/ */
template<typename VALUE> template<typename VALUE>
class FastSet: public std::set<VALUE, std::less<VALUE>, class FastSet: public std::set<VALUE, std::less<VALUE>,

View File

@ -27,7 +27,7 @@ namespace gtsam {
/** /**
* FastVector is a type alias to a std::vector with a custom memory allocator. * FastVector is a type alias to a std::vector with a custom memory allocator.
* The particular allocator depends on GTSAM's cmake configuration. * The particular allocator depends on GTSAM's cmake configuration.
* @addtogroup base * @ingroup base
*/ */
template <typename T> template <typename T>
using FastVector = using FastVector =

View File

@ -47,7 +47,7 @@ namespace gtsam {
* matrix view. firstBlock() determines the block that appears to have index 0 for all operations * matrix view. firstBlock() determines the block that appears to have index 0 for all operations
* (except re-setting firstBlock()). * (except re-setting firstBlock()).
* *
* @addtogroup base */ * @ingroup base */
class GTSAM_EXPORT SymmetricBlockMatrix class GTSAM_EXPORT SymmetricBlockMatrix
{ {
public: public:

View File

@ -51,7 +51,7 @@ namespace gtsam {
* tests and in generic algorithms. * tests and in generic algorithms.
* *
* See macros for details on using this structure * See macros for details on using this structure
* @addtogroup base * @ingroup base
* @tparam T is the objectype this constrains to be testable - assumes print() and equals() * @tparam T is the objectype this constrains to be testable - assumes print() and equals()
*/ */
template <class T> template <class T>

View File

@ -14,7 +14,7 @@
* @brief Base exception type that uses tbb_allocator if GTSAM is compiled with TBB * @brief Base exception type that uses tbb_allocator if GTSAM is compiled with TBB
* @author Richard Roberts * @author Richard Roberts
* @date Aug 21, 2010 * @date Aug 21, 2010
* @addtogroup base * @ingroup base
*/ */
#pragma once #pragma once

View File

@ -38,7 +38,7 @@ namespace gtsam {
* row for all operations. To include all rows, rowEnd() should be set to the number of rows in * row for all operations. To include all rows, rowEnd() should be set to the number of rows in
* the matrix (i.e. one after the last true row index). * the matrix (i.e. one after the last true row index).
* *
* @addtogroup base */ * @ingroup base */
class GTSAM_EXPORT VerticalBlockMatrix class GTSAM_EXPORT VerticalBlockMatrix
{ {
public: public:

View File

@ -14,7 +14,7 @@
* @brief Functions for handling type information * @brief Functions for handling type information
* @author Varun Agrawal * @author Varun Agrawal
* @date May 18, 2020 * @date May 18, 2020
* @addtogroup base * @ingroup base
*/ */
#include <gtsam/base/types.h> #include <gtsam/base/types.h>

View File

@ -14,7 +14,7 @@
* @brief Typedefs for easier changing of types * @brief Typedefs for easier changing of types
* @author Richard Roberts * @author Richard Roberts
* @date Aug 21, 2010 * @date Aug 21, 2010
* @addtogroup base * @ingroup base
*/ */
#pragma once #pragma once

View File

@ -13,7 +13,7 @@
* @file global_includes.h * @file global_includes.h
* @brief Included from all GTSAM files * @brief Included from all GTSAM files
* @author Richard Roberts * @author Richard Roberts
* @addtogroup base * @ingroup base
*/ */
#pragma once #pragma once

View File

@ -9,6 +9,9 @@
\defgroup Sequential Solving by sequential variable elimination (QR and Cholesky) \defgroup Sequential Solving by sequential variable elimination (QR and Cholesky)
@{ @} @{ @}
\defgroup base Base
@{ @}
\defgroup basis Basis \defgroup basis Basis
@{ @} @{ @}

View File

@ -28,7 +28,7 @@ namespace gtsam {
/** /**
* @brief Binary tree * @brief Binary tree
* @addtogroup base * @ingroup base
*/ */
template<class KEY, class VALUE> template<class KEY, class VALUE>
class BTree { class BTree {

View File

@ -33,7 +33,7 @@ namespace gtsam {
* S = {S_1,S_2,...} of disjoint dynamic sets. Each set is identified by * S = {S_1,S_2,...} of disjoint dynamic sets. Each set is identified by
* a representative, which is some member of the set. * a representative, which is some member of the set.
* *
* @addtogroup base * @ingroup base
*/ */
template<class KEY> template<class KEY>
class DSF: protected BTree<KEY, KEY> { class DSF: protected BTree<KEY, KEY> {