Eigen::symbolic::SymbolExpr< tag > Class Template Reference
+ Inheritance diagram for Eigen::symbolic::SymbolExpr< tag >:

Public Types

typedef tag Tag
 

Public Member Functions

template<typename... Types>
Index eval_impl (const std::tuple< Types... > &values) const
 
Index eval_impl (const SymbolValue< Tag > &values) const
 
SymbolValue< Tagoperator= (Index val) const
 
 SymbolExpr ()
 
- Public Member Functions inherited from Eigen::symbolic::BaseExpr< SymbolExpr< tag > >
const SymbolExpr< tag > & derived () const
 
Index eval (const T &values) const
 
Index eval (Types &&... values) const
 
ProductExpr< SymbolExpr< tag >, OtherDerived > operator* (const BaseExpr< OtherDerived > &b) const
 
ProductExpr< SymbolExpr< tag >, ValueExpr<> > operator* (Index a) const
 
ProductExpr< SymbolExpr< tag >, ValueExpr< internal::FixedInt< N > > > operator* (internal::FixedInt< N >) const
 
AddExpr< SymbolExpr< tag >, OtherDerived > operator+ (const BaseExpr< OtherDerived > &b) const
 
AddExpr< SymbolExpr< tag >, ValueExpr<> > operator+ (Index b) const
 
AddExpr< SymbolExpr< tag >, ValueExpr< internal::FixedInt< N > > > operator+ (internal::FixedInt< N >) const
 
NegateExpr< SymbolExpr< tag > > operator- () const
 
AddExpr< SymbolExpr< tag >, NegateExpr< OtherDerived > > operator- (const BaseExpr< OtherDerived > &b) const
 
AddExpr< SymbolExpr< tag >, ValueExpr<> > operator- (Index a) const
 
AddExpr< SymbolExpr< tag >, ValueExpr< internal::FixedInt<-N > > > operator- (internal::FixedInt< N >) const
 
QuotientExpr< SymbolExpr< tag >, OtherDerived > operator/ (const BaseExpr< OtherDerived > &b) const
 
QuotientExpr< SymbolExpr< tag >, ValueExpr<> > operator/ (Index a) const
 
QuotientExpr< SymbolExpr< tag >, ValueExpr< internal::FixedInt< N > > > operator/ (internal::FixedInt< N >) const
 

Detailed Description

template<typename tag>
class Eigen::symbolic::SymbolExpr< tag >

Expression of a symbol uniquely identified by the template parameter type tag

Definition at line 184 of file SymbolicIndex.h.

Member Typedef Documentation

◆ Tag

template<typename tag >
typedef tag Eigen::symbolic::SymbolExpr< tag >::Tag

Alias to the template parameter tag

Definition at line 188 of file SymbolicIndex.h.

Constructor & Destructor Documentation

◆ SymbolExpr()

template<typename tag >
Eigen::symbolic::SymbolExpr< tag >::SymbolExpr ( )
inline

Definition at line 190 of file SymbolicIndex.h.

190 {}

Member Function Documentation

◆ eval_impl() [1/2]

template<typename tag >
template<typename... Types>
Index Eigen::symbolic::SymbolExpr< tag >::eval_impl ( const std::tuple< Types... > &  values) const
inline

Definition at line 204 of file SymbolicIndex.h.

204 { return std::get<SymbolValue<Tag> >(values).value(); }

◆ eval_impl() [2/2]

template<typename tag >
Index Eigen::symbolic::SymbolExpr< tag >::eval_impl ( const SymbolValue< Tag > &  values) const
inline

Definition at line 200 of file SymbolicIndex.h.

200 { return values.value(); }

◆ operator=()

template<typename tag >
SymbolValue<Tag> Eigen::symbolic::SymbolExpr< tag >::operator= ( Index  val) const
inline

Associate the value val to the given symbol *this, uniquely identified by its Tag.

The returned object should be passed to ExprBase::eval() to evaluate a given expression with this specified runtime-time value.

Definition at line 196 of file SymbolicIndex.h.

196  {
197  return SymbolValue<Tag>(val);
198  }

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