00001
00002
00003 #ifndef CLIVECTOR_H
00004 #define CLIVECTOR_H
00005
00006 #include <vector>
00007 #include <string>
00008 #include <Tessellation.h>
00009
00010 namespace BIE {
00011
00014
00015
00016
00017 typedef std::vector<double> clivectord;
00018
00019
00020
00021 template<class Archive, class U, class Allocator>
00022 inline void serialize(Archive & ar,
00023 clivectord & t,
00024 const unsigned int file_version) {
00025 boost::serialization::split_free(ar, (std::vector<double>)t,
00026 file_version);
00027 }
00028
00029
00032
00033
00034
00035 typedef std::vector<int> clivectori;
00036
00037
00038
00039 template<class Archive, class U, class Allocator>
00040 inline void serialize(Archive & ar,
00041 clivectori & t,
00042 const unsigned int file_version) {
00043 boost::serialization::split_free(ar, (std::vector<int>)t,
00044 file_version);
00045 }
00046
00047
00050
00051
00052
00053 typedef std::vector<std::string> clivectors;
00054
00055
00056
00057 template<class Archive, class U, class Allocator>
00058 inline void serialize(Archive & ar,
00059 clivectors & t,
00060 const unsigned int file_version) {
00061 boost::serialization::split_free(ar, (std::vector<string>)t,
00062 file_version);
00063 }
00064
00065
00068
00069
00070
00071 typedef std::vector<Tessellation*> clivectortess;
00072
00073
00074
00075 template<class Archive, class U, class Allocator>
00076 inline void serialize(Archive & ar,
00077 clivectortess & t,
00078 const unsigned int file_version) {
00079 boost::serialization::split_free(ar, (std::vector<Tessellation*>)t,
00080 file_version);
00081 }
00082
00083 }
00084
00085 #endif