Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
doctest::detail::ContextScope< L > Class Template Reference

#include <doctest.h>

+ Inheritance diagram for doctest::detail::ContextScope< L >:

Public Member Functions

 ContextScope (const L &lambda)
 
 ContextScope (L &&lambda)
 
 ContextScope (const ContextScope &)=delete
 
 ContextScope (ContextScope &&) noexcept=default
 
ContextScopeoperator= (const ContextScope &)=delete
 
ContextScopeoperator= (ContextScope &&)=delete
 
void stringify (std::ostream *s) const override
 
 ~ContextScope () override
 
- Public Member Functions inherited from doctest::detail::ContextScopeBase
 ContextScopeBase (const ContextScopeBase &)=delete
 
ContextScopeBaseoperator= (const ContextScopeBase &)=delete
 
ContextScopeBaseoperator= (ContextScopeBase &&)=delete
 
 ~ContextScopeBase () override=default
 

Private Attributes

lambda_
 

Additional Inherited Members

- Protected Member Functions inherited from doctest::detail::ContextScopeBase
 ContextScopeBase ()
 
 ContextScopeBase (ContextScopeBase &&other) noexcept
 
void destroy ()
 
- Protected Attributes inherited from doctest::detail::ContextScopeBase
bool need_to_destroy {true}
 

Detailed Description

template<typename L>
class doctest::detail::ContextScope< L >

Definition at line 1847 of file doctest.h.

Constructor & Destructor Documentation

◆ ContextScope() [1/4]

template<typename L >
doctest::detail::ContextScope< L >::ContextScope ( const L & lambda)
inlineexplicit

Definition at line 1852 of file doctest.h.

1852: lambda_(lambda) {}

◆ ContextScope() [2/4]

template<typename L >
doctest::detail::ContextScope< L >::ContextScope ( L && lambda)
inlineexplicit

Definition at line 1853 of file doctest.h.

1853: lambda_(static_cast<L&&>(lambda)) { }

◆ ContextScope() [3/4]

template<typename L >
doctest::detail::ContextScope< L >::ContextScope ( const ContextScope< L > & )
delete

◆ ContextScope() [4/4]

template<typename L >
doctest::detail::ContextScope< L >::ContextScope ( ContextScope< L > && )
defaultnoexcept

◆ ~ContextScope()

template<typename L >
doctest::detail::ContextScope< L >::~ContextScope ( )
inlineoverride

Definition at line 1863 of file doctest.h.

1863 {
1864 if (need_to_destroy) {
1865 destroy();
1866 }
1867 }

Member Function Documentation

◆ operator=() [1/2]

template<typename L >
ContextScope & doctest::detail::ContextScope< L >::operator= ( const ContextScope< L > & )
delete

◆ operator=() [2/2]

template<typename L >
ContextScope & doctest::detail::ContextScope< L >::operator= ( ContextScope< L > && )
delete

◆ stringify()

template<typename L >
void doctest::detail::ContextScope< L >::stringify ( std::ostream * s) const
inlineoverridevirtual

Implements doctest::IContextScope.

Definition at line 1861 of file doctest.h.

1861{ lambda_(s); }
CURL_EXTERN CURLMcode curl_socket_t s
Definition multi.h:318

References s.

Field Documentation

◆ lambda_

template<typename L >
L doctest::detail::ContextScope< L >::lambda_
private

Definition at line 1849 of file doctest.h.


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