26 lines
570 B
C++
26 lines
570 B
C++
|
#ifndef OBJECT_HPP_INCLUDED
|
||
|
#define OBJECT_HPP_INCLUDED
|
||
|
|
||
|
class Class;
|
||
|
|
||
|
class Object
|
||
|
{
|
||
|
public:
|
||
|
void* Obj;
|
||
|
|
||
|
Object();
|
||
|
Object(const void* Obj);
|
||
|
Object(const Object& O);
|
||
|
void* Get() const;
|
||
|
Object& operator=(const Object& O);
|
||
|
bool operator==(const Object& O) const;
|
||
|
bool operator!=(const Object& O) const;
|
||
|
bool Equals(Object O) const;
|
||
|
bool InstanceOf(Class C) const;
|
||
|
operator bool() const;
|
||
|
operator void*() const;
|
||
|
virtual ~Object();
|
||
|
};
|
||
|
|
||
|
#endif // OBJECT_HPP_INCLUDED
|