Files
Upsilon/apps/graph/function_store.h
Romain Goyet 00afebbe2d GraphApp: Use a FunctionStore
Change-Id: Ib75947c40167489726fafc493ccb0ebf2862142b
2016-08-22 14:40:07 +02:00

23 lines
415 B
C++

#ifndef GRAPH_FUNCTION_STORE_H
#define GRAPH_FUNCTION_STORE_H
#include "function.h"
namespace Graph {
class FunctionStore {
public:
FunctionStore();
Function * functionAtIndex(int i);
void pushFunction(const char * functionText);
int numberOfFunctions();
private:
int m_numberOfFunctions;
static constexpr int k_maxNumberOfFunctions = 8;
Function m_functions[k_maxNumberOfFunctions];
};
}
#endif