46 template<
typename Type>
48 : object(resource.handle())
54 template<
typename Type>
59 std::shared_ptr<Resource_Impl<Type> > resource = std::dynamic_pointer_cast<
Resource_Impl<Type>>(object);
61 throw Exception(
"ResourceObject type mismatch");
66 throw Exception(
"ResourceObject is null");
78 std::shared_ptr<Resource_BaseImpl> object;
Resource proxy of any type.
Definition: resource_object.h:39
bool operator>=(const ResourceObject &other) const
Definition: resource_object.h:73
Resource proxy of a specific type.
Definition: resource.h:57
bool operator!=(const ResourceObject &other) const
Definition: resource_object.h:75
ResourceObject(const Resource< Type > &resource)
Definition: resource_object.h:47
bool operator<(const ResourceObject &other) const
Definition: resource_object.h:70
bool operator==(const ResourceObject &other) const
Definition: resource_object.h:74
Top-level exception class.
Definition: exception.h:41
bool operator>(const ResourceObject &other) const
Definition: resource_object.h:72
bool is_null() const
Definition: resource_object.h:52
Resource< Type > cast()
Definition: resource_object.h:55
ResourceObject()
Definition: resource_object.h:42
bool operator<=(const ResourceObject &other) const
Definition: resource_object.h:71
Definition: resource.h:46