AlpacaLibrary/Include/Core/JavaClass/Object.hpp

33 lines
781 B
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef OBJECT_HPP_INCLUDED
#define OBJECT_HPP_INCLUDED
2019-06-17 16:44:48 +00:00
#include <string>
2018-12-27 18:17:09 +00:00
namespace Internal
2017-12-25 23:49:48 +00:00
{
2018-12-27 18:17:09 +00:00
class Class;
class Object
{
public:
void* Obj = nullptr;
2022-04-20 23:47:57 +00:00
Object(const void* Obj = nullptr) noexcept;
Object(Object&& Obj) noexcept;
Object(const Object& Obj) noexcept;
Object& operator=(Object&& Obj) noexcept;
Object& operator=(const Object& Obj) noexcept;
2018-12-27 18:17:09 +00:00
bool operator==(const Object& O) const;
bool operator!=(const Object& O) const;
operator bool() const;
operator void*() const;
bool Equals(Object O) const;
bool InstanceOf(Class C) const;
2019-06-17 16:44:48 +00:00
2018-12-27 18:17:09 +00:00
virtual ~Object();
};
}
2017-12-25 23:49:48 +00:00
#endif // OBJECT_HPP_INCLUDED