FEDRA emulsion software from the OPERA Collaboration
BinaryOp< Operator, LHS, RHS, T > Class Template Reference

#include <Expression.hh>

Public Member Functions

apply (unsigned int i) const
 
 BinaryOp (Operator op, const LHS &lhs, const RHS &rhs)
 
 ~BinaryOp ()
 

Protected Attributes

const LHS & lhs_
 
const RHS & rhs_
 

Detailed Description

template<class Operator, class LHS, class RHS, class T>
class BinaryOp< Operator, LHS, RHS, T >

BinaryOp. A class representing binary operators in the parse tree.

@memo BinaryOp

Author
T. Glebe

Constructor & Destructor Documentation

◆ BinaryOp()

template<class Operator , class LHS , class RHS , class T >
BinaryOp< Operator, LHS, RHS, T >::BinaryOp ( Operator  op,
const LHS &  lhs,
const RHS &  rhs 
)
inline
116 :
117 lhs_(lhs), rhs_(rhs) {}
const RHS & rhs_
Definition: Expression.hh:129
const LHS & lhs_
Definition: Expression.hh:128

◆ ~BinaryOp()

template<class Operator , class LHS , class RHS , class T >
BinaryOp< Operator, LHS, RHS, T >::~BinaryOp ( )
inline
120{}

Member Function Documentation

◆ apply()

template<class Operator , class LHS , class RHS , class T >
T BinaryOp< Operator, LHS, RHS, T >::apply ( unsigned int  i) const
inline
123 {
124 return Operator::apply(lhs_.apply(i), rhs_.apply(i));
125 }

Member Data Documentation

◆ lhs_

template<class Operator , class LHS , class RHS , class T >
const LHS& BinaryOp< Operator, LHS, RHS, T >::lhs_
protected

◆ rhs_

template<class Operator , class LHS , class RHS , class T >
const RHS& BinaryOp< Operator, LHS, RHS, T >::rhs_
protected

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