ICG 2
Electric Boogaloo
Public Member Functions | List of all members
J_CheckpointAgent Class Reference

#include <J_CheckpointAgent.hpp>

Inheritance diagram for J_CheckpointAgent:
CheckpointAgentBase

Public Member Functions

 J_CheckpointAgent (DataTypeInator *inator)
 
virtual ~J_CheckpointAgent ()
 
virtual int dump (std::ostream &checkpoint_out, std::vector< AllocInfo * > allocations_to_checkpoint) override
 Dump a checkpoint to the given string. More...
 
virtual std::vector< AllocInfo * > restore (std::istream &checkpoint_in, std::vector< AllocInfo * > allocations_to_restore) override
 Restore a checkpoint from an input stream. More...
 
bool writeDeclaration (std::ostream &checkpoint_out, const AllocInfo *alloc)
 
bool writeAssignment (std::ostream &checkpoint_out, const AllocInfo *alloc, const std::vector< AllocInfo * > &additional_search_allocs)
 
AllocInforestoreDeclaration (std::string declaration)
 
bool restoreAssignment (std::string assignment_string, const std::vector< AllocInfo * > &additional_search_allocs)
 
- Public Member Functions inherited from CheckpointAgentBase
virtual ~CheckpointAgentBase ()
 

Detailed Description

Base Class for dumping and restoring a checkpoint.

Constructor & Destructor Documentation

◆ J_CheckpointAgent()

J_CheckpointAgent::J_CheckpointAgent ( DataTypeInator inator)

◆ ~J_CheckpointAgent()

virtual J_CheckpointAgent::~J_CheckpointAgent ( )
inlinevirtual

Member Function Documentation

◆ dump()

int J_CheckpointAgent::dump ( std::ostream &  checkpoint_out,
std::vector< AllocInfo * >  allocations_to_checkpoint 
)
overridevirtual

Dump a checkpoint to the given string.

Parameters
checkpoint_outstream to output to
allocations_to_checkpointAllocations to checkpoint
Returns
int status

Implements CheckpointAgentBase.

◆ restore()

std::vector< AllocInfo * > J_CheckpointAgent::restore ( std::istream &  checkpoint_in,
std::vector< AllocInfo * >  allocations_to_restore 
)
overridevirtual

Restore a checkpoint from an input stream.

Parameters
checkpoint_instream to read from
allocations_to_restoreExtern allocs to work with
Returns
std::vector<AllocInfo *> The new set of AllocInfos (local and extern)

Implements CheckpointAgentBase.

◆ restoreAssignment()

bool J_CheckpointAgent::restoreAssignment ( std::string  assignment_string,
const std::vector< AllocInfo * > &  additional_search_allocs 
)

◆ restoreDeclaration()

AllocInfo * J_CheckpointAgent::restoreDeclaration ( std::string  declaration)

◆ writeAssignment()

bool J_CheckpointAgent::writeAssignment ( std::ostream &  checkpoint_out,
const AllocInfo alloc,
const std::vector< AllocInfo * > &  additional_search_allocs 
)

◆ writeDeclaration()

bool J_CheckpointAgent::writeDeclaration ( std::ostream &  checkpoint_out,
const AllocInfo alloc 
)

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