lestes::std::mem::root_pointer Class Reference

Wrapped bare pointer. More...

#include <root_pointer.hh>

Inheritance diagram for lestes::std::mem::root_pointer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ~root_pointer (void)
 Destructs the root pointer.

Protected Member Functions

 root_pointer (void)
 Creates the root pointer.
keystonepointer_get (void) const
 Returns the bare pointer.
void pointer_set (keystone *a_pointer)
 Sets the bare pointer.

Private Member Functions

 root_pointer (bool)
 Creates the head of list of pointers.
 root_pointer (const root_pointer &)
 Hides copy constructor.
root_pointeroperator= (const root_pointer &)
 Hides assignment operator.

Private Attributes

keystonepointer
 The wrapped bare pointer.
root_pointerprevious
 Previous pointer in linked list of all root pointers.
root_pointernext
 Next pointer in linked list of all root pointers.

Friends

class gc
 The gc accesses private fields for speed.

Detailed Description

Wrapped bare pointer.

Represents starting place for garbage collection. Used as common ancestor of all ptr template classes.


Constructor & Destructor Documentation

lestes::std::mem::root_pointer::~root_pointer ( void   )  [inline]

Destructs the root pointer.

Destructs the pointer. Leaves the referenced object unchanged. Unlinks the root pointer from list of all root pointers.

lestes::std::mem::root_pointer::root_pointer ( void   )  [inline, protected]

Creates the root pointer.

Creates the root pointer without initialization. Links the pointer into the list of all root pointers.

lestes::std::mem::root_pointer::root_pointer ( bool   )  [inline, private]

Creates the head of list of pointers.

Creates the head of all pointers in gc.

lestes::std::mem::root_pointer::root_pointer ( const root_pointer  )  [private]

Hides copy constructor.


Member Function Documentation

keystone * lestes::std::mem::root_pointer::pointer_get ( void   )  const [inline, protected]

Returns the bare pointer.

Returns the underlying bare pointer.

Returns:
The bare pointer.

Reimplemented in lestes::std::ptr< T >, lestes::std::ptr< reflection_list >, lestes::std::ptr< object::reflection_list >, and lestes::std::ptr< source_location >.

void lestes::std::mem::root_pointer::pointer_set ( keystone a_pointer  )  [inline, protected]

Sets the bare pointer.

Sets the underlying bare pointer.

Parameters:
a_pointer The new bare pointer.

root_pointer& lestes::std::mem::root_pointer::operator= ( const root_pointer  )  [private]

Hides assignment operator.


Friends And Related Function Documentation

friend class gc [friend]

The gc accesses private fields for speed.


Member Data Documentation

keystone* lestes::std::mem::root_pointer::pointer [private]

The wrapped bare pointer.

root_pointer* lestes::std::mem::root_pointer::previous [private]

Previous pointer in linked list of all root pointers.

root_pointer* lestes::std::mem::root_pointer::next [private]

Next pointer in linked list of all root pointers.


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:50:22 2007 for lestes by doxygen 1.5.1-20070107