1/*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include "Variable.h"
8
9#include "ObjectID.h"
10#include "Type.h"
11#include "ValueLocation.h"
12
13
14Variable::Variable(ObjectID* id, const BString& name, Type* type,
15	ValueLocation* location)
16	:
17	fID(id),
18	fName(name),
19	fType(type),
20	fLocation(location)
21{
22	fID->AcquireReference();
23	fType->AcquireReference();
24	fLocation->AcquireReference();
25}
26
27
28Variable::~Variable()
29{
30	fID->ReleaseReference();
31	fType->ReleaseReference();
32	fLocation->ReleaseReference();
33}
34