Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
simple_base Class Reference

Public Member Functions

 simple_base ()
 
 simple_base (int j)
 
virtual simple_baseclone () const
 
virtual ~simple_base ()
 
bool operator== (simple_base const &o) const
 
bool isSame (simple_base const &o) const
 

Static Public Attributes

static int n_alive = 0
 
static int n_born = 0
 

Private Member Functions

 simple_base (simple_base const &s)
 

Private Attributes

int i
 

Detailed Description

Definition at line 6 of file value_ptr_test_3.cc.

Constructor & Destructor Documentation

simple_base::simple_base ( simple_base const &  s)
inlineprivate

Definition at line 9 of file value_ptr_test_3.cc.

9  : i(s.i)
10  {
11  ++n_alive;
12  ++n_born;
13  }
static int n_alive
static int n_born
static QCString * s
Definition: config.cpp:1042
simple_base::simple_base ( )
inline

Definition at line 19 of file value_ptr_test_3.cc.

19  : i(0)
20  {
21  ++n_alive;
22  ++n_born;
23  }
static int n_alive
static int n_born
simple_base::simple_base ( int  j)
inlineexplicit

Definition at line 24 of file value_ptr_test_3.cc.

24  : i(j)
25  {
26  ++n_alive;
27  ++n_born;
28  }
static int n_alive
static int n_born
virtual simple_base::~simple_base ( )
inlinevirtual

Definition at line 36 of file value_ptr_test_3.cc.

36 { --n_alive; }
static int n_alive

Member Function Documentation

virtual simple_base* simple_base::clone ( ) const
inlinevirtual

Definition at line 31 of file value_ptr_test_3.cc.

32  {
33  return new simple_base(*this);
34  }
bool simple_base::isSame ( simple_base const &  o) const
inline

Definition at line 44 of file value_ptr_test_3.cc.

45  {
46  return &o == this;
47  }
bool simple_base::operator== ( simple_base const &  o) const
inline

Definition at line 39 of file value_ptr_test_3.cc.

40  {
41  return i == o.i;
42  }

Member Data Documentation

int simple_base::i
private

Definition at line 7 of file value_ptr_test_3.cc.

int simple_base::n_alive = 0
static

Definition at line 16 of file value_ptr_test_3.cc.

int simple_base::n_born = 0
static

Definition at line 17 of file value_ptr_test_3.cc.


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