Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

c4_RowRef Class Reference

Reference to a data row, can be used on either side of an assignment. More...

Inheritance diagram for c4_RowRef:

Inheritance graph
[legend]
List of all members.

Public Member Functions

c4_RowRef operator= (const c4_RowRef &)
 Assign the value of another row to this one.
c4_Cursor operator & () const
 Return the cursor associated to this row.
c4_View Container () const
 Return the underlying container view.

Protected Member Functions

 c4_RowRef (c4_Cursor)
 Constructor, not for general use.

Friends

class c4_Cursor
class c4_Row

Detailed Description

Reference to a data row, can be used on either side of an assignment.

Row references are created when dereferencing a c4_Cursor or when indexing an element of a c4_View. Assignment will change the corresponding item. Rows (objects of type c4_Row) are a special case of row references, consisting of a view with exactly one item.

Internally, row references are very similar to cursors, in fact they are little more than a wrapper around them. The essential difference is one of semantics: comparing row references compares contents, copying row references copies the contents, whereas cursor comparison and copying deals with the pointer to the row, not its contents.


The documentation for this class was generated from the following files:

Metakit C++ API Reference - https://www.equi4.com/metakit.html - extracted with Doxygen