Lines Matching refs:resource
13 /// This file defines a <code>Resource</code> type representing data associated
17 /// A reference counted module resource.
18 class Resource {
21 Resource();
23 /// A constructor for copying a resource.
25 /// @param[in] other A <code>Resource</code>.
26 Resource(const Resource& other);
29 virtual ~Resource();
31 /// This function assigns one <code>Resource</code> to another
32 /// <code>Resource</code>.
34 /// @param[in] other A Resource.
36 /// @return A Resource containing the assigned Resource.
37 Resource& operator=(const Resource& other);
39 /// This functions determines if this resource is invalid or
42 /// @return true if this resource is invalid or uninitialized.
47 /// This function releases ownership of this resource and returns it to the
50 /// Note that the reference count on the resource is unchanged and the caller
51 /// needs to release the resource.
60 /// @param[in] resource A <code>PP_Resource</code> corresponding to a
61 /// resource.
62 explicit Resource(PP_Resource resource);
66 Resource(PassRef, PP_Resource resource);
69 /// initialize this <code>Resource</code> with a <code>PP_Resource</code>
72 /// current resource.
75 /// will call the default <code>Resource</code> constructor, then make a call
76 /// to create a resource. It then wants to assign the new resource (which,
80 /// @param[in] resource A <code>PP_Resource</code> corresponding to a
81 /// resource.
82 void PassRefFromConstructor(PP_Resource resource);
90 inline bool operator==(const pp::Resource& lhs, const pp::Resource& rhs) {
94 inline bool operator!=(const pp::Resource& lhs, const pp::Resource& rhs) {