Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWTPtrVector<T>

Module:  Essential Tools Module   Group:  Traditional Collection Classes


Does not inherit

Local Index

Members

Synopsis

#include <rw/tpvector.h>
RWTPtrVector<T> vec;

Description

Class RWTPtrVector<T> is a simple parameterized vector of pointers to objects of type T. It is most useful when you know precisely how many pointers must be held in the collection. If the intention is to "insert" an unknown number of objects into a collection, then class RWTPtrOrderedVector<T,A> may be a better choice. The class T can be of any type.

Persistence

Isomorphic

Example

Program output (if run on June 18, 2009):

Public Constructors

RWTPtrVector<T>();
RWTPtrVector<T>(size_t n);
RWTPtrVector<T>(size_t n, T* ival);
RWTPtrVector<T>(const RWTPtrVector& v);

Public Operators

RWTPtrVector<T>&
operator=(const RWTPtrVector<T>& v); 
RWTPtrVector<T>&
operator=(T* p); 
T*&
operator()(size_t i); 
T*
operator()(size_t i) const;
T*&
operator[](size_t i); 
T*
operator[](size_t i) const;

Public Member Functions

T* const *
data() const; 
size_t
length() const; 
void
reshape(size_t N); 
void
resize(size_t N); 


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.