StateTransClosure_Test Class Reference

StateTransClosure_Test. More...

#include <StateTransClosure_Test.h>

Inheritance diagram for StateTransClosure_Test:
Collaboration diagram for StateTransClosure_Test:

List of all members.

Public Member Functions

 StateTransClosure_Test ()
 Constructor.
 ~StateTransClosure_Test ()
 Destructor, currently empty.
vector< Serializable * > * getObjectList ()
 Returns the object list.
void capture ()
 Would prepare the information for saving.
void restore ()
 Would restore the information from the archive.

Public Attributes

vector< Serializable * > objectlist
 A list of object either waiting to be archived (when writing) or that have been restored from the archive (when reading).
Vector * v
 for non-intrusive persistent classes (can't add them to objectlist)
Matrix * m
 A Matrix type.
Three_Vector * tv
 A Three_Vector type.
CVector * cv
 A complex-valued Vector.
CMatrix * cm
 A complex-valued Matrix.

Friends

class boost::serialization::access


Detailed Description

StateTransClosure_Test.

This class is used purely for testing persistence functionality. Usually, state is saved by archiving all the global variables and the cli based variables. However, this would be awkward for a stand alone program designed to test the persistence functionality for a certain class or collection of classes. This class offers an interface to archive only objects, rather than the whole CLI infrastruture for testing.


Member Function Documentation

vector<Serializable*>* StateTransClosure_Test::getObjectList (  )  [inline]

Returns the object list.

If this is called when writing, this will be the object list passed in to the constructor. If this is called after reading, this is the list of restored objects, in the same order as they were presented when archiving.


Member Data Documentation

for non-intrusive persistent classes (can't add them to objectlist)

A Vector type


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen