Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
InverseMarkScope Class ReferenceProvides a way to mark a resource as unused for the duration of the instance's scope, thus negating MarkScope for a portion. More...
Detailed DescriptionProvides a way to mark a resource as unused for the duration of the instance's scope, thus negating MarkScope for a portion. This is handy because we don't have to worry about re-securing the resource if there are multiple return points, exception handling, or other such issues which might otherwise cause you to forget to release it -- let C++ do it for you! Definition at line 11 of file InverseMarkScope.h.
Constructor & Destructor Documentation
constructor, for marking resources which require no data Definition at line 14 of file InverseMarkScope.h.
constructor, accepts data parameter to pass to Resource::releaseResource() Definition at line 18 of file InverseMarkScope.h.
copy constructor, marks resource used, copying ms's data reference (better make sure the Resource support recursive usage...) Definition at line 22 of file InverseMarkScope.h.
copy constructor, accepts additional data parameter to pass to Resource::releaseResource() Definition at line 26 of file InverseMarkScope.h.
destructor, re-acquires resource Definition at line 30 of file InverseMarkScope.h. Member Function Documentation
accessor to return the data used to access the resource Definition at line 37 of file InverseMarkScope.h.
accessor to return the resource being marked Definition at line 35 of file InverseMarkScope.h.
assignment prohibited (can't reassign the reference we already hold)
renew the resource usage -- call use and release again with the new data Definition at line 41 of file InverseMarkScope.h.
renew the resource usage -- call use and release again, with the same data Definition at line 39 of file InverseMarkScope.h. Member Data Documentation
data passed to resource when using it and releasing it Definition at line 45 of file InverseMarkScope.h. Referenced by getData(), InverseMarkScope(), reset(), and ~InverseMarkScope().
the resource we're using Definition at line 44 of file InverseMarkScope.h. Referenced by getResource(), InverseMarkScope(), reset(), and ~InverseMarkScope(). The documentation for this class was generated from the following file: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:09 2016 by Doxygen 1.6.3 |