ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class XMLAttributes

alps::XMLAttributes

Synopsis

// In header: <alps/parser/xmlattributes.h>


class XMLAttributes {
public:
  // types
  typedef XMLAttribute::key_type      key_type;      
  typedef XMLAttribute::value_type    value_type;    
  typedef std::vector< XMLAttribute > list_type;     
  typedef list_type::size_type        size_type;     
  typedef list_type::iterator         iterator;      
  typedef list_type::const_iterator   const_iterator;

  // construct/copy/destruct
  XMLAttributes();
  XMLAttributes(const std::string &);

  // public member functions
  void clear();
  size_type size() const;
  bool defined(const key_type &) const;
  value_type & operator[](const key_type &);
  const value_type & operator[](const key_type &) const;
  value_type value_or_default(const key_type &, const value_type &) const;
  iterator begin();
  const_iterator begin() const;
  iterator end();
  const_iterator end() const;
  void push_back(const XMLAttribute &);
  void push_back(const key_type &, const value_type &);
  XMLAttributes & operator<<(const XMLAttribute &);
  XMLAttributes & operator<<(const XMLAttributes &);
};

Description

XMLAttributes public construct/copy/destruct

  1. XMLAttributes();
  2. XMLAttributes(const std::string & str);

XMLAttributes public member functions

  1. void clear();
  2. size_type size() const;
  3. bool defined(const key_type & k) const;
  4. value_type & operator[](const key_type & k);
  5. const value_type & operator[](const key_type & k) const;
  6. value_type value_or_default(const key_type & k, const value_type & v) const;
  7. iterator begin();
  8. const_iterator begin() const;
  9. iterator end();
  10. const_iterator end() const;
  11. void push_back(const XMLAttribute & attr);
  12. void push_back(const key_type & k, const value_type & v);
  13. XMLAttributes & operator<<(const XMLAttribute & a);
  14. XMLAttributes & operator<<(const XMLAttributes & attr);
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext