kp Namespace Reference


Detailed Description


Functions

template<class T1, class T2>
void constructor (T1 *p, T2 &val)
template<class T1>
void constructor (T1 *p)
template<class T1>
void destructor (T1 *p)


Function Documentation

template<class T1>
void kp::constructor ( T1 *  p  )  [inline]

Definition at line 83 of file tree.h.

00084    {
00085    new ((void *) p) T1;
00086    }

template<class T1, class T2>
void kp::constructor ( T1 *  p,
T2 &  val 
) [inline]

Definition at line 77 of file tree.h.

Referenced by tree< T, tree_node_allocator >::append_child(), tree< T, tree_node_allocator >::insert(), tree< T, tree_node_allocator >::insert_after(), tree< T, tree_node_allocator >::prepend_child(), and tree< T, tree_node_allocator >::replace().

00078    {
00079    new ((void *) p) T1(val);
00080    }

Here is the caller graph for this function:

template<class T1>
void kp::destructor ( T1 *  p  )  [inline]

Definition at line 89 of file tree.h.

Referenced by tree< T, tree_node_allocator >::erase(), tree< T, tree_node_allocator >::erase_children(), and tree< T, tree_node_allocator >::replace().

00090    {
00091    p->~T1();
00092    }

Here is the caller graph for this function:


Generated on Wed Feb 27 20:32:51 2008 for php.ast.svn.src. by  doxygen 1.5.3