Go to the source code of this file.
Classes | |
class | octave_allocator |
struct | octave_allocator::link |
Defines | |
#define | DECLARE_OCTAVE_ALLOCATOR_PLACEMENT_DELETE |
#define | DECLARE_OCTAVE_ALLOCATOR |
#define | DEFINE_OCTAVE_ALLOCATOR(t) octave_allocator t::allocator (sizeof (t)) |
#define | DEFINE_OCTAVE_ALLOCATOR2(t, s) octave_allocator t::allocator (sizeof (t), s) |
#define DECLARE_OCTAVE_ALLOCATOR |
public: \ void *operator new (size_t size, void *p) \ { return ::operator new (size, p); } \ DECLARE_OCTAVE_ALLOCATOR_PLACEMENT_DELETE \ void *operator new (size_t size) { return allocator.alloc (size); } \ void operator delete (void *p, size_t size) { allocator.free (p, size); } \ private: \ static octave_allocator allocator;
#define DECLARE_OCTAVE_ALLOCATOR_PLACEMENT_DELETE |
void operator delete (void *p, void *) \ { ::operator delete (p); }
#define DEFINE_OCTAVE_ALLOCATOR | ( | t | ) | octave_allocator t::allocator (sizeof (t)) |
#define DEFINE_OCTAVE_ALLOCATOR2 | ( | t, | ||
s | ||||
) | octave_allocator t::allocator (sizeof (t), s) |