cpplatex
 All Classes Functions Pages
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
latex::math::Equation< LHS, RHS > Class Template Reference

Public Types

using LHSType = LHS
 
using RHSType = RHS
 

Public Member Functions

 Equation (LHS lhs, RHS rhs)
 
 Equation (const std::string &label, LHS lhs, RHS rhs)
 
void insert_label (std::ostream &os) const
 
auto solve ()
 
std::string latex () const
 

Protected Attributes

LHS lhs
 
RHS rhs
 
std::string label
 

Static Protected Attributes

constexpr static const char * open_context = "\\begin{equation}"
 
constexpr static const char * close_context = "\\end{equation}"
 

Friends

std::ostream & operator<< (std::ostream &os, const Equation &eq)
 

Member Function Documentation

template<typename LHS , typename RHS >
std::string latex::math::Equation< LHS, RHS >::latex ( ) const
inline

Output the latex formatted version of the eqation.

template<typename LHS , typename RHS >
auto latex::math::Equation< LHS, RHS >::solve ( )
inline

This does not solve for variables or balance and solve equations.

Simply reduces the right hand side yielding a numeric value. If a non-ValuedVariable variable is included, an exception should be thrown.


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