Blender  V3.3
Public Member Functions | Public Attributes | Friends | List of all members
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 10 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 27 of file BLI_exception_safety_test_utils.hh.

◆ ExceptionThrower() [2/3]

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

Definition at line 36 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), and throw_during_copy.

◆ ExceptionThrower() [3/3]

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

Definition at line 44 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ().

◆ ~ExceptionThrower()

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

Definition at line 72 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 88 of file BLI_exception_safety_test_utils.hh.

References value.

◆ operator=() [1/2]

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

Definition at line 52 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), throw_during_copy, and value.

◆ operator=() [2/2]

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

Definition at line 62 of file BLI_exception_safety_test_utils.hh.

References EXPECT_EQ(), throw_during_move, and value.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 98 of file BLI_exception_safety_test_utils.hh.

◆ operator==

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

Definition at line 93 of file BLI_exception_safety_test_utils.hh.

Member Data Documentation

◆ throw_during_copy

bool blender::tests::ExceptionThrower::throw_during_copy
mutable

◆ throw_during_move

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

Definition at line 23 of file BLI_exception_safety_test_utils.hh.

Referenced by operator=().

◆ value

int blender::tests::ExceptionThrower::value

Definition at line 25 of file BLI_exception_safety_test_utils.hh.

Referenced by hash(), and operator=().


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