Helper struct for inputs.
#include <drake/systems/primitives/selector.h>
Public Member Functions | |
| template<typename Archive> | |
| void | Serialize (Archive *a) |
| Passes this object to an Archive. | |
Public Attributes | |
| std::optional< std::string > | name |
| (Optional) Specifies a name for the port. | |
| int | size {0} |
| Specifies the size of the port, which must be non-negative. | |
| void Serialize | ( | Archive * | a | ) |
Passes this object to an Archive.
Refer to YAML Serialization for background.
| std::optional<std::string> name |
(Optional) Specifies a name for the port.
When given, the name must be a valid port name. When unset, the port will use kDefaultName.
| int size {0} |
Specifies the size of the port, which must be non-negative.