Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
MarkScope Class Reference#include <MarkScope.h>
Inheritance diagram for MarkScope:
![]() Detailed DescriptionProvides a way to mark a resource as used for the duration of the instance's scope.This is handy because we don't have to worry about releasing 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 MarkScope.h.
Constructor & Destructor Documentation
constructor, accepts data parameter to pass to Resource::useResource()
Definition at line 18 of file MarkScope.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 MarkScope.h.
copy constructor, accepts additional data parameter to pass to Resource::useResource()
Definition at line 26 of file MarkScope.h.
Member Function Documentation
renew the resource usage -- call release and use again, with the same data
Definition at line 39 of file MarkScope.h.
renew the resource usage -- call release and use again with the new data
Definition at line 41 of file MarkScope.h. assignment prohibited (can't reassign the reference we already hold)
Member Data Documentation
the resource we're using
Definition at line 44 of file MarkScope.h. Referenced by getResource(), MarkScope(), reset(), and ~MarkScope().
data passed to resource when using it and releasing it
Definition at line 45 of file MarkScope.h. Referenced by getData(), MarkScope(), reset(), and ~MarkScope().
The documentation for this class was generated from the following file: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:30 2007 by Doxygen 1.5.4 |