Drake
ExpressionMulFactory Class Reference

Factory class to help build ExpressionMul expressions. More...

#include <drake/common/symbolic_expression_cell.h>

Public Member Functions

 ExpressionMulFactory ()=default
 Default constructor. More...
 
 ExpressionMulFactory (double constant, std::map< Expression, Expression > base_to_exponent_map)
 Constructs ExpressionMulFactory with constant and base_to_exponent_map. More...
 
 ExpressionMulFactory (const std::shared_ptr< const ExpressionMul > &ptr)
 Constructs ExpressionMulFactory from ptr. More...
 
void AddExpression (const Expression &e)
 Adds e to this factory. More...
 
void Add (const std::shared_ptr< const ExpressionMul > &ptr)
 Adds ExpressionMul pointed by to this factory. More...
 
ExpressionMulFactoryoperator= (const std::shared_ptr< ExpressionMul > &ptr)
 Assigns a factory from a shared pointer to ExpressionMul. More...
 
ExpressionMulFactoryNegate ()
 Negates the expressions in factory. More...
 
Expression GetExpression () const
 Returns a symbolic expression. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 ExpressionMulFactory (const ExpressionMulFactory &)=default
 
ExpressionMulFactoryoperator= (const ExpressionMulFactory &)=default
 
 ExpressionMulFactory (ExpressionMulFactory &&)=default
 
ExpressionMulFactoryoperator= (ExpressionMulFactory &&)=default
 

Detailed Description

Factory class to help build ExpressionMul expressions.

Constructor & Destructor Documentation

ExpressionMulFactory ( )
default

Default constructor.

It constructs.

Here is the caller graph for this function:

ExpressionMulFactory ( double  constant,
std::map< Expression, Expression base_to_exponent_map 
)

Constructs ExpressionMulFactory with constant and base_to_exponent_map.

Here is the call graph for this function:

ExpressionMulFactory ( const std::shared_ptr< const ExpressionMul > &  ptr)
explicit

Constructs ExpressionMulFactory from ptr.

Member Function Documentation

void Add ( const std::shared_ptr< const ExpressionMul > &  ptr)

Adds ExpressionMul pointed by to this factory.

Here is the call graph for this function:

Here is the caller graph for this function:

void AddExpression ( const Expression e)

Adds e to this factory.

Here is the call graph for this function:

Expression GetExpression ( ) const

Returns a symbolic expression.

Here is the call graph for this function:

Here is the caller graph for this function:

ExpressionMulFactory & Negate ( )

Negates the expressions in factory.

If it represents c0 * p1 * ... * pn, this method flips it into -c0 * p1 * ... * pn.

Returns
*this.
ExpressionMulFactory& operator= ( ExpressionMulFactory &&  )
default
ExpressionMulFactory& operator= ( const ExpressionMulFactory )
default

Here is the caller graph for this function:

ExpressionMulFactory& operator= ( const std::shared_ptr< ExpressionMul > &  ptr)

Assigns a factory from a shared pointer to ExpressionMul.


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