Drake
Drake C++ Documentation
pack_value.h File Reference
#include <memory>
#include "drake/common/drake_assert.h"
#include "drake/common/value.h"
Include dependency graph for pack_value.h:

Namespaces

 drake
 
 drake::systems
 

Functions

template<typename T >
std::unique_ptr< AbstractValue > PackValue (T value)
 Makes a new AbstractValue containing the value. More...
 
template<typename T >
UnpackValue (const AbstractValue &value)
 Extracts data of type T from the given value, or throws if the value does not contain type T. More...
 
int UnpackIntValue (const AbstractValue *value)
 Extracts an integer from the given value, or aborts if the value does not contain an integer. More...
 
int UnpackIntValue (const AbstractValue &value)
 Extracts an integer from the given value, or aborts if the value does not contain an integer. More...