SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWDBDecimalVectorElement Class Reference

Deprecated. Encapsulates arrays of decimals stored in RWDBDecimalVector objects. More...

#include <rw/db/dbvector.h>

Public Member Functions

 operator char * ()
 
RWDBDecimalVectorElementoperator= (const RWDecimalPortable &val)
 
RWDBDecimalVectorElementoperator= (const long val)
 
RWDBDecimalVectorElementoperator= (const int val)
 

Detailed Description

Deprecated:
As of SourcePro 6, use RWDecimalPortable and RWDBTBuffer<RWDecimalPortable> instead.

RWDBDecimalVectorElement objects are used to encapsulate arrays of decimals stored in RWDBDecimalVector objects. A method is provided for assigning the data held in instances of RWDecimalPortable.

Synopsis
#include <rw/db/dbvector.h>
RWDBDecimalVector decVector(width, length);
RWDBDecimalVectorElement element = decVector[i];
Example

In the following example the ith element of vector decVector is assigned the data held in dec:

RWDBDecimalVector decVector(width,length);
RWDecimalPortable dec("3.1415926");
decVector[i] = dec;

Member Function Documentation

RWDBDecimalVectorElement::operator char * ( )
inline

Conversion operator. Returns the char* represented by self.

RWDBDecimalVectorElement& RWDBDecimalVectorElement::operator= ( const RWDecimalPortable val)
inline

Assigns the data held in val to self.

RWDBDecimalVectorElement& RWDBDecimalVectorElement::operator= ( const long  val)
inline

Assigns the data held in val to self.

RWDBDecimalVectorElement& RWDBDecimalVectorElement::operator= ( const int  val)
inline

Assigns the data held in val to self.

Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.