List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
ns1::Foo Class Reference
Inheritance diagram for ns1::Foo:
Inheritance graph
[legend]

Public Types

typedef Foo CountedType
 The type of the object we are counting. More...
 
typedef
CountedObjectRegistry::Counter 
Counter
 The (integer) type used to hold the counter. More...
 

Public Member Functions

 Foo (const Foo &foo)
 
int GetData () const
 
bool operator!= (const Foo &foo) const
 
Foooperator= (const Foo &foo)
 
bool operator== (const Foo &foo) const
 
void SetData (const int data)
 

Static Public Member Functions

static Counter GetObjectsAssigned ()
 
static Counter GetObjectsCopied ()
 
static Counter GetObjectsCreated ()
 number of calls to the constructor More...
 
static Counter GetObjectsDestroyed ()
 number of calls to the destructor More...
 
static Counter GetObjectsExisting ()
 difference of number of calls to constructor and destructor More...
 

Private Member Functions

 Foo ()
 
 ~Foo ()
 

Private Attributes

int fData
 

Friends

class ns2::Bar
 
class utl::InitializedShadowPtr< Foo >
 
class utl::ShadowPtr< Foo >
 

Detailed Description

Definition at line 37 of file testShadowPtr.cc.

Member Typedef Documentation

typedef Foo utl::CountedObject< Foo >::CountedType
inherited

The type of the object we are counting.

Definition at line 33 of file CountedObject.h.

typedef CountedObjectRegistry::Counter utl::CountedObject< Foo >::Counter
inherited

The (integer) type used to hold the counter.

Definition at line 35 of file CountedObject.h.

Constructor & Destructor Documentation

ns1::Foo::Foo ( const Foo foo)
inline

Definition at line 40 of file testShadowPtr.cc.

References fData.

ns1::Foo::Foo ( )
inlineprivate

Definition at line 48 of file testShadowPtr.cc.

ns1::Foo::~Foo ( )
inlineprivate

Definition at line 49 of file testShadowPtr.cc.

Member Function Documentation

int ns1::Foo::GetData ( ) const
inline
static Counter utl::CountedObject< Foo >::GetObjectsAssigned ( )
inlinestaticinherited

Definition at line 48 of file CountedObject.h.

References utl::CountedObject< T >::fgObjectsAssigned.

static Counter utl::CountedObject< Foo >::GetObjectsCopied ( )
inlinestaticinherited

Definition at line 45 of file CountedObject.h.

References utl::CountedObject< T >::fgObjectsCopied.

static Counter utl::CountedObject< Foo >::GetObjectsCreated ( )
inlinestaticinherited

number of calls to the constructor

Definition at line 38 of file CountedObject.h.

References utl::CountedObject< T >::fgObjectsCreated.

static Counter utl::CountedObject< Foo >::GetObjectsDestroyed ( )
inlinestaticinherited

number of calls to the destructor

Definition at line 40 of file CountedObject.h.

References utl::CountedObject< T >::fgObjectsDestroyed.

static Counter utl::CountedObject< Foo >::GetObjectsExisting ( )
inlinestaticinherited

difference of number of calls to constructor and destructor

Definition at line 42 of file CountedObject.h.

References utl::CountedObject< T >::fgObjectsCreated, and utl::CountedObject< T >::fgObjectsDestroyed.

bool ns1::Foo::operator!= ( const Foo foo) const
inline

Definition at line 45 of file testShadowPtr.cc.

References utl::operator==().

Foo& ns1::Foo::operator= ( const Foo foo)
inline

Definition at line 41 of file testShadowPtr.cc.

References fData.

bool ns1::Foo::operator== ( const Foo foo) const
inline

Definition at line 44 of file testShadowPtr.cc.

References fData.

void ns1::Foo::SetData ( const int  data)
inline

Definition at line 43 of file testShadowPtr.cc.

References data.

Referenced by testShadowPtr::testALot().

Friends And Related Function Documentation

friend class ns2::Bar
friend

Definition at line 53 of file testShadowPtr.cc.

friend class utl::InitializedShadowPtr< Foo >
friend

Definition at line 55 of file testShadowPtr.cc.

friend class utl::ShadowPtr< Foo >
friend

Definition at line 54 of file testShadowPtr.cc.

Member Data Documentation

int ns1::Foo::fData
private

Definition at line 51 of file testShadowPtr.cc.

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


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

, generated on Tue Sep 26 2023.