SQL Relay C++ API
Public Member Functions | List of all members
sqlrrowlist Class Reference

Inherits listcollection< const char * >.

Public Member Functions

 sqlrrowlist ()
 
 sqlrrowlist (sqlrcursor *cursor)
 
 sqlrrowlist (sqlrcursor *cursor, uint64_t row)
 
 ~sqlrrowlist ()
 
void setCursor (sqlrcursor *cursor)
 
void setRow (uint64_t row)
 
bool isReadOnly ()
 
bool isBlockBased ()
 
uint64_t getBlockSize ()
 
uint64_t getCount ()
 
listnode< const char * > * getFirst ()
 
listnode< const char * > * getNext (listnode< const char * > *node)
 
listnode< const char * > * find (const char *value)
 
listnode< const char * > * find (listnode< const char * > *startnode, const char *value)
 

Detailed Description

The sqlrrowlist class is a read-only, block-based implementation of the rudiments listcollection<const char *> class.

After setting the cursor and row, it provides read-only, block-based access to the values of a single row in the result set.

The instance can be passed into any method that operates on a read-only, block-based rudiments listcollection<const char *>, or otherwise used in the same manner that a read-only, block-based rudiments listcollection<const char *> would be.

Constructor & Destructor Documentation

◆ sqlrrowlist() [1/3]

sqlrrowlist::sqlrrowlist ( )

Creates an empty instance of the sqlrrowlist class.

◆ sqlrrowlist() [2/3]

sqlrrowlist::sqlrrowlist ( sqlrcursor cursor)

Creates an instance of the sqlrrowlist class and sets the cursor used by the instance to "cursor".

◆ sqlrrowlist() [3/3]

sqlrrowlist::sqlrrowlist ( sqlrcursor cursor,
uint64_t  row 
)

Creates an instance of the sqlrrowlist class. Sets the cursor used by the instance to "cursor" and the row that the instance returns fields from to "row".

◆ ~sqlrrowlist()

sqlrrowlist::~sqlrrowlist ( )

Deletes this intance of the sqlrrowlist class.

Member Function Documentation

◆ find() [1/2]

listnode<const char *>* sqlrrowlist::find ( const char *  value)

Returns a pointer to the first listnode containing "value" or NULL if "value" was not found.

◆ find() [2/2]

listnode<const char *>* sqlrrowlist::find ( listnode< const char * > *  startnode,
const char *  value 
)

Returns a pointer to the first listnode after "startnode" containing "value" or NULL if "value" was not found.

◆ getBlockSize()

uint64_t sqlrrowlist::getBlockSize ( )

Returns 1.

◆ getCount()

uint64_t sqlrrowlist::getCount ( )

Returns the number of nodes in the sqlrrowlist.

◆ getFirst()

listnode<const char *>* sqlrrowlist::getFirst ( )

Returns the first node in the sqlrrowlist.

◆ getNext()

listnode<const char *>* sqlrrowlist::getNext ( listnode< const char * > *  node)

Returns the node after "node" or NULL if this node is the last node in the list. "node" is presumed to be in the list.

◆ isBlockBased()

bool sqlrrowlist::isBlockBased ( )

Returns true.

◆ isReadOnly()

bool sqlrrowlist::isReadOnly ( )

Returns true.

◆ setCursor()

void sqlrrowlist::setCursor ( sqlrcursor cursor)

Sets the cursor used by this instance to "cursor".

◆ setRow()

void sqlrrowlist::setRow ( uint64_t  row)

Sets the row that this instance returns fields from to "row".