proxygen
Counter Class Reference

#include <sample4.h>

Public Member Functions

 Counter ()
 
int Increment ()
 
void Print () const
 
 Counter () noexcept
 
 Counter (const Counter &) noexcept
 
 Counter (Counter &&) noexcept
 
 Counter (std::nullptr_t) noexcept
 
void operator= (const Counter &) noexcept
 
void operator= (Counter &&) noexcept
 
 ~Counter () noexcept
 
 Counter ()
 
int Increment ()
 
void Print () const
 
 Counter ()
 
int Increment ()
 
void Print () const
 

Static Public Attributes

static int CountDC = 0
 
static int CountCC = 0
 
static int CountMC = 0
 
static int CountOC = 0
 
static int CountCA = 0
 
static int CountMA = 0
 
static int CountDestroy = 0
 
static int CountTotalOps = 0
 
static int CountLoggedConstruction = 0
 

Private Attributes

int counter_
 

Detailed Description

Definition at line 38 of file sample4.h.

Constructor & Destructor Documentation

Counter::Counter ( )
inline

Definition at line 44 of file sample4.h.

References Increment(), and Print().

44 : counter_(0) {}
int counter_
Definition: sample4.h:40
Counter::Counter ( )
inlinenoexcept

Definition at line 444 of file StlVectorTest.cpp.

444  {
445  CountTotalOps++;
446  CountDC++;
447  }
static int CountTotalOps
static int CountDC
Counter::Counter ( const Counter )
inlinenoexcept

Definition at line 448 of file StlVectorTest.cpp.

448  {
449  CountTotalOps++;
450  CountCC++;
451  }
static int CountCC
static int CountTotalOps
Counter::Counter ( Counter &&  )
inlinenoexcept

Definition at line 452 of file StlVectorTest.cpp.

452  {
453  CountTotalOps++;
454  CountMC++;
455  }
static int CountMC
static int CountTotalOps
Counter::Counter ( std::nullptr_t  )
inlineexplicitnoexcept

Definition at line 456 of file StlVectorTest.cpp.

456  {
457  CountTotalOps++;
458  CountOC++;
459  }
static int CountOC
static int CountTotalOps
Counter::~Counter ( )
inlinenoexcept

Definition at line 468 of file StlVectorTest.cpp.

References CountCA, CountCC, CountDC, CountDestroy, CountLoggedConstruction, CountMA, CountMC, CountOC, and CountTotalOps.

468  {
469  CountTotalOps++;
470  CountDestroy++;
471  }
static int CountDestroy
static int CountTotalOps
Counter::Counter ( )
inline

Definition at line 44 of file sample4.h.

References Increment(), and Print().

44 : counter_(0) {}
int counter_
Definition: sample4.h:40
Counter::Counter ( )
inline

Definition at line 44 of file sample4.h.

References Increment(), and Print().

44 : counter_(0) {}
int counter_
Definition: sample4.h:40

Member Function Documentation

int Counter::Increment ( )

Definition at line 39 of file sample4.cc.

References counter_.

Referenced by Counter(), and TEST().

39  {
40  return counter_++;
41 }
int counter_
Definition: sample4.h:40
int Counter::Increment ( )
int Counter::Increment ( )
void Counter::operator= ( const Counter )
inlinenoexcept

Definition at line 460 of file StlVectorTest.cpp.

460  {
461  CountTotalOps++;
462  CountCA++;
463  }
static int CountCA
static int CountTotalOps
void Counter::operator= ( Counter &&  )
inlinenoexcept

Definition at line 464 of file StlVectorTest.cpp.

464  {
465  CountTotalOps++;
466  CountMA++;
467  }
static int CountTotalOps
static int CountMA
void Counter::Print ( ) const

Definition at line 44 of file sample4.cc.

References counter_.

Referenced by Counter().

44  {
45  printf("%d", counter_);
46 }
int counter_
Definition: sample4.h:40
void Counter::Print ( ) const
void Counter::Print ( ) const

Member Data Documentation

int Counter::CountCA = 0
static

Definition at line 438 of file StlVectorTest.cpp.

Referenced by softReset(), and ~Counter().

int Counter::CountCC = 0
static

Definition at line 435 of file StlVectorTest.cpp.

Referenced by getTotal(), softReset(), and ~Counter().

int Counter::CountDC = 0
static

Definition at line 434 of file StlVectorTest.cpp.

Referenced by getTotal(), softReset(), test_nConstruction3(), and ~Counter().

int Counter::CountDestroy = 0
static

Definition at line 440 of file StlVectorTest.cpp.

Referenced by getTotal(), softReset(), and ~Counter().

int Counter::counter_
private

Definition at line 40 of file sample4.h.

Referenced by Increment(), and Print().

int Counter::CountLoggedConstruction = 0
static

Definition at line 442 of file StlVectorTest.cpp.

Referenced by getTotal(), hardReset(), softReset(), and ~Counter().

int Counter::CountMA = 0
static

Definition at line 439 of file StlVectorTest.cpp.

Referenced by softReset(), and ~Counter().

int Counter::CountMC = 0
static

Definition at line 436 of file StlVectorTest.cpp.

Referenced by getTotal(), softReset(), and ~Counter().

int Counter::CountOC = 0
static

Definition at line 437 of file StlVectorTest.cpp.

Referenced by getTotal(), softReset(), and ~Counter().


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