CombinedVectorUtil.
More...
#include <drake/core/Vector.h>
|
typedef internal::template CombinedVectorHelper< Vector1, Vector2, Vector2< double >::RowsAtCompileTime==0 > | helper |
|
template<typename ScalarType > |
using | type = typename helper::template type< ScalarType > |
|
|
template<typename ScalarType > |
static Vector1< ScalarType > | first (const typename helper::template type< ScalarType > &vec) |
|
template<typename ScalarType > |
static Vector2< ScalarType > | second (const typename helper::template type< ScalarType > &vec) |
|
template<typename ScalarType > |
static helper::template type< ScalarType > | combine (const Vector1< ScalarType > &vec1, const Vector2< ScalarType > &vec2) |
|
template<template< typename > class Vector1, template< typename > class Vector2, typename Vec1IsNull = void>
struct Drake::CombinedVectorUtil< Vector1, Vector2, Vec1IsNull >
CombinedVectorUtil.
provides logic to build combined vectors and access the first and second elements of the combined vector, handling the case when the combined vector builder could have returned the original type
Uses template aliasing so that combining a vector with the NullVector simply returns the orginal vector type.
typedef internal::template CombinedVectorHelper< Vector1, Vector2, Vector2<double>::RowsAtCompileTime == 0> helper |
using type = typename helper::template type<ScalarType> |
static helper::template type<ScalarType> combine |
( |
const Vector1< ScalarType > & |
vec1, |
|
|
const Vector2< ScalarType > & |
vec2 |
|
) |
| |
|
inlinestatic |
static Vector1<ScalarType> first |
( |
const typename helper::template type< ScalarType > & |
vec | ) |
|
|
inlinestatic |
static Vector2<ScalarType> second |
( |
const typename helper::template type< ScalarType > & |
vec | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: