summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Elements/SenchaArray.h
blob: d100553ac92e6b84dd3c6c95fbd8dff3d363e9ec (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
/*
 * SenchaArray.h
 *
 *  Created on: Jan 10, 2013
 *      Author: att
 */

#ifndef SENCHAARRAY_H_
#define SENCHAARRAY_H_
#include "SenchaObject.h"
#include "Element.h"
#include "../ContextManager.h"

class SenchaArray: public Element {
public:
	SenchaArray(std::string name, ContextManager * context_manager);
	SenchaArray(std::string name, ContextManager * context_manager, std::string);
	ContextManager * context_manager;
	std::string name;
	typedef int IndexNumber;

	IndexNumber add(SenchaObject value);
	void set(IndexNumber index, SenchaObject value);
	IndexNumber max_index;
	SenchaObject get(IndexNumber index);
	//lots of stuff
	virtual ~SenchaArray();
};

#endif /* SENCHAARRAY_H_ */