JustCpp
Repo wih C++ stuff
Loading...
Searching...
No Matches
MathOperations Namespace Reference

Enumerations

enum  OPERATION { ADD , SUBSTRACT , MULTIPLY , DIVIDE }
 

Functions

int add (int op1, int op2)
 
int substract (int op1, int op2)
 
int multiply (int op1, int op2)
 
int divide (int op1, int op2)
 

Variables

std::map< int, std::string > operationMap
 

Enumeration Type Documentation

◆ OPERATION

Enumerator
ADD 
SUBSTRACT 
MULTIPLY 
DIVIDE 

Function Documentation

◆ add()

int MathOperations::add ( int op1,
int op2 )
Here is the caller graph for this function:

◆ divide()

int MathOperations::divide ( int op1,
int op2 )
Here is the caller graph for this function:

◆ multiply()

int MathOperations::multiply ( int op1,
int op2 )
Here is the caller graph for this function:

◆ substract()

int MathOperations::substract ( int op1,
int op2 )
Here is the caller graph for this function:

Variable Documentation

◆ operationMap

std::map<int, std::string> MathOperations::operationMap
Initial value:
= {
{ADD, "Addition"},
{SUBSTRACT, "Substraction"},
{MULTIPLY, "Multiply"},
{DIVIDE, "Division"}
}
@ MULTIPLY
Definition simpleCalc.hpp:16
@ ADD
Definition simpleCalc.hpp:14
@ SUBSTRACT
Definition simpleCalc.hpp:15
@ DIVIDE
Definition simpleCalc.hpp:17