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... | |
Sentry object class to automatically push and pop scopes.
|
inline |
Constructor.
Pushes the specified scope to the end of the thread-local list of scopes.
| sn | Scope name. |
| fn | File name, in which the scope is located. |
| ln | Line number in the file. |
References boost::attributes::named_scope::push_scope().
|
inline |
Destructor.
Removes the last pushed scope from the thread-local list of scopes.
References boost::attributes::named_scope::pop_scope().