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

#include <Expression.hh>

Public Member Functions

apply (unsigned int i) const
 
 UnaryOp (Operator op, const RHS &rhs)
 
 ~UnaryOp ()
 

Protected Attributes

const RHS & rhs_
 

Detailed Description

template<class Operator, class RHS, class T>
class UnaryOp< Operator, RHS, T >

UnaryOp. A class representing unary operators in the parse tree.

@memo UnaryOp

Author
T. Glebe

Constructor & Destructor Documentation

◆ UnaryOp()

template<class Operator , class RHS , class T >
UnaryOp< Operator, RHS, T >::UnaryOp ( Operator  op,
const RHS &  rhs 
)
inline
146 :
147 rhs_(rhs) {}
const RHS & rhs_
Definition: Expression.hh:158

◆ ~UnaryOp()

template<class Operator , class RHS , class T >
UnaryOp< Operator, RHS, T >::~UnaryOp ( )
inline
150{}

Member Function Documentation

◆ apply()

template<class Operator , class RHS , class T >
T UnaryOp< Operator, RHS, T >::apply ( unsigned int  i) const
inline
153 {
154 return Operator::apply(rhs_.apply(i));
155 }

Member Data Documentation

◆ rhs_

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

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