Drake
ExpressionAddFactory Class Reference

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

#include <drake/common/symbolic_expression_cell.h>

Public Member Functions

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

Detailed Description

Factory class to help build ExpressionAdd expressions.

Constructor & Destructor Documentation

ExpressionAddFactory ( )
default

Default constructor.

Here is the caller graph for this function:

ExpressionAddFactory ( double  constant,
std::map< Expression, double expr_to_coeff_map 
)

Constructs ExpressionAddFactory with constant and expr_to_coeff_map.

Here is the call graph for this function:

ExpressionAddFactory ( const std::shared_ptr< const ExpressionAdd > &  ptr)
explicit

Constructs ExpressionAddFactory from ptr.

Member Function Documentation

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

Adds ExpressionAdd 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:

Here is the caller 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:

ExpressionAddFactory & Negate ( )

Negates the expressions in factory.

If it represents c0 + c1 * t1 + ... + * cn * tn, this method flips it into -c0 - c1 * t1 - ... - cn * tn.

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

Here is the caller graph for this function:

ExpressionAddFactory& operator= ( const std::shared_ptr< ExpressionAdd > &  ptr)

Assigns a factory from a shared pointer to ExpressionAdd.


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