Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWDBTBuffer<Type>


RWDBTBuffer<Type> RWDBTSingleBuffer<Type> RWDBAbstract Buffer

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/db/tbuffer.h>

Description

A public derivative of RWDBTSingleBuffer<Type> and RWDBAbstractBuffer, class RWDBTBuffer<Type> encapsulates a fixed-size array of Types. Memory for these Types can be managed by the user or by an RWDBTBuffer<Type> itself. In addition, this class keeps a null indicator vector that indicates whether any item in the array is null. The class also provides mechanisms for converting buffer items to and from RWDBValues, if the chosen Type can be converted.

The parameter Type represents the type of object to be inserted into the Type array, either a class or a fundamental datatype. The class Type must have:

Example

Please see Example 1 in the entry for RWDBOSql.

Public Constructors

RWDBTBuffer(RWSize_T entries=1, RWSize_T width=0);

NOTE:If an invalid value is entered for width, this constructor will ignore it and substitute the default value.
RWDBTBuffer(Type *data, RWSize_T entries=1, 
            RWSize_T width = 0);
RWDBTBuffer(Type *data, RWDBNullIndicator *ni, 
            RWSize_T entries=1, RWSize_T width = 0);

Public Destructor

~RWDBTBuffer();

Public Member Operators

Type& 
operator[](size_t index);
Type 
operator[](size_t index) const;

Public Member Functions

size_t 
entries() const;
RWBoolean 
isNull(size_t index) const;
void 
setData(const Type& newData);
void 
setNull();
void 
setNull(size_t index);
void 
unsetNull();
void 
unsetNull(size_t index);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.