#include <container.h>

Public Member Functions | |
| int | search (dbCursor< T > &cursor, void const *from, void const *till) |
| Search records matching search criteria (between, less or equal, great or equal). | |
| int | search (dbCursor< T > &cursor, void const *key) |
| Select records with specified value of the key. | |
| int | prefixSearch (dbCursor< T > &cursor, char const *key) |
| Select records which indexed field is prefix of specfied key. | |
| int | search (dbCursor< T > &cursor) |
| Select all records in the container. | |
| int | spatialSearch (dbCursor< T > &cursor, rectangle const &r, SpatialSearchType type) |
| Perform spatial search using R-Tree. | |
| void | create () |
| Create new container. | |
| void | purge () |
| Clear the container. | |
| void | free () |
| Deallocate container. | |
| void | add (dbReference< T > const &ref) |
| Add new record to container. | |
| void | remove (dbReference< T > const &ref) |
| Remove record from the container. | |
| dbContainer (const char *fieldName) | |
| Constructor of the contanier reference. | |
| void | create (dbDatabase *db) |
| Create new container in specified database. | |
| void | purge (dbDatabase *db) |
| Clear the container in specified database. | |
| void | free (dbDatabase *db) |
| Deallocate container in specified database. | |
| void | add (dbDatabase *db, dbReference< T > const &ref) |
| Add new record to container in specified database. | |
| void | remove (dbDatabase *db, dbReference< T > const &ref) |
| Remove record from the container in specified database. | |
| dbContainer (dbDatabase *db, const char *fieldName) | |
| Constructor of the contanier reference. | |
| dbContainer | ( | const char * | fieldName | ) | [inline] |
Constructor of the contanier reference.
| fieldName | name of the key field used by container |
| dbContainer | ( | dbDatabase * | db, | |
| const char * | fieldName | |||
| ) | [inline] |
Constructor of the contanier reference.
| db | database | |
| fieldName | name of the key field used by container |
| int search | ( | dbCursor< T > & | cursor, | |
| void const * | from, | |||
| void const * | till | |||
| ) | [inline] |
Search records matching search criteria (between, less or equal, great or equal).
| cursor | cursor to iterate through selected resords | |
| from | inclusive low bound for the search key, if NULL then there is no low bound | |
| till | inclusive high bound for the search key, if NULL then there is no high bound |
| int search | ( | dbCursor< T > & | cursor, | |
| void const * | key | |||
| ) | [inline] |
Select records with specified value of the key.
| cursor | cursor to iterate through selected resords | |
| key | searched value of the key |
| int prefixSearch | ( | dbCursor< T > & | cursor, | |
| char const * | key | |||
| ) | [inline] |
Select records which indexed field is prefix of specfied key.
| cursor | cursor to iterate through selected resords | |
| key | string key which prefixes are located in the index |
| int search | ( | dbCursor< T > & | cursor | ) | [inline] |
Select all records in the container.
| cursor | cursor to iterate through selected resords |
| int spatialSearch | ( | dbCursor< T > & | cursor, | |
| rectangle const & | r, | |||
| SpatialSearchType | type | |||
| ) | [inline] |
Perform spatial search using R-Tree.
| cursor | cursor to iterate through selected resords | |
| r | search rectangle | |
| type | search criteria: one of SpatialSearchType |
| void create | ( | ) | [inline] |
Create new container.
| void purge | ( | ) | [inline] |
Clear the container.
| void free | ( | ) | [inline] |
Deallocate container.
| void add | ( | dbReference< T > const & | ref | ) | [inline] |
Add new record to container.
| ref | reference to the record added to the container |
| void remove | ( | dbReference< T > const & | ref | ) | [inline] |
Remove record from the container.
| ref | reference to the record deleted from the container |
| void create | ( | dbDatabase * | db | ) | [inline] |
Create new container in specified database.
| db | database |
Reimplemented from dbAnyContainer.
| void purge | ( | dbDatabase * | db | ) | [inline] |
Clear the container in specified database.
| db | database |
Reimplemented from dbAnyContainer.
| void free | ( | dbDatabase * | db | ) | [inline] |
Deallocate container in specified database.
| db | database |
Reimplemented from dbAnyContainer.
| void add | ( | dbDatabase * | db, | |
| dbReference< T > const & | ref | |||
| ) | [inline] |
Add new record to container in specified database.
| db | database | |
| ref | reference to the record added to the container |
| void remove | ( | dbDatabase * | db, | |
| dbReference< T > const & | ref | |||
| ) | [inline] |
Remove record from the container in specified database.
| db | database | |
| ref | reference to the record deleted from the container |