12#ifndef ARCANE_UTILS_MULTIBUFFER_H
13#define ARCANE_UTILS_MULTIBUFFER_H
17#include "arcane/utils/ArrayView.h"
77 _freeAllocatedBuffers();
97 _allocateCurrentBuffer();
111 BufferType* bt =
new BufferType(n);
116 _allocateCurrentBuffer();
120 _allocateCurrentBuffer();
132 _freeAllocatedBuffers();
139 void _freeAllocatedBuffers()
155 void _allocateCurrentBuffer()
Modifiable view of an array of type T.
Buffer for multiple allocation.
MultiBufferT(const MultiBufferT< T > &ref)
Copy constructor.
Integer m_buffer_size
Number of elements in a buffer.
Integer m_nb_in_buffer
Number of elements in the current buffer.
BufferType * m_current_buffer
Current buffer.
UniqueArray< BufferType * > m_allocated_buffers
List of all buffers.
T * allocOne()
Allocates a new element.
Integer m_current_buffer_size
Maximum number of elements in the current buffer.
ArrayView< T > allocMany(Integer n)
Allocates n elements.
void operator=(const MultiBufferT< T > &ref)
Copy assignment operator (forbidden).
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.