libMesh
Public Member Functions | Protected Attributes | List of all members
libMesh::NoSolutionHistory Class Reference

'Save nothing' subclass of Solution History, this is the default. More...

#include <no_solution_history.h>

Inheritance diagram for libMesh::NoSolutionHistory:
[legend]

Public Member Functions

 NoSolutionHistory ()
 Constructor. More...
 
virtual ~NoSolutionHistory ()
 Destructor. More...
 
virtual void store () libmesh_override
 Virtual function store which we will be overriding. More...
 
virtual void retrieve () libmesh_override
 Virtual function retrieve which we will be overriding. More...
 
virtual UniquePtr< SolutionHistoryclone () const libmesh_override
 Definition of the clone function needed for the setter function. More...
 
void set_overwrite_previously_stored (bool val)
 Turn on overwrite_previously_stored to overwrite any already-saved data encountered during subsequent store() calls. More...
 

Protected Attributes

bool overwrite_previously_stored
 

Detailed Description

'Save nothing' subclass of Solution History, this is the default.

Author
Vikram Garg
Date
2012 For storing and retrieving timestep data.

Definition at line 34 of file no_solution_history.h.

Constructor & Destructor Documentation

libMesh::NoSolutionHistory::NoSolutionHistory ( )

Constructor.

Definition at line 41 of file no_solution_history.h.

Referenced by clone().

41 : SolutionHistory() {}
SolutionHistory()
Constructor.
virtual libMesh::NoSolutionHistory::~NoSolutionHistory ( )
virtual

Destructor.

Definition at line 46 of file no_solution_history.h.

References retrieve(), and store().

46 {}

Member Function Documentation

virtual UniquePtr<SolutionHistory > libMesh::NoSolutionHistory::clone ( ) const
virtual

Definition of the clone function needed for the setter function.

Implements libMesh::SolutionHistory.

Definition at line 61 of file no_solution_history.h.

References NoSolutionHistory().

62  {
63  return UniquePtr<SolutionHistory >(new NoSolutionHistory());
64  }
void libMesh::NoSolutionHistory::retrieve ( )
virtual

Virtual function retrieve which we will be overriding.

Implements libMesh::SolutionHistory.

Definition at line 29 of file no_solution_history.C.

Referenced by ~NoSolutionHistory().

30 {
31  // Nothing was stored, so nothing can be retrieved
32  libmesh_not_implemented();
33 }
void libMesh::SolutionHistory::set_overwrite_previously_stored ( bool  val)
inherited

Turn on overwrite_previously_stored to overwrite any already-saved data encountered during subsequent store() calls.

Definition at line 70 of file solution_history.h.

References libMesh::SolutionHistory::overwrite_previously_stored.

void libMesh::NoSolutionHistory::store ( )
virtual

Virtual function store which we will be overriding.

Implements libMesh::SolutionHistory.

Definition at line 24 of file no_solution_history.C.

Referenced by ~NoSolutionHistory().

25 {
26  // Do nothing
27 }

Member Data Documentation

bool libMesh::SolutionHistory::overwrite_previously_stored
protectedinherited

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