replace typedef with using

release/4.3a0
Varun Agrawal 2020-12-01 17:46:03 -05:00
parent f9041846ce
commit 9bc63fa5a9
5 changed files with 14 additions and 12 deletions

View File

@ -72,8 +72,8 @@ class GTSAM_EXPORT Cal3 {
public: public:
enum { dimension = 5 }; enum { dimension = 5 };
typedef boost::shared_ptr<Cal3> ///< shared pointer to calibration object
shared_ptr; ///< shared pointer to calibration object using shared_ptr = boost::shared_ptr<Cal3>;
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{

View File

@ -53,8 +53,8 @@ class GTSAM_EXPORT Cal3Fisheye : public Cal3 {
public: public:
enum { dimension = 9 }; enum { dimension = 9 };
typedef boost::shared_ptr<Cal3Fisheye> ///< shared pointer to fisheye calibration object
shared_ptr; ///< shared pointer to fisheye calibration object using shared_ptr = boost::shared_ptr<Cal3Fisheye>;
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{

View File

@ -42,8 +42,8 @@ namespace gtsam {
*/ */
class GTSAM_EXPORT Cal3Unified : public Cal3DS2_Base { class GTSAM_EXPORT Cal3Unified : public Cal3DS2_Base {
typedef Cal3Unified This; using This = Cal3Unified;
typedef Cal3DS2_Base Base; using Base = Cal3DS2_Base;
private: private:

View File

@ -34,8 +34,9 @@ namespace gtsam {
class GTSAM_EXPORT Cal3_S2 : public Cal3 { class GTSAM_EXPORT Cal3_S2 : public Cal3 {
public: public:
enum { dimension = 5 }; enum { dimension = 5 };
typedef boost::shared_ptr<Cal3_S2>
shared_ptr; ///< shared pointer to calibration object ///< shared pointer to calibration object
using shared_ptr = boost::shared_ptr<Cal3_S2>;
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{

View File

@ -28,14 +28,15 @@ namespace gtsam {
* \nosubgrouping * \nosubgrouping
*/ */
class GTSAM_EXPORT Cal3_S2Stereo : public Cal3_S2 { class GTSAM_EXPORT Cal3_S2Stereo : public Cal3_S2 {
private: private:
double b_; double b_;
public: public:
enum { dimension = 6 }; enum { dimension = 6 };
///< shared pointer to stereo calibration object ///< shared pointer to stereo calibration object
typedef boost::shared_ptr<Cal3_S2Stereo> shared_ptr; using shared_ptr = boost::shared_ptr<Cal3_S2Stereo>;
/// @name Standard Constructors /// @name Standard Constructors
/// @ /// @
@ -111,7 +112,7 @@ namespace gtsam {
/// @name Advanced Interface /// @name Advanced Interface
/// @{ /// @{
private: private:
/** Serialization function */ /** Serialization function */
friend class boost::serialization::access; friend class boost::serialization::access;
template<class Archive> template<class Archive>