Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Counted Struct Reference

Type that counts constructions/destructions. More...

Public Member Functions

 Counted (int v=0)
 
 Counted (const Counted &other)
 
 Counted (Counted &&other) noexcept
 
 ~Counted ()
 
Countedoperator= (const Counted &other)
 
Countedoperator= (Counted &&other) noexcept
 
bool operator== (const Counted &other) const
 
 Counted (int v=0)
 
 Counted (const Counted &other)
 
 Counted (Counted &&other) noexcept
 
 ~Counted ()
 
Countedoperator= (const Counted &other)
 
Countedoperator= (Counted &&other) noexcept
 
bool operator== (const Counted &other) const
 
bool operator!= (const Counted &other) const
 

Static Public Member Functions

static void reset ()
 
static void reset ()
 

Public Attributes

int value
 

Static Public Attributes

static int constructions = 0
 
static int destructions = 0
 
static int copies = 0
 
static int moves = 0
 

Detailed Description

Type that counts constructions/destructions.

Definition at line 133 of file dynliststack_test.cc.

Constructor & Destructor Documentation

◆ Counted() [1/6]

Counted::Counted ( int  v = 0)
inlineexplicit

Definition at line 147 of file dynliststack_test.cc.

References constructions.

◆ Counted() [2/6]

Counted::Counted ( const Counted other)
inline

Definition at line 148 of file dynliststack_test.cc.

References constructions, and copies.

◆ Counted() [3/6]

Counted::Counted ( Counted &&  other)
inlinenoexcept

Definition at line 153 of file dynliststack_test.cc.

References constructions, and moves.

◆ ~Counted() [1/2]

Counted::~Counted ( )
inline

Definition at line 158 of file dynliststack_test.cc.

References destructions.

◆ Counted() [4/6]

Counted::Counted ( int  v = 0)
inlineexplicit

Definition at line 122 of file dynmat_test.cc.

References constructions.

◆ Counted() [5/6]

Counted::Counted ( const Counted other)
inline

Definition at line 123 of file dynmat_test.cc.

References constructions, and copies.

◆ Counted() [6/6]

Counted::Counted ( Counted &&  other)
inlinenoexcept

Definition at line 128 of file dynmat_test.cc.

References constructions, and moves.

◆ ~Counted() [2/2]

Counted::~Counted ( )
inline

Definition at line 133 of file dynmat_test.cc.

References destructions.

Member Function Documentation

◆ operator!=()

bool Counted::operator!= ( const Counted other) const
inline

Definition at line 149 of file dynmat_test.cc.

References Aleph::maps(), and value.

◆ operator=() [1/4]

Counted & Counted::operator= ( const Counted other)
inline

Definition at line 160 of file dynliststack_test.cc.

References copies, Aleph::maps(), and value.

◆ operator=() [2/4]

Counted & Counted::operator= ( const Counted other)
inline

Definition at line 135 of file dynmat_test.cc.

References copies, Aleph::maps(), and value.

◆ operator=() [3/4]

Counted & Counted::operator= ( Counted &&  other)
inlinenoexcept

Definition at line 166 of file dynliststack_test.cc.

References Aleph::maps(), moves, and value.

◆ operator=() [4/4]

Counted & Counted::operator= ( Counted &&  other)
inlinenoexcept

Definition at line 141 of file dynmat_test.cc.

References Aleph::maps(), moves, and value.

◆ operator==() [1/2]

bool Counted::operator== ( const Counted other) const
inline

Definition at line 173 of file dynliststack_test.cc.

References Aleph::maps(), and value.

◆ operator==() [2/2]

bool Counted::operator== ( const Counted other) const
inline

Definition at line 148 of file dynmat_test.cc.

References Aleph::maps(), and value.

◆ reset() [1/2]

static void Counted::reset ( )
inlinestatic

Definition at line 142 of file dynliststack_test.cc.

References constructions, copies, destructions, and moves.

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ reset() [2/2]

static void Counted::reset ( )
inlinestatic

Definition at line 117 of file dynmat_test.cc.

References constructions, copies, destructions, and moves.

Member Data Documentation

◆ constructions

int Counted::constructions = 0
static

Definition at line 135 of file dynliststack_test.cc.

Referenced by Counted(), Counted(), Counted(), reset(), TEST(), TEST(), and TEST().

◆ copies

int Counted::copies = 0
static

Definition at line 137 of file dynliststack_test.cc.

Referenced by Counted(), operator=(), and reset().

◆ destructions

int Counted::destructions = 0
static

Definition at line 136 of file dynliststack_test.cc.

Referenced by ~Counted(), reset(), TEST(), TEST(), and TEST().

◆ moves

int Counted::moves = 0
static

Definition at line 138 of file dynliststack_test.cc.

Referenced by Counted(), operator=(), reset(), and TEST().

◆ value

int Counted::value

Definition at line 140 of file dynliststack_test.cc.

Referenced by operator!=(), operator=(), operator=(), and operator==().


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