Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Pyston::ExpressionTreeBase< R > Class Template Reference

#include <ExpressionTree.h>

Inheritance diagram for Pyston::ExpressionTreeBase< R >:
Inheritance graph
[legend]
Collaboration diagram for Pyston::ExpressionTreeBase< R >:
Collaboration graph
[legend]

Public Member Functions

bool isCompiled () const
 
const Exceptionreason () const
 
const std::shared_ptr< Node< R > > & getTree () const
 

Protected Member Functions

 ExpressionTreeBase (bool compiled, const std::shared_ptr< Node< R > > &root, const std::shared_ptr< Exception > &reason_)
 

Protected Attributes

bool m_is_compiled
 
std::shared_ptr< Node< R > > m_root
 
std::shared_ptr< Exceptionm_reason
 

Detailed Description

template<typename R>
class Pyston::ExpressionTreeBase< R >

Definition at line 34 of file ExpressionTree.h.

Constructor & Destructor Documentation

◆ ExpressionTreeBase()

template<typename R >
Pyston::ExpressionTreeBase< R >::ExpressionTreeBase ( bool  compiled,
const std::shared_ptr< Node< R > > &  root,
const std::shared_ptr< Exception > &  reason_ 
)
inlineprotected

Definition at line 66 of file ExpressionTree.h.

Member Function Documentation

◆ getTree()

template<typename R >
const std::shared_ptr< Node< R > > & Pyston::ExpressionTreeBase< R >::getTree ( ) const
inline
Returns
The root of the expression tree

Definition at line 57 of file ExpressionTree.h.

References Pyston::ExpressionTreeBase< R >::m_root.

◆ isCompiled()

template<typename R >
bool Pyston::ExpressionTreeBase< R >::isCompiled ( ) const
inline
Returns
True if the expression tree has been fully "compiled", false if there is a wrapped call to Python under the hood

Definition at line 41 of file ExpressionTree.h.

References Pyston::ExpressionTreeBase< R >::m_is_compiled.

◆ reason()

template<typename R >
const Exception * Pyston::ExpressionTreeBase< R >::reason ( ) const
inline
Returns
If isCompiled is false, return the reason for it

Definition at line 49 of file ExpressionTree.h.

References Pyston::ExpressionTreeBase< R >::m_reason.

Member Data Documentation

◆ m_is_compiled

template<typename R >
bool Pyston::ExpressionTreeBase< R >::m_is_compiled
protected

Definition at line 62 of file ExpressionTree.h.

Referenced by Pyston::ExpressionTreeBase< R >::isCompiled().

◆ m_reason

template<typename R >
std::shared_ptr<Exception> Pyston::ExpressionTreeBase< R >::m_reason
protected

Definition at line 64 of file ExpressionTree.h.

Referenced by Pyston::ExpressionTreeBase< R >::reason().

◆ m_root

template<typename R >
std::shared_ptr<Node<R> > Pyston::ExpressionTreeBase< R >::m_root
protected

Definition at line 63 of file ExpressionTree.h.

Referenced by Pyston::ExpressionTreeBase< R >::getTree().


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