scoped_resource.hpp File Reference

scoped_resource: class template, functions, helper policies etc. for resource management. More...

#include "global.hpp"
#include <cstdio>

Include dependency graph for scoped_resource.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  util

Classes

class  util::scoped_resource< T, ReleasePolicy >
 A class template, scoped_resource, designed to implement the Resource Acquisition Is Initialization (RAII) approach to resource management. More...
struct  util::delete_item
 A helper policy for scoped_ptr. More...
struct  util::delete_array
 A helper policy for scoped_array. More...
struct  util::scoped_ptr< T >
 A class which implements an approximation of template<typename T> typedef scoped_resource<T*,delete_item> scoped_ptr<T>;. More...
struct  util::scoped_array< T >
 This class has identical behaviour to scoped_ptr, except it manages heap-allocated arrays instead of heap-allocated single objects. More...
struct  util::close_FILE
 This class specializes the scoped_resource to implement scoped FILEs. More...

Typedefs

typedef scoped_resource
< std::FILE *, close_FILE > 
util::scoped_FILE


Detailed Description

scoped_resource: class template, functions, helper policies etc. for resource management.

Definition in file scoped_resource.hpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs