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;
Resource proxy of any type.
Definition: resource_object.h:40
Resource proxy of a specific type.
Definition: resource.h:58
bool operator==(const ResourceObject &other) const
Definition: resource_object.h:75
Resource< Type > cast()
Definition: resource_object.h:56
bool operator<=(const ResourceObject &other) const
Definition: resource_object.h:72
Top-level exception class.
Definition: exception.h:42
bool operator>=(const ResourceObject &other) const
Definition: resource_object.h:74
ResourceObject(const Resource< Type > &resource)
Definition: resource_object.h:48
bool operator!=(const ResourceObject &other) const
Definition: resource_object.h:76
bool operator>(const ResourceObject &other) const
Definition: resource_object.h:73
bool operator<(const ResourceObject &other) const
Definition: resource_object.h:71
bool is_null() const
Definition: resource_object.h:53
Definition: resource.h:47
ResourceObject()
Definition: resource_object.h:43