Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91209236
double_buffer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 9, 00:10
Size
682 B
Mime Type
text/x-c++
Expires
Mon, Nov 11, 00:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22198776
Attached To
rTSUNAMIPROJECT PHPC-TSUNAMI-PROJECT
double_buffer.h
View Options
//
// Created by Arnaud Pannatier on 06.05.18.
// Based on the code of :
// - Nicolas Richart <nicolas.richart@epfl.ch>
// - Vincent Keller <vincent.keller@epfl.ch>
// - Vittoria Rezzonico <vittoria.rezzonico@epfl.ch>
// See the files AUTHORS and COPYRIGHT for the concerning informations
//
#ifndef PHPCTSUNAMIPROJECT_DOUBLE_BUFFER_H
#define PHPCTSUNAMIPROJECT_DOUBLE_BUFFER_H
#include <memory>
#include "grid.h"
class
DoubleBuffer
{
public:
DoubleBuffer
(
std
::
size_t
m
,
std
::
size_t
n
);
Grid
&
current
();
Grid
&
old
();
void
swap
();
private:
std
::
unique_ptr
<
Grid
>
m_current
;
std
::
unique_ptr
<
Grid
>
m_old
;
};
#endif
//PHPCTSUNAMIPROJECT_DOUBLE_BUFFER_H
Event Timeline
Log In to Comment