DiscreteKeys(const std::vector< DiscreteKey > &keys)
Construct from a vector of keys.
Definition: DiscreteKey.h:49
GTSAM_EXPORT KeyVector indices() const
Return a vector of indices.
Definition: DiscreteKey.cpp:34
Included from all GTSAM files.
DiscreteKeys & operator &(const DiscreteKey &key)
Add a key (non-const!)
Definition: DiscreteKey.h:63
GTSAM_EXPORT std::map< Key, size_t > cardinalities() const
Return a map from index to cardinality.
Definition: DiscreteKey.cpp:41
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:56
std::pair< Key, size_t > DiscreteKey
Key type for discrete conditionals Includes name and cardinality.
Definition: DiscreteKey.h:34
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
DiscreteKeys(const DiscreteKey &key)
Construct from a key.
Definition: DiscreteKey.h:44
DiscreteKeys()
Default constructor.
Definition: DiscreteKey.h:40
DiscreteKeys operator &(const DiscreteKey &key1, const DiscreteKey &key2)
Create a list from two keys.
Definition: DiscreteKey.cpp:49
DiscreteKeys is a set of keys that can be assembled using the & operator.
Definition: DiscreteKey.h:37