47 template<
typename Type>
49 : object(resource.handle())
55 template<
typename Type>
60 std::shared_ptr<Resource_Impl<Type> > resource = std::dynamic_pointer_cast<Resource_Impl<Type> >(object);
62 throw Exception(
"ResourceObject type mismatch");
67 throw Exception(
"ResourceObject is null");
79 std::shared_ptr<Resource_BaseImpl> object;
bool operator==(const ResourceObject &other) const
Definition: resource_object.h:75
bool operator>=(const ResourceObject &other) const
Definition: resource_object.h:74
ResourceObject()
Definition: resource_object.h:43
Resource< Type > cast()
Definition: resource_object.h:56
ResourceObject(const Resource< Type > &resource)
Definition: resource_object.h:48
bool is_null() const
Definition: resource_object.h:53
bool operator!=(const ResourceObject &other) const
Definition: resource_object.h:76
bool operator<(const ResourceObject &other) const
Definition: resource_object.h:71
bool operator>(const ResourceObject &other) const
Definition: resource_object.h:73
Resource proxy of any type.
Definition: resource_object.h:41
Top-level exception class.
Definition: exception.h:43
Resource proxy of a specific type.
Definition: resource.h:59
bool operator<=(const ResourceObject &other) const
Definition: resource_object.h:72