rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBDecimalVectorElement Class Reference
[Bulk Operations]

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

#include <rw/db/dbvector.h>

List of all members.

Public Member Functions

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

Detailed Description

Deprecated:
Classes RWDBDecimalVectorElement and RWDBDecimalVector are deprecated. Please use classes RWDecimalPortable and RWDBTBuffer<RWDecimalPortable>.

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];

Examples

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 int  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 RWDecimalPortable val  )  [inline]

Assigns the data held in val to self.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© 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.