The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Typedefs
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.

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 behavior 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...
 

Namespaces

 util
 

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.