Blender V5.0
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

◆ ExceptionThrower() [2/3]

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

◆ ExceptionThrower() [3/3]

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

Definition at line 46 of file BLI_exception_safety_test_utils.hh.

References ExceptionThrower(), EXPECT_EQ(), and value.

◆ ~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.

References value.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator!=

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

Definition at line 100 of file BLI_exception_safety_test_utils.hh.

References b, and ExceptionThrower().

◆ operator==

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

Definition at line 95 of file BLI_exception_safety_test_utils.hh.

References b, ExceptionThrower(), and value.

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 ExceptionThrower(), and operator=().

◆ value

int blender::tests::ExceptionThrower::value

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