Flutter Engine
The Flutter Engine
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 742 of file unit_test.h.

Constructor & Destructor Documentation

◆ SetFlagScope()

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

Definition at line 744 of file unit_test.h.

744 : flag_(flag), original_value_(*flag) {
745 *flag_ = value;
746 }
FlutterSemanticsFlag flag
uint8_t value

◆ ~SetFlagScope()

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

Definition at line 748 of file unit_test.h.

748{ *flag_ = original_value_; }

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