LifeV
ExpressionPower< BaseExpressionType > Class Template Reference

class ExpressionPower Class for representing a product between two expressions. More...

#include <ExpressionPower.hpp>

+ Inheritance diagram for ExpressionPower< BaseExpressionType >:
+ Collaboration diagram for ExpressionPower< BaseExpressionType >:

Private Attributes

BaseExpressionType M_l
 
Real M_exponent
 

Public Types

typedef ExpressionBase< ExpressionPower< BaseExpressionType > > base_Type
 

Constructors & Destructor

 ExpressionPower (const BaseExpressionType &l, const Real exponent)
 Full constructor using the two expressions. More...
 
 ExpressionPower (const ExpressionPower< BaseExpressionType > &expression)
 Copy constructor. More...
 
 ~ExpressionPower ()
 Destructor. More...
 

Methods

static void display (std::ostream &out=std::cout)
 Display method. More...
 

Private Methods

const BaseExpressionType & base () const
 Getter for the left hand side. More...
 
const Realexponent () const
 Getter for the right hand side. More...
 
 ExpressionPower ()
 

Additional Inherited Members

- Public Types inherited from ExpressionBase< ExpressionPower< BaseExpressionType > >
typedef ExpressionPower< BaseExpressionType > derived_Type
 
- Public Member Functions inherited from ExpressionBase< ExpressionPower< BaseExpressionType > >
 ExpressionBase ()
 Empty and only constructor. More...
 
virtual ~ExpressionBase ()
 Destructor. More...
 
const derived_Typecast () const
 Method to cast away the type and get the real (DerivedType) object. More...
 

Detailed Description

template<typename BaseExpressionType>
class LifeV::ExpressionAssembly::ExpressionPower< BaseExpressionType >

class ExpressionPower Class for representing a product between two expressions.

Author
Samuel Quinodoz samue.nosp@m.l.qu.nosp@m.inodo.nosp@m.z@ep.nosp@m.fl.ch

This class represents the product in the expression tree.

Template parameters

LExpressionType: The expression on the left side of the product operation.

RExpressionType: The expression on the right side of the product operation.

Template requirements

LExpressionType: Copiable, static display method

RExpressionType: Copiable, static display method

Definition at line 71 of file ExpressionPower.hpp.

Member Typedef Documentation

◆ base_Type

typedef ExpressionBase< ExpressionPower <BaseExpressionType> > base_Type

Definition at line 79 of file ExpressionPower.hpp.

Constructor & Destructor Documentation

◆ ExpressionPower() [1/3]

ExpressionPower ( const BaseExpressionType &  l,
const Real  exponent 
)
inline

Full constructor using the two expressions.

Definition at line 87 of file ExpressionPower.hpp.

◆ ExpressionPower() [2/3]

ExpressionPower ( const ExpressionPower< BaseExpressionType > &  expression)
inline

Copy constructor.

Definition at line 91 of file ExpressionPower.hpp.

◆ ~ExpressionPower()

~ExpressionPower ( )
inline

Destructor.

Definition at line 95 of file ExpressionPower.hpp.

◆ ExpressionPower() [3/3]

ExpressionPower ( )
private

Member Function Documentation

◆ display()

static void display ( std::ostream &  out = std::cout)
inlinestatic

Display method.

Definition at line 104 of file ExpressionPower.hpp.

◆ base()

const BaseExpressionType& base ( ) const
inline

Getter for the left hand side.

Definition at line 117 of file ExpressionPower.hpp.

◆ exponent()

const Real& exponent ( ) const
inline

Getter for the right hand side.

Definition at line 123 of file ExpressionPower.hpp.

Field Documentation

◆ M_l

BaseExpressionType M_l
private

Definition at line 141 of file ExpressionPower.hpp.

◆ M_exponent

Real M_exponent
private

Definition at line 144 of file ExpressionPower.hpp.


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