fix doxygen

release/4.3a0
Varun Agrawal 2022-08-31 12:25:20 -04:00
parent ca4293b70d
commit fe595bf745
1 changed files with 9 additions and 9 deletions

View File

@ -31,8 +31,8 @@
namespace gtsam { namespace gtsam {
/** /**
* HybridValues represents a collection of DiscreteValues and VectorValues. It * HybridValues represents a collection of DiscreteValues and VectorValues.
* is typically used to store the variables of a HybridGaussianFactorGraph. * It is typically used to store the variables of a HybridGaussianFactorGraph.
* Optimizing a HybridGaussianBayesNet returns this class. * Optimizing a HybridGaussianBayesNet returns this class.
*/ */
class GTSAM_EXPORT HybridValues { class GTSAM_EXPORT HybridValues {
@ -47,10 +47,10 @@ class GTSAM_EXPORT HybridValues {
/// @name Standard Constructors /// @name Standard Constructors
/// @{ /// @{
// Default constructor creates an empty HybridValues. /// Default constructor creates an empty HybridValues.
HybridValues() = default; HybridValues() = default;
// Construct from DiscreteValues and VectorValues. /// Construct from DiscreteValues and VectorValues.
HybridValues(const DiscreteValues& dv, const VectorValues& cv) HybridValues(const DiscreteValues& dv, const VectorValues& cv)
: discrete_(dv), continuous_(cv){}; : discrete_(dv), continuous_(cv){};
@ -58,7 +58,7 @@ class GTSAM_EXPORT HybridValues {
/// @name Testable /// @name Testable
/// @{ /// @{
// print required by Testable for unit testing /// print required by Testable for unit testing
void print(const std::string& s = "HybridValues", void print(const std::string& s = "HybridValues",
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const { const KeyFormatter& keyFormatter = DefaultKeyFormatter) const {
std::cout << s << ": \n"; std::cout << s << ": \n";
@ -67,7 +67,7 @@ class GTSAM_EXPORT HybridValues {
keyFormatter); // print continuous components keyFormatter); // print continuous components
}; };
// equals required by Testable for unit testing /// equals required by Testable for unit testing
bool equals(const HybridValues& other, double tol = 1e-9) const { bool equals(const HybridValues& other, double tol = 1e-9) const {
return discrete_.equals(other.discrete_, tol) && return discrete_.equals(other.discrete_, tol) &&
continuous_.equals(other.continuous_, tol); continuous_.equals(other.continuous_, tol);
@ -83,13 +83,13 @@ class GTSAM_EXPORT HybridValues {
/// Return the delta update for the continuous vectors /// Return the delta update for the continuous vectors
VectorValues continuous() const { return continuous_; } VectorValues continuous() const { return continuous_; }
// Check whether a variable with key \c j exists in DiscreteValue. /// Check whether a variable with key \c j exists in DiscreteValue.
bool existsDiscrete(Key j) { return (discrete_.find(j) != discrete_.end()); }; bool existsDiscrete(Key j) { return (discrete_.find(j) != discrete_.end()); };
// Check whether a variable with key \c j exists in VectorValue. /// Check whether a variable with key \c j exists in VectorValue.
bool existsVector(Key j) { return continuous_.exists(j); }; bool existsVector(Key j) { return continuous_.exists(j); };
// Check whether a variable with key \c j exists. /// Check whether a variable with key \c j exists.
bool exists(Key j) { return existsDiscrete(j) || existsVector(j); }; bool exists(Key j) { return existsDiscrete(j) || existsVector(j); };
/** Insert a discrete \c value with key \c j. Replaces the existing value if /** Insert a discrete \c value with key \c j. Replaces the existing value if