Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWTValVector<T>

Module:  Essential Tools Module   Group:  Traditional Collection


Does not inherit

Local Index

Members

Synopsis

#include <rw/tvvector.h>
RWTValVector<T> vec;

Description

Class RWTValVector<T> is a simple parameterized vector of objects of type T. It is most useful when you know precisely how many objects have to be held in the collection. If the intention is to "insert" an unknown number of objects, then class RWTValOrderedVector<T,A> may be a better choice.

The class T must have:

Persistence

Isomorphic

Example

Program output:

Public Constructors

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

Public Destructors

~RWTValVector<T>();

Public Operators

RWTValVector<T>&
operator=(const RWTValVector<T>& v); 
RWTValVector<T>&
operator=(const T& ival);
const T&
operator()(size_t i) const; 
T&
operator()(size_t i);
const T&
operator[](size_t i) const; 
T&
operator[](size_t i);

Public Member Functions

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


Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.