Lines Matching defs:Resource
13 /// This file defines a <code>Resource</code> type representing data associated
19 /// A reference counted module resource.
20 class Resource {
23 Resource();
25 /// A constructor for copying a resource.
27 /// @param[in] other A <code>Resource</code>.
28 Resource(const Resource& other);
31 virtual ~Resource();
33 /// This function assigns one <code>Resource</code> to another
34 /// <code>Resource</code>.
36 /// @param[in] other A Resource.
38 /// @return A Resource containing the assigned Resource.
39 Resource& operator=(const Resource& other);
41 /// This functions determines if this resource is invalid or
44 /// @return true if this resource is invalid or uninitialized.
49 /// This function releases ownership of this resource and returns it to the
52 /// Note that the reference count on the resource is unchanged and the caller
53 /// needs to release the resource.
62 /// @param[in] resource A <code>PP_Resource</code> corresponding to a
63 /// resource.
64 explicit Resource(PP_Resource resource);
68 Resource(PassRef, PP_Resource resource);
71 /// initialize this <code>Resource</code> with a <code>PP_Resource</code>
74 /// current resource.
77 /// will call the default <code>Resource</code> constructor, then make a call
78 /// to create a resource. It then wants to assign the new resource (which,
82 /// @param[in] resource A <code>PP_Resource</code> corresponding to a
83 /// resource.
84 void PassRefFromConstructor(PP_Resource resource);
86 /// Sets this resource to null. This releases ownership of the resource.
97 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) {
101 inline bool operator!=(const pp::Resource& lhs, const pp::Resource& rhs) {