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

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

Definition at line 33 of file test_instance_tracker.h.

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

Definition at line 37 of file test_instance_tracker.h.

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

Definition at line 43 of file test_instance_tracker.h.

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

Definition at line 49 of file test_instance_tracker.h.

Member Function Documentation

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

Definition at line 101 of file test_instance_tracker.h.

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

Definition at line 76 of file test_instance_tracker.h.

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

Definition at line 81 of file test_instance_tracker.h.

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

Definition at line 91 of file test_instance_tracker.h.

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

Definition at line 54 of file test_instance_tracker.h.

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

Definition at line 62 of file test_instance_tracker.h.

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

Definition at line 71 of file test_instance_tracker.h.

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

Definition at line 86 of file test_instance_tracker.h.

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

Definition at line 96 of file test_instance_tracker.h.

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

Definition at line 120 of file test_instance_tracker.h.

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

Definition at line 109 of file test_instance_tracker.h.

Friends And Related Function Documentation

friend class InstanceTracker
friend

Definition at line 130 of file test_instance_tracker.h.

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

Definition at line 114 of file test_instance_tracker.h.

Member Data Documentation

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

Definition at line 135 of file test_instance_tracker.h.

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

Definition at line 153 of file test_instance_tracker.h.

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

Definition at line 147 of file test_instance_tracker.h.

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

Definition at line 138 of file test_instance_tracker.h.

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

Definition at line 141 of file test_instance_tracker.h.

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

Definition at line 144 of file test_instance_tracker.h.

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

Definition at line 150 of file test_instance_tracker.h.

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 Wed Jun 19 2019 19:20:00