SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWDBBinaryVectorElement Class Reference

Deprecated. Encapsulates arrays of unsigned characters stored in RWDBBinaryVector instances. More...

#include <rw/db/dbvector.h>

Public Member Functions

unsigned char * data () const
 
 operator unsigned char * ()
 
RWDBBinaryVectorElementoperator= (const RWDBBlob &blob)
 

Detailed Description

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

RWDBBinaryVectorElement is used to encapsulate arrays of unsigned characters stored in RWDBBinaryVector instances. A method is provided for assigning the data held in RWDBBlob instances.

Synopsis
#include <rw/db/dbvector.h>
RWDBBinaryVector binaryVector(width, length);
RWDBBinaryVectorElement element = binaryVector[i];
Example

In the following example, the ith element of vector binaryVector is assigned the data held in ablob:

RWDBBinaryVector binaryVector(width,length);
RWDBBlob ablob;
binaryVector[i] = ablob;

Member Function Documentation

unsigned char* RWDBBinaryVectorElement::data ( ) const
inline

Returns the unsigned char* represented by self.

RWDBBinaryVectorElement::operator unsigned char * ( )
inline

Conversion operator. Returns the unsigned char* represented by self.

RWDBBinaryVectorElement& RWDBBinaryVectorElement::operator= ( const RWDBBlob blob)
inline

Assignment operator. Assigns the data held in blob to self.

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