| OpenTTD
    | 
Base class that provides memory initialization on dynamically created objects. More...
#include <alloc_type.hpp>
 
  
 | Public Member Functions | |
| void * | operator new (size_t size) | 
| Memory allocator for a single class instance. | |
| void * | operator new[] (size_t size) | 
| Memory allocator for an array of class instances. | |
| void | operator delete (void *ptr) | 
| Memory release for a single class instance. | |
| void | operator delete[] (void *ptr) | 
| Memory release for an array of class instances. | |
Base class that provides memory initialization on dynamically created objects.
All allocated memory will be zeroed.
Definition at line 150 of file alloc_type.hpp.
| 
 | inline | 
Memory release for a single class instance.
| ptr | the memory to free. | 
Reimplemented in Window.
Definition at line 174 of file alloc_type.hpp.
References free().
| 
 | inline | 
Memory release for an array of class instances.
| ptr | the memory to free. | 
Definition at line 180 of file alloc_type.hpp.
References free().
| 
 | inline | 
Memory allocator for a single class instance.
| size | the amount of bytes to allocate. | 
Definition at line 161 of file alloc_type.hpp.
| 
 | inline | 
Memory allocator for an array of class instances.
| size | the amount of bytes to allocate. | 
Reimplemented in Window.
Definition at line 168 of file alloc_type.hpp.
 1.8.1.2
 1.8.1.2