Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
gtsam::internal::ConstantExpression< T > Class Template Reference

Constant Expression. More...

#include <ExpressionNode.h>

Inheritance diagram for gtsam::internal::ConstantExpression< T >:
Inheritance graph
[legend]

Public Member Functions

void print (const std::string &indent="") const override
 Print. More...
 
T traceExecution (const Values &values, ExecutionTrace< T > &trace, ExecutionTraceStorage *traceStorage) const override
 Construct an execution trace for reverse AD. More...
 
T value (const Values &values) const override
 Return value. More...
 
 ~ConstantExpression () override
 Destructor. More...
 
- Public Member Functions inherited from gtsam::internal::ExpressionNode< T >
virtual void dims (std::map< Key, int > &map) const
 Return dimensions for each argument, as a map. More...
 
virtual std::set< Keykeys () const
 Return keys that play in this expression as a set. More...
 
size_t traceSize () const
 
virtual ~ExpressionNode ()
 Destructor. More...
 

Private Member Functions

 ConstantExpression (const T &value)
 Constructor with a value, yielding a constant. More...
 

Private Attributes

T constant_
 The constant value. More...
 

Friends

class Expression< T >
 

Additional Inherited Members

- Protected Member Functions inherited from gtsam::internal::ExpressionNode< T >
 ExpressionNode (size_t traceSize=0)
 Constructor, traceSize is size of the execution trace of expression rooted here. More...
 
- Protected Attributes inherited from gtsam::internal::ExpressionNode< T >
size_t traceSize_
 

Detailed Description

template<class T>
class gtsam::internal::ConstantExpression< T >

Constant Expression.

Definition at line 119 of file ExpressionNode.h.

Constructor & Destructor Documentation

template<class T >
gtsam::internal::ConstantExpression< T >::ConstantExpression ( const T value)
inlineprivate

Constructor with a value, yielding a constant.

Definition at line 125 of file ExpressionNode.h.

template<class T >
gtsam::internal::ConstantExpression< T >::~ConstantExpression ( )
inlineoverride

Destructor.

Definition at line 134 of file ExpressionNode.h.

Member Function Documentation

template<class T >
void gtsam::internal::ConstantExpression< T >::print ( const std::string &  indent = "") const
inlineoverridevirtual

Print.

Implements gtsam::internal::ExpressionNode< T >.

Definition at line 138 of file ExpressionNode.h.

template<class T >
T gtsam::internal::ConstantExpression< T >::traceExecution ( const Values values,
ExecutionTrace< T > &  trace,
ExecutionTraceStorage traceStorage 
) const
inlineoverridevirtual

Construct an execution trace for reverse AD.

Implements gtsam::internal::ExpressionNode< T >.

Definition at line 148 of file ExpressionNode.h.

template<class T >
T gtsam::internal::ConstantExpression< T >::value ( const Values values) const
inlineoverridevirtual

Return value.

Implements gtsam::internal::ExpressionNode< T >.

Definition at line 143 of file ExpressionNode.h.

Friends And Related Function Documentation

template<class T >
friend class Expression< T >
friend

Definition at line 129 of file ExpressionNode.h.

Member Data Documentation

template<class T >
T gtsam::internal::ConstantExpression< T >::constant_
private

The constant value.

Definition at line 122 of file ExpressionNode.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:37