ios_state_ptr
is a smart pointer to a ios_base specific state.
More...
#include <ios_base_state_ptr.hpp>
Public Types | |
typedef T | element_type |
The pointee type. More... | |
Public Member Functions | |
ios_state_ptr (std::ios_base &ios) | |
Explicit constructor. More... | |
~ios_state_ptr () | |
Nothing to do as xalloc index can not be removed. More... | |
T const * | get () const BOOST_NOEXCEPT |
Allocates the index if not already done. More... | |
T * | get () BOOST_NOEXCEPT |
Allocates the index if not already done. More... | |
T * | operator-> () BOOST_NOEXCEPT |
as if return get(); More... | |
T const * | operator-> () const BOOST_NOEXCEPT |
as if return get(); More... | |
T & | operator* () BOOST_NOEXCEPT |
as if return *get(); More... | |
T const & | operator* () const BOOST_NOEXCEPT |
as if return *get(); More... | |
T * | release () BOOST_NOEXCEPT |
reset the current pointer after storing in a temporary variable the pointer to the current state. More... | |
void | reset (T *new_ptr=0) BOOST_NOEXCEPT |
operator bool () const BOOST_NOEXCEPT | |
Explicit conversion to bool. More... | |
std::ios_base & | getios () BOOST_NOEXCEPT |
std::ios_base & | getios () const BOOST_NOEXCEPT |
operator std::ios_base & () BOOST_NOEXCEPT | |
Implicit conversion to the ios_base. More... | |
operator std::ios_base & () const BOOST_NOEXCEPT | |
Implicit conversion to the ios_base const. More... | |
Protected Attributes | |
std::ios_base & | ios_ |
ios_state_ptr
is a smart pointer to a ios_base specific state.
typedef T boost::chrono::ios_state_ptr< Final, T >::element_type |
The pointee type.
|
inlineexplicit |
Explicit constructor.
ios | the ios Constructs a ios_state_ptr by storing the associated ios . |
|
inline |
Nothing to do as xalloc index can not be removed.
|
inline |
Allocates the index if not already done.
Registers the callback responsible of maintaining the state pointer coherency, if not already done. Retrieves the associated ios pointer
References boost::chrono::ios_state_ptr< Final, T >::ios_, and T.
|
inline |
Allocates the index if not already done.
Registers the callback responsible of maintaining the state pointer coherency, if not already done. Retrieves the associated ios pointer
References boost::chrono::ios_state_ptr< Final, T >::ios_, and T.
|
inline |
References boost::chrono::ios_state_ptr< Final, T >::ios_.
|
inline |
References boost::chrono::ios_state_ptr< Final, T >::ios_.
|
inlineexplicit |
Explicit conversion to bool.
|
inline |
Implicit conversion to the ios_base.
References boost::chrono::ios_state_ptr< Final, T >::ios_.
|
inline |
Implicit conversion to the ios_base const.
References boost::chrono::ios_state_ptr< Final, T >::ios_.
|
inline |
as if return
*get();
get()==0
.
|
inline |
as if return
*get();
get()==0
.
|
inline |
as if return
get();
|
inline |
as if return
get();
|
inline |
reset the current pointer after storing in a temporary variable the pointer to the current state.
References boost::chrono::ios_state_ptr< Final, T >::reset(), and T.
|
inline |
new_ptr | the new pointer. deletes the current state and replace it with the new one. |
References boost::chrono::ios_state_ptr< Final, T >::ios_, and T.
Referenced by boost::chrono::ios_state_not_null_ptr< Final, T >::ios_state_not_null_ptr(), boost::chrono::ios_state_ptr< Final, T >::release(), and boost::chrono::ios_state_not_null_ptr< Final, T >::reset().
|
protected |