示例#1
0
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);
}
示例#2
0
    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);
    }
示例#3
0
 void serializeRootVector(const J *objs, std::size_t nObjs) {
     serializeVector("", objs, nObjs);
 }
示例#4
0
 void serializeRootVector(const std::vector<J *> & objs) {
     serializeVector("", objs);
 }
示例#5
0
bool serialize(std::ostream& stream, const std::vector<glm::vec3>& value)
{
	return serializeVector(stream, value);
}