Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::gen::ntree::swapper Struct Template Reference

A class which can be used to move all nodes of a tree to another tree without copying. More...

#include <ntree.h>

Collaboration diagram for more::gen::ntree::swapper:

Collaboration graph
[legend]
List of all members.

Public Methods

Friends


Detailed Description

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
struct more::gen::ntree< T, BranchContainer, Allocator >::swapper

A class which can be used to move all nodes of a tree to another tree without copying.

This class can be used as a return type in place of ntree itself to avoid redundant copying.


Constructor & Destructor Documentation

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
more::gen::ntree< T, BranchContainer, Allocator >::swapper::swapper   [inline]
 

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
more::gen::ntree< T, BranchContainer, Allocator >::swapper::swapper ntree   t [inline]
 

Take the nodes of t and replace them with none.

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
more::gen::ntree< T, BranchContainer, Allocator >::swapper::~swapper   [inline]
 

Destroy the nodes.


Member Function Documentation

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
swapper& more::gen::ntree< T, BranchContainer, Allocator >::swapper::operator= swapper &    t [inline]
 

Swap the nodes with those of t.


Friends And Related Function Documentation

template<typename T, template< typename X, typename A > class BranchContainer = std::list, typename Allocator = gen::allocator<T>>
friend class ntree [friend]
 


The documentation for this struct was generated from the following file:
Generated on Sat Sep 7 19:12:35 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.