bool serializeVector(const std::string &filename, const std::vector<simple_type> &data) { std::ofstream stream(filename, std::ios::binary); writeFingerprint(stream); return serializeVector(stream, data); }
inline void serialize( SF::Archive & ar, std::vector<T,A> & vec) { // We want fast vector serialization for vector<T>, if T is fundamental. // Don't need to cover the case where T is a bool, as vector<bool> has // its own serialize() function (see below). const bool IsBool = boost::is_same<T, bool>::value; BOOST_STATIC_ASSERT( !IsBool ); typedef typename boost::is_fundamental<T>::type type; serializeVector(ar, vec, (type *) 0); }
void serializeRootVector(const J *objs, std::size_t nObjs) { serializeVector("", objs, nObjs); }
void serializeRootVector(const std::vector<J *> & objs) { serializeVector("", objs); }
bool serialize(std::ostream& stream, const std::vector<glm::vec3>& value) { return serializeVector(stream, value); }