vector.h

Go to the documentation of this file.
00001 #ifndef VVELIB_STORAGE_UTIL_VECTOR_H
00002 #define VVELIB_STORAGE_UTIL_VECTOR_H
00003 
00008 #include <config.h>
00009 #include <storage/storage.h>
00010 #include <util/vector.h>
00011 
00012 namespace util
00013 {
00014   template <size_t dim, class T>
00015   bool serialization(storage::VVEStorage& store, Vector<dim,T>& vec)
00016   {
00017     for(size_t i = 0 ; i < dim ; ++i)
00018     {
00019       if(!store.field("V", vec[i]))
00020         return false;
00021     }
00022     return true;
00023   };
00024 }
00025 
00026 #endif // VVELIB_STORAGE_UTIL_VECTOR_H
00027 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Fri May 31 15:37:52 2013 for VVE by  doxygen 1.6.3