Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
absl::test_internal::BaseCountedInstance Class Reference

#include <test_instance_tracker.h>

Inheritance diagram for absl::test_internal::BaseCountedInstance:
Inheritance graph
[legend]

Public Member Functions

 BaseCountedInstance (int x)
 
 BaseCountedInstance (const BaseCountedInstance &x)
 
 BaseCountedInstance (BaseCountedInstance &&x)
 
absl::weak_ordering compare (const BaseCountedInstance &x) const
 
bool operator!= (const BaseCountedInstance &x) const
 
bool operator< (const BaseCountedInstance &x) const
 
bool operator<= (const BaseCountedInstance &x) const
 
BaseCountedInstanceoperator= (const BaseCountedInstance &x)
 
BaseCountedInstanceoperator= (BaseCountedInstance &&x)
 
bool operator== (const BaseCountedInstance &x) const
 
bool operator> (const BaseCountedInstance &x) const
 
bool operator>= (const BaseCountedInstance &x) const
 
int value () const
 
 ~BaseCountedInstance ()
 

Static Public Member Functions

static void SwapImpl (BaseCountedInstance &lhs, BaseCountedInstance &rhs)
 

Private Attributes

bool is_live_ = true
 
int value_
 

Static Private Attributes

static int num_comparisons_ = 0
 
static int num_copies_ = 0
 
static int num_instances_ = 0
 
static int num_live_instances_ = 0
 
static int num_moves_ = 0
 
static int num_swaps_ = 0
 

Friends

class InstanceTracker
 
std::ostream & operator<< (std::ostream &o, const BaseCountedInstance &v)
 

Detailed Description

Definition at line 31 of file test_instance_tracker.h.

Constructor & Destructor Documentation

◆ BaseCountedInstance() [1/3]

absl::test_internal::BaseCountedInstance::BaseCountedInstance ( int  x)
inlineexplicit

Definition at line 33 of file test_instance_tracker.h.

◆ BaseCountedInstance() [2/3]

absl::test_internal::BaseCountedInstance::BaseCountedInstance ( const BaseCountedInstance x)
inline

Definition at line 37 of file test_instance_tracker.h.

◆ BaseCountedInstance() [3/3]

absl::test_internal::BaseCountedInstance::BaseCountedInstance ( BaseCountedInstance &&  x)
inline

Definition at line 43 of file test_instance_tracker.h.

◆ ~BaseCountedInstance()

absl::test_internal::BaseCountedInstance::~BaseCountedInstance ( )
inline

Definition at line 49 of file test_instance_tracker.h.

Member Function Documentation

◆ compare()

absl::weak_ordering absl::test_internal::BaseCountedInstance::compare ( const BaseCountedInstance x) const
inline

Definition at line 101 of file test_instance_tracker.h.

◆ operator!=()

bool absl::test_internal::BaseCountedInstance::operator!= ( const BaseCountedInstance x) const
inline

Definition at line 76 of file test_instance_tracker.h.

◆ operator<()

bool absl::test_internal::BaseCountedInstance::operator< ( const BaseCountedInstance x) const
inline

Definition at line 81 of file test_instance_tracker.h.

◆ operator<=()

bool absl::test_internal::BaseCountedInstance::operator<= ( const BaseCountedInstance x) const
inline

Definition at line 91 of file test_instance_tracker.h.

◆ operator=() [1/2]

BaseCountedInstance& absl::test_internal::BaseCountedInstance::operator= ( const BaseCountedInstance x)
inline

Definition at line 54 of file test_instance_tracker.h.

◆ operator=() [2/2]

BaseCountedInstance& absl::test_internal::BaseCountedInstance::operator= ( BaseCountedInstance &&  x)
inline

Definition at line 62 of file test_instance_tracker.h.

◆ operator==()

bool absl::test_internal::BaseCountedInstance::operator== ( const BaseCountedInstance x) const
inline

Definition at line 71 of file test_instance_tracker.h.

◆ operator>()

bool absl::test_internal::BaseCountedInstance::operator> ( const BaseCountedInstance x) const
inline

Definition at line 86 of file test_instance_tracker.h.

◆ operator>=()

bool absl::test_internal::BaseCountedInstance::operator>= ( const BaseCountedInstance x) const
inline

Definition at line 96 of file test_instance_tracker.h.

◆ SwapImpl()

static void absl::test_internal::BaseCountedInstance::SwapImpl ( BaseCountedInstance lhs,
BaseCountedInstance rhs 
)
inlinestatic

Definition at line 120 of file test_instance_tracker.h.

◆ value()

int absl::test_internal::BaseCountedInstance::value ( ) const
inline

Definition at line 109 of file test_instance_tracker.h.

Friends And Related Function Documentation

◆ InstanceTracker

friend class InstanceTracker
friend

Definition at line 130 of file test_instance_tracker.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const BaseCountedInstance v 
)
friend

Definition at line 114 of file test_instance_tracker.h.

Member Data Documentation

◆ is_live_

bool absl::test_internal::BaseCountedInstance::is_live_ = true
private

Definition at line 135 of file test_instance_tracker.h.

◆ num_comparisons_

int absl::test_internal::BaseCountedInstance::num_comparisons_ = 0
staticprivate

Definition at line 153 of file test_instance_tracker.h.

◆ num_copies_

int absl::test_internal::BaseCountedInstance::num_copies_ = 0
staticprivate

Definition at line 147 of file test_instance_tracker.h.

◆ num_instances_

int absl::test_internal::BaseCountedInstance::num_instances_ = 0
staticprivate

Definition at line 138 of file test_instance_tracker.h.

◆ num_live_instances_

int absl::test_internal::BaseCountedInstance::num_live_instances_ = 0
staticprivate

Definition at line 141 of file test_instance_tracker.h.

◆ num_moves_

int absl::test_internal::BaseCountedInstance::num_moves_ = 0
staticprivate

Definition at line 144 of file test_instance_tracker.h.

◆ num_swaps_

int absl::test_internal::BaseCountedInstance::num_swaps_ = 0
staticprivate

Definition at line 150 of file test_instance_tracker.h.

◆ value_

int absl::test_internal::BaseCountedInstance::value_
private

Definition at line 132 of file test_instance_tracker.h.


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


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23