Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::SetFlagScope< T > Class Template Reference

#include <unit_test.h>

Inheritance diagram for dart::SetFlagScope< T >:
dart::ValueObject

Public Member Functions

 SetFlagScope (T *flag, T value)
 
 ~SetFlagScope ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

template<typename T>
class dart::SetFlagScope< T >

Definition at line 749 of file unit_test.h.

Constructor & Destructor Documentation

◆ SetFlagScope()

template<typename T >
dart::SetFlagScope< T >::SetFlagScope ( T flag,
T  value 
)
inline

Definition at line 751 of file unit_test.h.

751 : flag_(flag), original_value_(*flag) {
752 *flag_ = value;
753 }
FlutterSemanticsFlag flag
uint8_t value

◆ ~SetFlagScope()

template<typename T >
dart::SetFlagScope< T >::~SetFlagScope ( )
inline

Definition at line 755 of file unit_test.h.

755{ *flag_ = original_value_; }

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