RWDBRow RWCollectable
Member Functions | |
operator[]() |
#include <rw/db/row.h> RWDBRow& r = myMemTable[i];
RWDBRow is an ordered collection of RWDBValues. RWDBRow is a relatively low level construct used by DBTools.h++ to store a row of data on its way to or from the database. It is visible to applications for two reasons:
An RWDBRow is a single row of an RWDBMemTable.
Some applications may want to manage raw data without knowing anything about its structure. RWDBRow can be used as a container in these cases.
The only semantics that RWDBRow adds to RWCollectable are:
The index operators [] return RWDBValue&, rather than RWCollectable*&.
The destructor deallocates the contents of the RWDBRow by calling clearAndDestroy().
RWDBRow is designed around the Interface/Implementation paradigm. An RWDBRow instance is an interface to a reference-counted implementation; copy constructors and assignment operators produce additional references to a shared implementation.
RWDBRow();
The default constructor produces an empty RWDBRow.
RWDBValue& operator[](size_t index) const;
Redefined from RWOrdered. Returns a reference to the RWDBValue at position index in self. The call is forwarded to RWOrdered, which causes an exception of type RWBoundsErr to occur if index is out of range.
All RWDBRow methods are inherited from RWOrdered. The Tools.h++ Class Reference describes class RWOrdered.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.