Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
SelectorParams::InputPortParams Struct Reference

Detailed Description

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.

Member Function Documentation

◆ Serialize()

template<typename Archive>
void Serialize ( Archive * a)

Passes this object to an Archive.

Refer to YAML Serialization for background.

Member Data Documentation

◆ name

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.

◆ size

int size {0}

Specifies the size of the port, which must be non-negative.


The documentation for this struct was generated from the following file: