SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
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 along with 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 © 2016 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.
Provide feedback to Rogue Wave about its documentation.