FEDRA emulsion software from the OPERA Collaboration
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Constant< T > Class Template Reference

#include <Expression.hh>

Public Member Functions

apply (unsigned int i) const
 
 Constant (const T &rhs)
 
 ~Constant ()
 

Protected Attributes

const T & rhs_
 

Detailed Description

template<class T>
class Constant< T >

Constant. A class representing constant expressions (literals) in the parse tree.

@memo Constant

Author
T. Glebe

Constructor & Destructor Documentation

◆ Constant()

template<class T >
Constant< T >::Constant ( const T &  rhs)
inline
175 :
176 rhs_(rhs) {}
const T & rhs_
Definition: Expression.hh:185

◆ ~Constant()

template<class T >
Constant< T >::~Constant ( )
inline
179{}

Member Function Documentation

◆ apply()

template<class T >
T Constant< T >::apply ( unsigned int  i) const
inline
182{ return rhs_; }

Member Data Documentation

◆ rhs_

template<class T >
const T& Constant< T >::rhs_
protected

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