FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTserializablematrix.hpp>
Public Member Functions | |
FMTserializablematrix () | |
FMTserializablematrix (const FMTserializablematrix &rhs) | |
FMTserializablematrix & | operator= (const FMTserializablematrix &rhs) |
FMTserializablematrix (const std::shared_ptr< OsiSolverInterface > &solverinterface) | |
void | setmatrix (std::shared_ptr< OsiSolverInterface > &solverinterface) const |
~FMTserializablematrix () | |
Friends | |
class | boost::serialization::access |
The FMTserializablematrix is made for the serialization of osisolverinterface matrix. Osisolverinterface matrix is a abstract class pointing on multiple solvertype. The goal of that class is to get the informations from osisolverinterface class into multiple vectors (solutions,bounds,etc...) to permit the synchronization. Also this class is usefull when copying osisolverinterface with the FMTsolverinterface type.
Models::FMTserializablematrix::FMTserializablematrix | ( | ) |
Default constructor of FMTserializablematrix
Models::FMTserializablematrix::FMTserializablematrix | ( | const FMTserializablematrix & | rhs | ) |
Copy constructor of FMTserializablematrix
Models::FMTserializablematrix::FMTserializablematrix | ( | const std::shared_ptr< OsiSolverInterface > & | solverinterface | ) |
Constructor of FMTserializablematrix with the solverinterface and the solvertype used. Normaly used during the saving part of serialization.
Models::FMTserializablematrix::~FMTserializablematrix | ( | ) |
Function used to build a shared pointer of a solverinterface passing the message handler to the pointer. Function used to copy a shared pointer of a solverinterface passing the message handler to the pointer to a other shared pointer. Default destructor of FMTserializablematrix
FMTserializablematrix & Models::FMTserializablematrix::operator= | ( | const FMTserializablematrix & | rhs | ) |
Copy assignment of FMTserializablematrix
void Models::FMTserializablematrix::setmatrix | ( | std::shared_ptr< OsiSolverInterface > & | solverinterface | ) | const |
Setter of the solvertype of the serializable matrix. This function will set it's contain to a solverinterface matrix, used during the loading part of serialization.
|
friend |
Save and load functions are for serialization, used to do multiprocessing across multiple cpus (pickle in Pyhton)