Drake
LeafSystemOutput< T > Class Template Reference

A container for the values of all output ports of a leaf System. More...

#include <drake/systems/framework/output_port_value.h>

Inheritance diagram for LeafSystemOutput< T >:
[legend]
Collaboration diagram for LeafSystemOutput< T >:
[legend]

Public Member Functions

 LeafSystemOutput ()=default
 
 ~LeafSystemOutput () override=default
 
int get_num_ports () const override
 
OutputPortValueget_mutable_port_value (int index) override
 
const OutputPortValueget_port_value (int index) const override
 
void add_port (std::unique_ptr< AbstractValue > value)
 
void add_port (std::unique_ptr< OutputPortValue > port)
 
Does not allow copy, move, or assignment
 LeafSystemOutput (const LeafSystemOutput &)=delete
 
LeafSystemOutputoperator= (const LeafSystemOutput &)=delete
 
 LeafSystemOutput (LeafSystemOutput &&)=delete
 
LeafSystemOutputoperator= (LeafSystemOutput &&)=delete
 
- Public Member Functions inherited from SystemOutput< T >
 SystemOutput ()
 
virtual ~SystemOutput ()
 
std::unique_ptr< SystemOutput< T > > Clone () const
 Returns a type-preserving clone of this SystemOutput using the NVI idiom. More...
 
const AbstractValueget_data (int index) const
 Returns the abstract value in the port at index. More...
 
const BasicVector< T > * get_vector_data (int index) const
 Returns the vector value in the port at index. More...
 
AbstractValueGetMutableData (int index)
 Returns a pointer to the data inside the port at index, and updates the version so that Contexts depending on that OutputPortValue know to invalidate their caches. More...
 
BasicVector< T > * GetMutableVectorData (int index)
 Returns a pointer to the data inside the port at index, and updates the version so that Contexts depending on that OutputPortValue know to invalidate their caches. More...
 
 SystemOutput (const SystemOutput &)=delete
 
SystemOutputoperator= (const SystemOutput &)=delete
 
 SystemOutput (SystemOutput &&)=delete
 
SystemOutputoperator= (SystemOutput &&)=delete
 

Protected Member Functions

LeafSystemOutput< T > * DoClone () const override
 The NVI implementation of Clone(). More...
 

Detailed Description

template<typename T>
class drake::systems::LeafSystemOutput< T >

A container for the values of all output ports of a leaf System.

Template Parameters
TThe type of the output data. Must be a valid Eigen scalar.

Constructor & Destructor Documentation

LeafSystemOutput ( const LeafSystemOutput< T > &  )
delete
LeafSystemOutput ( LeafSystemOutput< T > &&  )
delete
LeafSystemOutput ( )
default
~LeafSystemOutput ( )
overridedefault

Member Function Documentation

void add_port ( std::unique_ptr< AbstractValue value)
inline
void add_port ( std::unique_ptr< OutputPortValue port)
inline
LeafSystemOutput<T>* DoClone ( ) const
inlineoverrideprotectedvirtual

The NVI implementation of Clone().

Implements SystemOutput< T >.

OutputPortValue* get_mutable_port_value ( int  index)
inlineoverridevirtual

Implements SystemOutput< T >.

int get_num_ports ( ) const
inlineoverridevirtual

Implements SystemOutput< T >.

const OutputPortValue& get_port_value ( int  index) const
inlineoverridevirtual

Implements SystemOutput< T >.

LeafSystemOutput& operator= ( const LeafSystemOutput< T > &  )
delete
LeafSystemOutput& operator= ( LeafSystemOutput< T > &&  )
delete

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