Go to the documentation of this file.
24 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
25 #include <boost/serialization/vector.hpp>
41 struct GTSAM_EXPORT
DiscreteKeys:
public std::vector<DiscreteKey> {
44 using std::vector<DiscreteKey>::vector;
54 for (
auto&& kv : cardinalities) emplace_back(kv);
69 std::map<Key,size_t> cardinalities()
const;
84 void print(
const std::string&
s =
"",
90 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
92 friend class boost::serialization::access;
93 template <
class ARCHIVE>
94 void serialize(ARCHIVE& ar,
const unsigned int ) {
95 ar& boost::serialization::make_nvp(
97 boost::serialization::base_object<std::vector<DiscreteKey>>(*
this));
const Symbol key1('v', 1)
DiscreteKeys(const std::vector< DiscreteKey > &keys)
Construct from a vector of keys.
DiscreteKeys & operator&(const DiscreteKey &key)
Add a key (non-const!)
Included from all GTSAM files.
DiscreteKeys is a set of keys that can be assembled using the & operator.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
DiscreteKeys()
Constructor for serialization.
void print(const Matrix &A, const string &s, ostream &stream)
const Symbol key2('v', 2)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
const gtsam::Symbol key('X', 0)
DiscreteKeys(const DiscreteKey &key)
Construct from a key.
DiscreteKeys(std::map< Key, size_t > cardinalities)
Construct from cardinalities.
std::pair< Key, size_t > DiscreteKey
static const EIGEN_DEPRECATED end_t end
DiscreteKeys operator&(const DiscreteKey &key1, const DiscreteKey &key2)
Create a list from two keys.
DiscreteKeys & operator&(const DiscreteKeys &keys)
Add multiple keys (non-const!)
gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:01:03