Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > Class Template Reference

Expression of a coefficient wise version of the C++ ternary operator ?: More...

#include <Select.h>

Inheritance diagram for Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

const Scalar coeff (int i) const
const Scalar coeff (int i, int j) const
int cols () const
int rows () const
 Select (const ConditionMatrixType &conditionMatrix, const ThenMatrixType &thenMatrix, const ElseMatrixType &elseMatrix)

Protected Attributes

const ConditionMatrixType::Nested m_condition
const ElseMatrixType::Nested m_else
const ThenMatrixType::Nested m_then

Detailed Description

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
class Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >

Expression of a coefficient wise version of the C++ ternary operator ?:

Parameters:
ConditionMatrixType the type of the condition expression which must be a boolean matrix
ThenMatrixType the type of the then expression
ElseMatrixType the type of the else expression

This class represents an expression of a coefficient wise version of the C++ ternary operator ?:. It is the return type of MatrixBase::select() and most of the time this is the only way it is used.

See also:
MatrixBase::select(const MatrixBase<ThenDerived>&, const MatrixBase<ElseDerived>&) const

Definition at line 64 of file Select.h.


Constructor & Destructor Documentation

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::Select ( const ConditionMatrixType &  conditionMatrix,
const ThenMatrixType &  thenMatrix,
const ElseMatrixType &  elseMatrix 
) [inline]

Definition at line 71 of file Select.h.


Member Function Documentation

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff ( int  i  )  const [inline]
template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
const Scalar Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::coeff ( int  i,
int  j 
) const [inline]
template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
int Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::cols (  )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.

Definition at line 81 of file Select.h.

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
int Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::rows (  )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from MatrixBase< Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType > >.

Definition at line 80 of file Select.h.


Member Data Documentation

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
const ConditionMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_condition [protected]

Definition at line 100 of file Select.h.

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
const ElseMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_else [protected]

Definition at line 102 of file Select.h.

template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType>
const ThenMatrixType::Nested Select< ConditionMatrixType, ThenMatrixType, ElseMatrixType >::m_then [protected]

Definition at line 101 of file Select.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:22 2013