complex.h

Go to the documentation of this file.
00001 #ifndef VVELIB_STORAGE_COMPLEX_H
00002 #define VVELIB_STORAGE_COMPLEX_H
00003 
00008 #include <config.h>
00009 #include <storage/storage.h>
00010 #include <storage/graph.h>
00011 #include <algorithms/complex.h>
00012 #include <iostream>
00013 
00014 // Included as storing a complex requires storing vectors
00015 #include <storage/vector.h>
00016 
00017 namespace vvcomplex
00018 {
00019   template <typename V1, typename V2, typename E1, typename E2, bool compact>
00020   bool serialization(storage::VVEStorage& store, VVComplexGraph<V1,V2,E1,E2,compact>& G)
00021   {
00022     return serialization(store, (graph::VVBiGraph<V1,V2,E1,E2,compact>&)G);
00023   }
00024 
00025   template <typename Model, typename CellContent, typename JunctionContent,
00026            typename WallContent, typename CellEdgeContent, typename CellJunctionContent, typename JunctionCellContent, bool compact,
00027 #ifdef USE_ALLOCATOR
00028            typename Alloc,
00029 #endif
00030            typename LeafClass>
00031   bool VVComplex<ALL_COMPLEX_TEMPLATE_ARGS>::serialize(storage::VVEStorage& store)
00032   {
00033     if(!store.field("S", S))
00034     {
00035       return false;
00036     }
00037     if(!store.field("C", C))
00038     {
00039       return false;
00040     }
00041     if(!store.field("W", W))
00042     {
00043       return false;
00044     }
00045     if(save_parameters)
00046     {
00047     }
00048     return true;
00049   }
00050 }
00051 
00052 #endif // VVELIB_STORAGE_COMPLEX_H
00053 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Fri May 31 15:37:49 2013 for VVE by  doxygen 1.6.3