Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
testing::exceptions_internal::ConstructorTracker Class Reference

#include <exception_safety_testing.h>

Public Member Functions

 ConstructorTracker (int count)
 
 ~ConstructorTracker ()
 

Static Public Member Functions

static void ObjectConstructed (void *address, std::string description)
 
static void ObjectDestructed (void *address)
 

Static Private Member Functions

static bool CurrentlyTracking ()
 
static std::string ErrorMessage (void *address, const std::string &address_description, int countdown, const std::string &error_description)
 

Private Attributes

std::unordered_map< void *, TrackedAddressaddress_map_
 
int countdown_
 

Static Private Attributes

static ConstructorTrackercurrent_tracker_instance_ = nullptr
 

Detailed Description

Definition at line 115 of file exception_safety_testing.h.

Constructor & Destructor Documentation

testing::exceptions_internal::ConstructorTracker::ConstructorTracker ( int  count)
inlineexplicit

Definition at line 117 of file exception_safety_testing.h.

testing::exceptions_internal::ConstructorTracker::~ConstructorTracker ( )
inline

Definition at line 122 of file exception_safety_testing.h.

Member Function Documentation

static bool testing::exceptions_internal::ConstructorTracker::CurrentlyTracking ( )
inlinestaticprivate

Definition at line 168 of file exception_safety_testing.h.

static std::string testing::exceptions_internal::ConstructorTracker::ErrorMessage ( void *  address,
const std::string &  address_description,
int  countdown,
const std::string &  error_description 
)
inlinestaticprivate

Definition at line 172 of file exception_safety_testing.h.

static void testing::exceptions_internal::ConstructorTracker::ObjectConstructed ( void *  address,
std::string  description 
)
inlinestatic

Definition at line 136 of file exception_safety_testing.h.

static void testing::exceptions_internal::ConstructorTracker::ObjectDestructed ( void *  address)
inlinestatic

Definition at line 151 of file exception_safety_testing.h.

Member Data Documentation

std::unordered_map<void*, TrackedAddress> testing::exceptions_internal::ConstructorTracker::address_map_
private

Definition at line 184 of file exception_safety_testing.h.

int testing::exceptions_internal::ConstructorTracker::countdown_
private

Definition at line 185 of file exception_safety_testing.h.

ConstructorTracker * testing::exceptions_internal::ConstructorTracker::current_tracker_instance_ = nullptr
staticprivate

Definition at line 187 of file exception_safety_testing.h.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:20:00