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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct named_scope_entry

boost::log::attributes::named_scope_entry — The structure contains all information about a named scope.

Synopsis

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


struct named_scope_entry {
  enum scope_name_type;
  // construct/copy/destruct
  named_scope_entry(string_literal const &, string_literal const &, 
                    unsigned int, scope_name_type = general) noexcept;

  // public data members
  string_literal scope_name;
  string_literal file_name;
  unsigned int line;
  scope_name_type type;
};

Description

The named scope entries are stored as elements of basic_named_scope_list container, which in turn can be acquired either from the basic_named_scope attribute value or from a thread-local instance.

named_scope_entry public construct/copy/destruct

  1. named_scope_entry(string_literal const & sn, string_literal const & fn, 
                      unsigned int ln, scope_name_type t = general) noexcept;

    Initializing constructor

    Throws: Nothing.

    Postconditions:

    scope_name == sn && file_name == fn && line == ln

named_scope_entry public public data members

  1. string_literal scope_name;

    The scope name (e.g. a function signature)

  2. string_literal file_name;

    The source file name

  3. unsigned int line;

    The line number in the source file

  4. scope_name_type type;

    The scope name type


PrevUpHomeNext