Program Listing for File quadrilateral.h
↰ Return to documentation for file (include/coal/serialization/quadrilateral.h
)
//
// Copyright (c) 2022 INRIA
//
#ifndef COAL_SERIALIZATION_QUADRILATERAL_H
#define COAL_SERIALIZATION_QUADRILATERAL_H
#include "coal/data_types.h"
#include "coal/serialization/fwd.h"
namespace boost {
namespace serialization {
template <class Archive>
void serialize(Archive &ar, coal::Quadrilateral &quadrilateral,
const unsigned int /*version*/) {
ar &make_nvp("p0", quadrilateral[0]);
ar &make_nvp("p1", quadrilateral[1]);
ar &make_nvp("p2", quadrilateral[2]);
ar &make_nvp("p3", quadrilateral[3]);
}
} // namespace serialization
} // namespace boost
#endif // ifndef COAL_SERIALIZATION_QUADRILATERAL_H