60 std::list<Binding, CXXR::Allocator<Binding> >
List;
64 __attribute__((hot,fastcall))
72 std::size_t
size()
const;
74 friend class boost::serialization::access;
86 template<
class Archive>
87 void load(Archive& ar,
const unsigned int version)
89 ar >> BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Frame);
90 size_t numberOfBindings;
91 ar >> BOOST_SERIALIZATION_NVP(numberOfBindings);
92 for (
size_t i = 0; i < numberOfBindings; ++i) {
95 m_list.push_back(Binding());
96 Binding& binding = m_list.
back();
97 binding.initialize(
this, symbol);
99 ar >> BOOST_SERIALIZATION_NVP(binding);
103 template<
class Archive>
104 void save(Archive& ar,
const unsigned int version)
const
106 ar << BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Frame);
107 size_t numberOfBindings =
size();
108 ar << BOOST_SERIALIZATION_NVP(numberOfBindings);
110 it != m_list.end(); ++it) {
111 const Binding& binding = *it;
112 const Symbol* symbol = binding.symbol();
114 ar << BOOST_SERIALIZATION_NVP(binding);
118 template<
class Archive>
119 void serialize(Archive& ar,
const unsigned int version) {
120 boost::serialization::split_member(ar, *
this, version);
125 bool v_erase(
const Symbol* symbol);
126 Binding* v_obtainBinding(
const Symbol* symbol);
132 #endif // LISTFRAME_HPP