Public Types | Public Member Functions

ct_binary_expr< LHS, OP, RHS > Class Template Reference

A compile time expression consisting of two operands and one operation (taking two arguments). More...

#include <ct_binary_expr.hpp>

Public Types

typedef OP::numeric_type numeric_type
typedef LHS lhs_type
typedef OP op_type
typedef RHS rhs_type

Public Member Functions

 ct_binary_expr ()
 ct_binary_expr (internal_lhs_type lhs, internal_rhs_type rhs)
internal_lhs_type lhs () const
internal_rhs_type rhs () const
numeric_type operator() () const
template<typename VectorType >
numeric_type operator() (VectorType const &v) const

Detailed Description

template<typename LHS, typename OP, typename RHS>
class viennamath::ct_binary_expr< LHS, OP, RHS >

A compile time expression consisting of two operands and one operation (taking two arguments).

Template Parameters:
LHS The first operand ('left hand side')
OP The operation (addition, subtraction, etc.)
RHS The second operand ('right hand side')

Member Typedef Documentation

typedef LHS lhs_type
typedef OP::numeric_type numeric_type
typedef OP op_type
typedef RHS rhs_type

Constructor & Destructor Documentation

ct_binary_expr (  )  [inline, explicit]
ct_binary_expr ( internal_lhs_type  lhs,
internal_rhs_type  rhs 
) [inline, explicit]

Member Function Documentation

internal_lhs_type lhs (  )  const [inline]
numeric_type operator() ( VectorType const &  v  )  const [inline]
numeric_type operator() (  )  const [inline]
internal_rhs_type rhs (  )  const [inline]

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