41 : i_(static_cast<
std::uint32_t>(key >> 32)),
42 j_(static_cast<
std::uint32_t>(key)) {}
49 Key key()
const {
return ((std::uint64_t)
i_ << 32) |
j_; }
52 operator Key()
const {
return key(); }
55 inline std::uint32_t
i()
const {
return i_; }
58 inline std::uint32_t
j()
const {
return j_; }
61 operator std::string()
const;
64 friend GTSAM_EXPORT std::ostream& operator<<(std::ostream&,
const EdgeKey&);
71 void print(
const std::string& s =
"")
const;
75 return (*
this) == expected;
Concept check for values that can be used in unit tests.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition Matrix.cpp:143
std::uint64_t Key
Integer nonlinear key type.
Definition types.h:43
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
Key key() const
Cast to Key.
Definition EdgeKey.h:49
std::uint32_t i_
Upper 32 bits.
Definition EdgeKey.h:27
EdgeKey(std::uint32_t i, std::uint32_t j)
Constructor.
Definition EdgeKey.h:38
bool equals(const EdgeKey &expected, double tol=0.0) const
Checks if this EdgeKey is equal to another, tolerance is ignored.
Definition EdgeKey.h:74
EdgeKey()
Default constructor.
Definition EdgeKey.h:35
std::uint32_t j() const
Retrieve low 32 bits.
Definition EdgeKey.h:58
std::uint32_t i() const
Retrieve high 32 bits.
Definition EdgeKey.h:55
std::uint32_t j_
Lower 32 bits.
Definition EdgeKey.h:28