Go to the source code of this file.
Classes | |
class | octave_allocator |
struct | octave_allocator::octave_allocator::link |
Defines | |
#define | octave_oct_alloc_h 1 |
#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 |
Value:
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 |
#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 octave_oct_alloc_h 1 |