Drake
CombinedVector< ScalarType, Vector1, Vector2 > Class Template Reference

operator<<() More...

#include <drake/core/Vector.h>

Public Types

enum  { RowsAtCompileTime }
 

Public Member Functions

 CombinedVector ()
 
 CombinedVector (const Vector1< ScalarType > &first, const Vector2< ScalarType > &second)
 
template<typename Derived >
 CombinedVector (const Eigen::MatrixBase< Derived > &x)
 
template<typename Derived1 , typename Derived2 >
 CombinedVector (const Eigen::MatrixBase< Derived1 > &x1, const Eigen::MatrixBase< Derived2 > &x2)
 
template<typename Derived >
CombinedVectoroperator= (const Eigen::MatrixBase< Derived > &x)
 
const Vector1< ScalarType > & first (void) const
 
const Vector2< ScalarType > & second (void) const
 
std::size_t size () const
 

Friends

std::ostream & operator<< (std::ostream &os, const CombinedVector &x)
 
Eigen::Matrix< ScalarType, RowsAtCompileTime, 1 > toEigen (const CombinedVector< ScalarType, Vector1, Vector2 > &vec)
 

Detailed Description

template<typename ScalarType, template< typename > class Vector1, template< typename > class Vector2>
class Drake::CombinedVector< ScalarType, Vector1, Vector2 >

operator<<()

Implements the ostream operator for your vector types.

Implemented concepts:
Vector<ScalarType> Concept CombinedVector<ScalarType, Vector1, Vector2>

produces a new vector type which is the columnwise composition of vector1 and vector2

Member Enumeration Documentation

anonymous enum
Enumerator
RowsAtCompileTime 

Constructor & Destructor Documentation

CombinedVector ( )
inline
CombinedVector ( const Vector1< ScalarType > &  first,
const Vector2< ScalarType > &  second 
)
inline
CombinedVector ( const Eigen::MatrixBase< Derived > &  x)
inlineexplicit
CombinedVector ( const Eigen::MatrixBase< Derived1 > &  x1,
const Eigen::MatrixBase< Derived2 > &  x2 
)
inline

Member Function Documentation

const Vector1<ScalarType>& first ( void  ) const
inline

Here is the caller graph for this function:

CombinedVector& operator= ( const Eigen::MatrixBase< Derived > &  x)
inline

Here is the call graph for this function:

const Vector2<ScalarType>& second ( void  ) const
inline

Here is the caller graph for this function:

std::size_t size ( ) const
inline

Here is the call graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CombinedVector< ScalarType, Vector1, Vector2 > &  x 
)
friend
Eigen::Matrix<ScalarType, RowsAtCompileTime, 1> toEigen ( const CombinedVector< ScalarType, Vector1, Vector2 > &  vec)
friend

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