Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::attributes::named_scope::sentry Struct Reference

Sentry object class to automatically push and pop scopes. More...

#include <named_scope.hpp>

Public Member Functions

 sentry (string_literal const &sn, string_literal const &fn, unsigned int ln, scope_entry::scope_name_type t=scope_entry::general) BOOST_NOEXCEPT
 Constructor. More...
 
 ~sentry () BOOST_NOEXCEPT
 Destructor. More...
 

Detailed Description

Sentry object class to automatically push and pop scopes.

Constructor & Destructor Documentation

boost::attributes::named_scope::sentry::sentry ( string_literal const &  sn,
string_literal const &  fn,
unsigned int  ln,
scope_entry::scope_name_type  t = scope_entry::general 
)
inline

Constructor.

Pushes the specified scope to the end of the thread-local list of scopes.

Parameters
snScope name.
fnFile name, in which the scope is located.
lnLine number in the file.

References boost::attributes::named_scope::push_scope().

boost::attributes::named_scope::sentry::~sentry ( )
inline

Destructor.

Removes the last pushed scope from the thread-local list of scopes.

References boost::attributes::named_scope::pop_scope().


The documentation for this struct was generated from the following file: