summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/yap/example/autodiff_library/Stack.h
blob: 30f5a3f078024aa0cfafc6470cc2271ea0685d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Stack.h
 *
 *  Created on: 15 Apr 2013
 *      Author: s0965328
 */

#ifndef STACK_H_
#define STACK_H_

#include <stack>

namespace AutoDiff {

using namespace std;
#define SV (Stack::vals)
#define SD (Stack::diff)

class Stack {
public:
	Stack();
	double pop_back();
	void push_back(double& v);
	double& peek();
	unsigned int size();
	void clear();
	virtual ~Stack();

	stack<double> lifo;

	static Stack* diff;
	static Stack* vals;


};

}
#endif /* STACK_H_ */