Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
base Class Referenceabstract
Inheritance diagram for base:
derived derived

Public Member Functions

 base ()
 
 base (int i)
 
virtual baseclone () const =0
 
virtual ~base () noexcept
 
bool operator== (base const &o) const
 
bool isSame (base const &o) const
 
 base ()
 
 base (int i)
 
virtual baseclone () const =0
 
virtual ~base () noexcept
 
bool operator== (base const &o) const
 
bool isSame (base const &o) const
 

Static Public Attributes

static int n_alive = 0
 
static int n_born = 0
 

Protected Member Functions

 base (base const &o)
 
 base (base const &o)
 

Private Attributes

int i
 

Detailed Description

Definition at line 5 of file value_ptr_test_4.cc.

Constructor & Destructor Documentation

base::base ( base const &  o)
inlineprotected

Definition at line 10 of file value_ptr_test_4.cc.

10  : i(o.i)
11  {
12  ++n_alive;
13  ++n_born;
14  }
static int n_alive
static int n_born
base::base ( )
inline

Definition at line 20 of file value_ptr_test_4.cc.

20  : i(0)
21  {
22  ++n_alive;
23  ++n_born;
24  }
static int n_alive
static int n_born
base::base ( int  i)
inlineexplicit

Definition at line 25 of file value_ptr_test_4.cc.

25  : i(i)
26  {
27  ++n_alive;
28  ++n_born;
29  }
static int n_alive
static int n_born
virtual base::~base ( )
inlinevirtualnoexcept

Definition at line 33 of file value_ptr_test_4.cc.

33 { --n_alive; }
static int n_alive
base::base ( base const &  o)
inlineprotected

Definition at line 22 of file value_ptr_test_5.cc.

22  : i(o.i)
23  {
24  ++n_alive;
25  ++n_born;
26  }
static int n_alive
static int n_born
base::base ( )
inline

Definition at line 32 of file value_ptr_test_5.cc.

32  : i(0)
33  {
34  ++n_alive;
35  ++n_born;
36  }
static int n_alive
static int n_born
base::base ( int  i)
inlineexplicit

Definition at line 37 of file value_ptr_test_5.cc.

37  : i(i)
38  {
39  ++n_alive;
40  ++n_born;
41  }
static int n_alive
static int n_born
virtual base::~base ( )
inlinevirtualnoexcept

Definition at line 45 of file value_ptr_test_5.cc.

45 { --n_alive; }
static int n_alive

Member Function Documentation

virtual base* base::clone ( ) const
pure virtual

Implemented in derived, and derived.

virtual base* base::clone ( ) const
pure virtual

Implemented in derived, and derived.

bool base::isSame ( base const &  o) const
inline

Definition at line 41 of file value_ptr_test_4.cc.

42  {
43  return &o == this;
44  }
bool base::isSame ( base const &  o) const
inline

Definition at line 53 of file value_ptr_test_5.cc.

54  {
55  return &o == this;
56  }
bool base::operator== ( base const &  o) const
inline

Definition at line 36 of file value_ptr_test_4.cc.

37  {
38  return i == o.i;
39  }
bool base::operator== ( base const &  o) const
inline

Definition at line 48 of file value_ptr_test_5.cc.

49  {
50  return i == o.i;
51  }

Member Data Documentation

int base::i
private

Definition at line 7 of file value_ptr_test_4.cc.

int base::n_alive = 0
static

Definition at line 17 of file value_ptr_test_4.cc.

int base::n_born = 0
static

Definition at line 18 of file value_ptr_test_4.cc.


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