blob: bafd2492ab1d225ec91e58886a027116e9c45a66 (
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
|
#ifndef REFERENCE_H
#define REFERENCE_H
class Reference
{
public:
explicit Reference(int objId = -1)
: m_objId(objId) {}
~Reference() {}
double objId() { return m_objId; }
void setObjId(int objId) { m_objId = objId; }
static int usesReference(Reference& r) { return r.m_objId; }
static int usesConstReference(const Reference& r) { return r.m_objId; }
void show() const;
private:
int m_objId;
};
#endif // REFERENCE_H
|