23 std::unique_ptr<LeafStateVector<T>>
Clone()
const {
24 return std::unique_ptr<LeafStateVector<T>>(
DoClone());
std::unique_ptr< LeafStateVector< T > > Clone() const
Copies the entire state to a new LeafStateVector.
Definition: leaf_state_vector.h:23
Definition: constants.h:3
StateVector is an abstract base class template for vector quantities within the state of a System...
Definition: state_vector.h:20
LeafStateVector is an abstract class template that implements StateVector for leaf Systems...
Definition: leaf_state_vector.h:17
virtual LeafStateVector< T > * DoClone() const =0
Returns a new LeafStateVector containing a copy of the entire state.
LeafStateVector()
Definition: leaf_state_vector.h:28