PrimitiveValueNode.h revision fce4895d
1/*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef PRIMITIVE_VALUE_NODE_H
6#define PRIMITIVE_VALUE_NODE_H
7
8
9#include "ValueNode.h"
10
11
12class PrimitiveType;
13
14
15class PrimitiveValueNode : public ChildlessValueNode {
16public:
17								PrimitiveValueNode(ValueNodeChild* nodeChild,
18									PrimitiveType* type);
19	virtual						~PrimitiveValueNode();
20
21	virtual	Type*				GetType() const;
22
23	virtual	status_t			ResolvedLocationAndValue(
24									ValueLoader* valueLoader,
25									ValueLocation*& _location,
26									Value*& _value);
27
28private:
29			PrimitiveType*		fType;
30};
31
32
33#endif	// PRIMITIVE_VALUE_NODE_H
34