H3D::AutoPtrVector< PtrType > Class Template Reference

This class is similar to the auto_ptr class in the vector elements are Node * or pointers to subclasses of Node. More...

#include <AutoPtrVector.h>

List of all members.

Public Member Functions

 AutoPtrVector ()
 Creates an empty vector.
 AutoPtrVector (const vector< PtrType > &v)
 Copy constructor from a vector class.
 AutoPtrVector (const AutoPtrVector< PtrType > &v)
 Copy constructor.
 AutoPtrVector (typename vector< PtrType * >::size_type n)
 Creates a vector with n elements.
virtual ~AutoPtrVector ()
 Destructor.
AutoPtrVector< PtrType > & operator= (const AutoPtrVector< PtrType > &v)
 Assignement operator.
void pop_back ()
 Removed the last element.
void erase (typename vector< PtrType * >::const_iterator pos)
 Erases the element at position pos.
void erase (typename vector< PtrType * >::const_iterator first, typename vector< PtrType * >::const_iterator last)
 Erases the range [first, last).
void clear ()
 Erases all of the elements.


Detailed Description

template<class PtrType>
class H3D::AutoPtrVector< PtrType >

This class is similar to the auto_ptr class in the vector elements are Node * or pointers to subclasses of Node.

Reference counting will be upheld on all nodes in the vector.


Generated on Thu Aug 24 12:38:49 2006 for H3D API by  doxygen 1.4.5