y2deb("Starting copy constructor XAttribute(const XAttribute&)");
xamap = xa.xamap;
}
-
- xa_find_pair_t
- XAttributes::find(const string &xa_name) const
- {
- xa_map_citer cit = xamap.find(xa_name);
- if (cit != xamap.end())
- {
- return xa_find_pair_t(true, cit->second);
- }
-
- return xa_find_pair_t(false, xa_value_t());
- }
XAttributes&
XAttributes::operator=(const XAttributes &xa)
typedef vector<uint8_t> xa_value_t;
typedef map<string, xa_value_t> xa_map_t;
typedef pair<string, xa_value_t> xa_pair_t;
- typedef pair<bool, xa_value_t> xa_find_pair_t;
typedef vector<xa_pair_t> xa_mod_vec_t;
// this is ordered on purpose!
xa_map_citer cbegin() const { return xamap.begin(); }
xa_map_citer cend() const { return xamap.end(); }
- xa_find_pair_t find(const string&) const;
XAttributes& operator=(const XAttributes&);
bool operator==(const XAttributes&) const;