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

Public Member Functions

 derived ()
 
 derived (int i)
 
derivedclone () const override
 
 ~derived () noexcept
 
bool operator== (derived const &o) const
 
bool isSame (derived const &o) const
 
 derived ()
 
 derived (int i)
 
derivedclone () const override
 
 ~derived () noexcept
 
bool operator== (derived const &o) const
 
bool isSame (derived const &o) const
 
- Public Member Functions inherited from base
 base ()
 
 base (int i)
 
virtual ~base () noexcept
 
bool operator== (base const &o) const
 
bool isSame (base const &o) const
 
 base ()
 
 base (int i)
 
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
 
static int n_cloned = 0
 
- Static Public Attributes inherited from base
static int n_alive = 0
 
static int n_born = 0
 

Protected Member Functions

 derived (derived const &s)
 
 derived (derived const &s)
 
- Protected Member Functions inherited from base
 base (base const &o)
 
 base (base const &o)
 

Private Attributes

int i
 

Detailed Description

Definition at line 53 of file value_ptr_test_4.cc.

Constructor & Destructor Documentation

derived::derived ( derived const &  s)
inlineprotected

Definition at line 58 of file value_ptr_test_4.cc.

58  : base(s), i(s.i)
59  {
60  ++n_alive;
61  ++n_born;
62  }
static int n_born
static int n_alive
static QCString * s
Definition: config.cpp:1042
derived::derived ( )
inline

Definition at line 69 of file value_ptr_test_4.cc.

69  : i(0)
70  {
71  ++n_alive;
72  ++n_born;
73  }
static int n_born
static int n_alive
derived::derived ( int  i)
inlineexplicit

Definition at line 74 of file value_ptr_test_4.cc.

74  : base(i), i(i)
75  {
76  ++n_alive;
77  ++n_born;
78  }
static int n_born
static int n_alive
derived::~derived ( )
inlinenoexcept

Definition at line 87 of file value_ptr_test_4.cc.

87 { --n_alive; }
static int n_alive
derived::derived ( derived const &  s)
inlineprotected

Definition at line 70 of file value_ptr_test_5.cc.

70  : base(s), i(s.i)
71  {
72  ++n_alive;
73  ++n_born;
74  }
static int n_born
static int n_alive
static QCString * s
Definition: config.cpp:1042
derived::derived ( )
inline

Definition at line 81 of file value_ptr_test_5.cc.

81  : i(0)
82  {
83  ++n_alive;
84  ++n_born;
85  }
static int n_born
static int n_alive
derived::derived ( int  i)
inlineexplicit

Definition at line 86 of file value_ptr_test_5.cc.

86  : base(i), i(i)
87  {
88  ++n_alive;
89  ++n_born;
90  }
static int n_born
static int n_alive
derived::~derived ( )
inlinenoexcept

Definition at line 99 of file value_ptr_test_5.cc.

99 { --n_alive; }
static int n_alive

Member Function Documentation

derived* derived::clone ( ) const
inlineoverridevirtual

Implements base.

Definition at line 81 of file value_ptr_test_4.cc.

82  {
83  ++n_cloned;
84  return new derived(*this);
85  }
static int n_cloned
derived* derived::clone ( ) const
inlineoverridevirtual

Implements base.

Definition at line 93 of file value_ptr_test_5.cc.

94  {
95  ++n_cloned;
96  return new derived(*this);
97  }
static int n_cloned
bool derived::isSame ( derived const &  o) const
inline

Definition at line 95 of file value_ptr_test_4.cc.

96  {
97  return &o == this;
98  }
bool derived::isSame ( derived const &  o) const
inline

Definition at line 107 of file value_ptr_test_5.cc.

108  {
109  return &o == this;
110  }
bool derived::operator== ( derived const &  o) const
inline

Definition at line 90 of file value_ptr_test_4.cc.

91  {
92  return this->base::operator==(o) && i == o.i;
93  }
bool operator==(base const &o) const
bool derived::operator== ( derived const &  o) const
inline

Definition at line 102 of file value_ptr_test_5.cc.

103  {
104  return this->base::operator==(o) && i == o.i;
105  }
bool operator==(base const &o) const

Member Data Documentation

int derived::i
private

Definition at line 55 of file value_ptr_test_4.cc.

int derived::n_alive = 0
static

Definition at line 65 of file value_ptr_test_4.cc.

int derived::n_born = 0
static

Definition at line 66 of file value_ptr_test_4.cc.

int derived::n_cloned = 0
static

Definition at line 67 of file value_ptr_test_4.cc.


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