Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1556a31949c140e80466fa9008ef27aac52b0020 (plain) (blame)
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
39
40
41
42
/*
 * Address.h
 *
 *  Created on: 06.06.2012
 *      Author: karlitsc
 */

#ifndef ADDRESS_H_
#define ADDRESS_H_

#include <string>

namespace etRuntime {

class Address {
public:
	Address(int nodeID, int threadID, int objectID);
	Address(const Address & right);
	Address & operator = (Address s);
	bool operator< (const Address& right) const;
	~Address();

	std::string toString();
	std::string toID();

	Address createInc(int i);
	bool isValid() const {
		return (m_nodeID != 0) && (m_threadID != 0) && (m_objectID != 0);
	};

	int m_nodeID;
	int m_threadID;
	int m_objectID;

private:
	Address();
};

} /* namespace etRuntime */
#endif /* ADDRESS_H_ */


Back to the top