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

Public Member Functions

 simple ()
 
 simple (int j)
 
 simple (simple const &s)
 
 ~simple ()
 
bool operator== (simple const &o) const
 
bool isSame (simple const &o) const
 

Static Public Attributes

static int n_alive = 0
 
static int n_born = 0
 

Private Attributes

int i
 

Detailed Description

Definition at line 9 of file value_ptr_test_2.cc.

Constructor & Destructor Documentation

simple::simple ( )
inline

Definition at line 16 of file value_ptr_test_2.cc.

16  : i(0)
17  {
18  ++n_alive;
19  ++n_born;
20  }
static int n_born
static int n_alive
simple::simple ( int  j)
inlineexplicit

Definition at line 21 of file value_ptr_test_2.cc.

21  : i(j)
22  {
23  ++n_alive;
24  ++n_born;
25  }
static int n_born
static int n_alive
simple::simple ( simple const &  s)
inline

Definition at line 27 of file value_ptr_test_2.cc.

27  : i(s.i)
28  {
29  ++n_alive;
30  ++n_born;
31  }
static int n_born
static int n_alive
static QCString * s
Definition: config.cpp:1042
simple::~simple ( )
inline

Definition at line 33 of file value_ptr_test_2.cc.

33 { --n_alive; }
static int n_alive

Member Function Documentation

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

Definition at line 41 of file value_ptr_test_2.cc.

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

Definition at line 36 of file value_ptr_test_2.cc.

37  {
38  return i == o.i;
39  }

Member Data Documentation

int simple::i
private

Definition at line 10 of file value_ptr_test_2.cc.

int simple::n_alive = 0
static

Definition at line 13 of file value_ptr_test_2.cc.

int simple::n_born = 0
static

Definition at line 14 of file value_ptr_test_2.cc.


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