Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class named_scope_list

boost::log::attributes::named_scope_list — The class implements the list of scopes.

Synopsis

// In header: <boost/log/attributes/named_scope.hpp>


class named_scope_list {
public:
  // types
  typedef std::allocator< named_scope_entry > allocator_type;          // Allocator type. 
  typedef unspecified                         value_type;            
  typedef unspecified                         size_type;             
  typedef unspecified                         difference_type;       
  typedef unspecified                         pointer;               
  typedef unspecified                         const_pointer;         
  typedef value_type &                        reference;             
  typedef value_type const &                  const_reference;       
  typedef implementation_defined              const_iterator;        
  typedef implementation_defined              iterator;              
  typedef implementation_defined              const_reverse_iterator;
  typedef implementation_defined              reverse_iterator;      

  // public member functions
  named_scope_list();
  named_scope_list(named_scope_list const &);
  ~named_scope_list();
  named_scope_list & operator=(named_scope_list const &);
  const_iterator begin() const;
  const_iterator end() const;
  const_reverse_iterator rbegin() const;
  const_reverse_iterator rend() const;
  size_type size() const;
  bool empty() const;
  void swap(named_scope_list &);
  const_reference back() const;
  const_reference front() const;
};

Description

The scope list provides a read-only access to a doubly-linked list of scopes.

named_scope_list public types

  1. typedef implementation_defined const_iterator;

    A constant iterator to the sequence of scopes. Complies to bidirectional iterator requirements.

  2. typedef implementation_defined iterator;

    An iterator to the sequence of scopes. Complies to bidirectional iterator requirements.

  3. typedef implementation_defined const_reverse_iterator;

    A constant reverse iterator to the sequence of scopes. Complies to bidirectional iterator requirements.

  4. typedef implementation_defined reverse_iterator;

    A reverse iterator to the sequence of scopes. Complies to bidirectional iterator requirements.

named_scope_list public member functions

  1. named_scope_list();

    Default constructor

    Postconditions:

    empty() == true

  2. named_scope_list(named_scope_list const & that);

    Copy constructor

    Postconditions:

    std::equal(begin(), end(), that.begin()) == true

  3. ~named_scope_list();

    Destructor. Destroys the stored entries.

  4. named_scope_list & operator=(named_scope_list const & that);

    Assignment operator

    Postconditions:

    std::equal(begin(), end(), that.begin()) == true

  5. const_iterator begin() const;

    Returns:

    Constant iterator to the first element of the container.

  6. const_iterator end() const;

    Returns:

    Constant iterator to the after-the-last element of the container.

  7. const_reverse_iterator rbegin() const;

    Returns:

    Constant iterator to the last element of the container.

  8. const_reverse_iterator rend() const;

    Returns:

    Constant iterator to the before-the-first element of the container.

  9. size_type size() const;

    Returns:

    The number of elements in the container

  10. bool empty() const;

    Returns:

    true if the container is empty and false otherwise

  11. void swap(named_scope_list & that);

    Swaps two instances of the container

  12. const_reference back() const;

    Returns:

    Last pushed scope entry

  13. const_reference front() const;

    Returns:

    First pushed scope entry


PrevUpHomeNext