Navigation

Operators and Keywords

Function List:

C++ API

oct-alloc.h File Reference

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

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 Documentation

#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

Value:

void operator delete (void *p, void *) \
      { ::operator delete (p); }

#define DEFINE_OCTAVE_ALLOCATOR (  )     octave_allocator t::allocator (sizeof (t))

#define DEFINE_OCTAVE_ALLOCATOR2 ( t,
 )     octave_allocator t::allocator (sizeof (t), s)

#define octave_oct_alloc_h   1