GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-locbuf.h File Reference
#include "octave-config.h"
#include <cstddef>
#include <algorithm>
#include <memory>

Go to the source code of this file.

Macros

#define OCTAVE_LOCAL_BUFFER(T, buf, size)
 
#define OCTAVE_LOCAL_BUFFER_INIT(T, buf, size, value)
 
#define OCTAVE_SCOPED_BUFFER(T, buf, size)
 
#define OCTAVE_SCOPED_BUFFER_ANCHOR(T, buf)
 

Macro Definition Documentation

◆ OCTAVE_LOCAL_BUFFER

#define OCTAVE_LOCAL_BUFFER (   T,
  buf,
  size 
)
Value:
std::unique_ptr<T []> octave_local_buffer_ ## buf { new T [size] }; \
T *buf = octave_local_buffer_ ## buf.get ()

Definition at line 44 of file oct-locbuf.h.

◆ OCTAVE_LOCAL_BUFFER_INIT

#define OCTAVE_LOCAL_BUFFER_INIT (   T,
  buf,
  size,
  value 
)
Value:
OCTAVE_LOCAL_BUFFER (T, buf, size); \
std::fill_n (buf, size, value)
#define OCTAVE_LOCAL_BUFFER(T, buf, size)
Definition: oct-locbuf.h:44

Definition at line 50 of file oct-locbuf.h.

◆ OCTAVE_SCOPED_BUFFER

#define OCTAVE_SCOPED_BUFFER (   T,
  buf,
  size 
)
Value:
octave_local_buffer_ ## buf = std::unique_ptr<T []> (new T [size]); \
buf = octave_local_buffer_ ## buf.get ()

Definition at line 69 of file oct-locbuf.h.

◆ OCTAVE_SCOPED_BUFFER_ANCHOR

#define OCTAVE_SCOPED_BUFFER_ANCHOR (   T,
  buf 
)
Value:
std::unique_ptr<T []> octave_local_buffer_ ## buf; \
T *buf

Definition at line 57 of file oct-locbuf.h.