www.mooseframework.org
Public Member Functions | Public Attributes | List of all members
Backup Class Reference

Helper class to hold streams for Backup and Restore operations. More...

#include <Backup.h>

Public Member Functions

 Backup ()
 
 ~Backup ()
 

Public Attributes

std::stringstream _system_data
 
std::vector< std::stringstream * > _restartable_data
 

Detailed Description

Helper class to hold streams for Backup and Restore operations.

Definition at line 25 of file Backup.h.

Constructor & Destructor Documentation

Backup::Backup ( )

Definition at line 22 of file Backup.C.

23 {
24  unsigned int n_threads = libMesh::n_threads();
25 
26  _restartable_data.resize(n_threads);
27 
28  for (unsigned int i = 0; i < n_threads; ++i)
29  _restartable_data[i] = new std::stringstream;
30 }
std::vector< std::stringstream * > _restartable_data
Definition: Backup.h:34
Backup::~Backup ( )

Definition at line 32 of file Backup.C.

33 {
34  unsigned int n_threads = libMesh::n_threads();
35 
36  for (unsigned int i = 0; i < n_threads; ++i)
37  delete _restartable_data[i];
38 }
std::vector< std::stringstream * > _restartable_data
Definition: Backup.h:34

Member Data Documentation

std::vector<std::stringstream *> Backup::_restartable_data

Definition at line 34 of file Backup.h.

Referenced by Backup(), dataLoad(), dataStore(), and ~Backup().

std::stringstream Backup::_system_data

Definition at line 32 of file Backup.h.

Referenced by dataLoad(), and dataStore().


The documentation for this class was generated from the following files: