Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86463975
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
Sun, Oct 6, 15:49
Size
682 B
Mime Type
text/x-c++
Expires
Tue, Oct 8, 15:49 (2 d)
Engine
blob
Format
Raw Data
Handle
21363122
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