Blender V4.3
blender::tests::ExceptionThrower Class Reference

#include <BLI_exception_safety_test_utils.hh>

Public Member Functions

 ExceptionThrower (int value=0)
 
 ExceptionThrower (const ExceptionThrower &other)
 
 ExceptionThrower (ExceptionThrower &&other)
 
ExceptionThroweroperator= (const ExceptionThrower &other)
 
ExceptionThroweroperator= (ExceptionThrower &&other)
 
 ~ExceptionThrower ()
 
uint64_t hash () const
 

Public Attributes

bool throw_during_copy
 
bool throw_during_move
 
int value
 

Friends

bool operator== (const ExceptionThrower &a, const ExceptionThrower &b)
 
bool operator!= (const ExceptionThrower &a, const ExceptionThrower &b)
 

Detailed Description

Definition at line 12 of file BLI_exception_safety_test_utils.hh.

Constructor & Destructor Documentation

◆ ExceptionThrower() [1/3]

blender::tests::ExceptionThrower::ExceptionThrower ( int value = 0)
inline

Definition at line 29 of file BLI_exception_safety_test_utils.hh.

◆ ExceptionThrower() [2/3]

blender::tests::ExceptionThrower::ExceptionThrower ( const ExceptionThrower & other)
inline

Definition at line 38 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ().

◆ ExceptionThrower() [3/3]

blender::tests::ExceptionThrower::ExceptionThrower ( ExceptionThrower && other)
inline

Definition at line 46 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ().

◆ ~ExceptionThrower()

blender::tests::ExceptionThrower::~ExceptionThrower ( )
inline

Definition at line 74 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), and MEM_freeN().

Member Function Documentation

◆ hash()

uint64_t blender::tests::ExceptionThrower::hash ( ) const
inline

Definition at line 90 of file BLI_exception_safety_test_utils.hh.

◆ operator=() [1/2]

ExceptionThrower & blender::tests::ExceptionThrower::operator= ( const ExceptionThrower & other)
inline

Definition at line 54 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), and throw_during_copy.

◆ operator=() [2/2]

ExceptionThrower & blender::tests::ExceptionThrower::operator= ( ExceptionThrower && other)
inline

Definition at line 64 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), and throw_during_move.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const ExceptionThrower & a,
const ExceptionThrower & b )
friend

Definition at line 100 of file BLI_exception_safety_test_utils.hh.

◆ operator==

bool operator== ( const ExceptionThrower & a,
const ExceptionThrower & b )
friend

Definition at line 95 of file BLI_exception_safety_test_utils.hh.

Member Data Documentation

◆ throw_during_copy

◆ throw_during_move

bool blender::tests::ExceptionThrower::throw_during_move
mutable

Definition at line 25 of file BLI_exception_safety_test_utils.hh.

Referenced by operator=().

◆ value

int blender::tests::ExceptionThrower::value

Definition at line 27 of file BLI_exception_safety_test_utils.hh.


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