57 void print(
const std::string&
s =
"")
const;
67 inline unsigned char label()
const {
return label_; }
70 inline unsigned char chr()
const {
return c_; }
73 inline size_t index()
const {
return j_; }
76 operator std::string()
const;
92 static std::function<bool(gtsam::Key)> TypeTest(
unsigned char c);
95 static std::function<bool(gtsam::Key)> LabelTest(
unsigned char label);
98 static std::function<bool(gtsam::Key)> TypeLabelTest(
unsigned char c,
unsigned char label);
115 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 117 friend class boost::serialization::access;
118 template<
class ARCHIVE>
119 void serialize(ARCHIVE & ar,
const unsigned int ) {
120 ar & BOOST_SERIALIZATION_NVP(c_);
121 ar & BOOST_SERIALIZATION_NVP(label_);
122 ar & BOOST_SERIALIZATION_NVP(j_);
void print(const Matrix &A, const string &s, ostream &stream)
const gtsam::Symbol key('X', 0)
unsigned char chr() const
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
bool operator!=(const Matrix &A, const Matrix &B)
bool operator<(const benchmark_t &b1, const benchmark_t &b2)
std::string serialize(const T &input)
serializes to a string
LabeledSymbol newLabel(unsigned char label) const
unsigned char mrsymbolLabel(Key key)
bool operator==(const Matrix &A, const Matrix &B)
unsigned __int64 uint64_t
unsigned char label() const
Key mrsymbol(unsigned char c, unsigned char label, size_t j)
LabeledSymbol upper() const
unsigned char mrsymbolChr(Key key)
std::uint64_t Key
Integer nonlinear key type.
size_t mrsymbolIndex(Key key)
LabeledSymbol newChr(unsigned char c) const
LabeledSymbol lower() const
bool equals(const LabeledSymbol &expected, double tol=0.0) const