Drake
CombinedVectorUtil< Vector1, Vector2, Vec1IsNull > Struct Template Reference

CombinedVectorUtil. More...

#include <drake/core/Vector.h>

Public Types

typedef internal::template CombinedVectorHelper< Vector1, Vector2, Vector2< double >::RowsAtCompileTime==0 > helper
 
template<typename ScalarType >
using type = typename helper::template type< ScalarType >
 

Static Public Member Functions

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)
 

Detailed Description

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.

Member Typedef Documentation

typedef internal::template CombinedVectorHelper< Vector1, Vector2, Vector2<double>::RowsAtCompileTime == 0> helper
using type = typename helper::template type<ScalarType>

Member Function Documentation

static helper::template type<ScalarType> combine ( const Vector1< ScalarType > &  vec1,
const Vector2< ScalarType > &  vec2 
)
inlinestatic

Here is the caller graph for this function:

static Vector1<ScalarType> first ( const typename helper::template type< ScalarType > &  vec)
inlinestatic

Here is the caller graph for this function:

static Vector2<ScalarType> second ( const typename helper::template type< ScalarType > &  vec)
inlinestatic

Here is the caller graph for this function:


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