using rather than typedef

release/4.3a0
Frank Dellaert 2019-06-03 12:33:23 -04:00
parent 3b51bae5c1
commit a9e955d56e
2 changed files with 8 additions and 7 deletions

View File

@ -97,11 +97,11 @@ class GTSAM_EXPORT ISAM2 : public BayesTree<ISAM2Clique> {
///< periodic relinearization ///< periodic relinearization
public: public:
typedef ISAM2 This; ///< This class using This = ISAM2; ///< This class
typedef BayesTree<ISAM2Clique> Base; ///< The BayesTree base class using Base = BayesTree<ISAM2Clique>; ///< The BayesTree base class
typedef Base::Clique Clique; ///< A clique using Clique = Base::Clique; ///< A clique
typedef Base::sharedClique sharedClique; ///< Shared pointer to a clique using sharedClique = Base::sharedClique; ///< Shared pointer to a clique
typedef Base::Cliques Cliques; ///< List of Clique typedef from base class using Cliques = Base::Cliques; ///< List of Cliques
/** Create an empty ISAM2 instance */ /** Create an empty ISAM2 instance */
explicit ISAM2(const ISAM2Params& params); explicit ISAM2(const ISAM2Params& params);

View File

@ -110,7 +110,8 @@ struct GTSAM_EXPORT ISAM2Result {
/** All keys that were marked during the update process. */ /** All keys that were marked during the update process. */
KeySet markedKeys; KeySet markedKeys;
/** A struct holding detailed results, which must be enabled with /**
* A struct holding detailed results, which must be enabled with
* ISAM2Params::enableDetailedResults. * ISAM2Params::enableDetailedResults.
*/ */
struct DetailedResults { struct DetailedResults {
@ -146,7 +147,7 @@ struct GTSAM_EXPORT ISAM2Result {
inRootClique(false) {} inRootClique(false) {}
}; };
typedef FastMap<Key, VariableStatus> StatusMap; using StatusMap = FastMap<Key, VariableStatus>;
/// The status of each variable during this update, see VariableStatus. /// The status of each variable during this update, see VariableStatus.
StatusMap variableStatus; StatusMap variableStatus;