Go to the documentation of this file.
24 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
25 #include <boost/serialization/nvp.hpp>
66 operator Key()
const {
return key(); }
69 void print(
const std::string&
s =
"")
const;
75 unsigned char chr()
const {
85 operator std::string()
const;
88 std::string
string()
const {
return std::string(*
this); }
92 return c_ < comp.
c_ || (comp.
c_ == c_ && j_ < comp.
j_);
97 return comp.
c_ == c_ && comp.
j_ == j_;
102 return comp == (
Key)(*
this);
107 return comp.
c_ != c_ || comp.
j_ != j_;
112 return comp != (
Key)(*
this);
120 static std::function<bool(
Key)> ChrTest(
unsigned char c);
123 GTSAM_EXPORT
friend std::ostream &
operator<<(std::ostream &,
const Symbol &);
127 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
129 friend class boost::serialization::access;
130 template<
class ARCHIVE>
131 void serialize(ARCHIVE & ar,
const unsigned int ) {
132 ar & BOOST_SERIALIZATION_NVP(c_);
133 ar & BOOST_SERIALIZATION_NVP(j_);
147 namespace symbol_shorthand {
179 const unsigned char c_;
183 constexpr
unsigned char chr()
const {
return c_; }
constexpr unsigned char chr() const
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
Concept check for values that can be used in unit tests.
constexpr SymbolGenerator(const unsigned char c)
bool operator!=(Key comp) const
bool operator!=(const Symbol &comp) const
Symbol(unsigned char c, std::uint64_t j)
std::string string() const
Return string representation of the key.
bool operator==(const Symbol &comp) const
unsigned char chr() const
std::uint64_t symbolIndex(Key key)
void print(const Matrix &A, const string &s, ostream &stream)
Symbol(const Symbol &key)
Key symbol(unsigned char c, std::uint64_t j)
bool operator<(const Symbol &comp) const
bool operator==(Key comp) const
const gtsam::Symbol key('X', 0)
std::uint64_t index() const
unsigned char symbolChr(Key key)
unsigned __int64 uint64_t
std::uint64_t Key
Integer nonlinear key type.
Symbol operator()(const std::uint64_t j) const
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:05:21