|
|
|
|
|
|
|||
#include <openrj/stl/database.hpp>
Inheritance diagram for memory_database:

example_stl_1.cpp, example_stl_2.cpp, example_stl_3.cpp, example_stl_4.cpp, example_stl_6.cpp, and example_stl_7.cpp.
Public Types | |
| typedef memory_database | class_type |
| This type. | |
| typedef record | value_type |
| The value type. | |
| typedef value_type const | const_reference |
| The non-mutating (const) reference type. | |
| typedef value_type const * | const_pointer |
| The non-mutating (const) pointer type. | |
| typedef ptrdiff_t | difference_type |
| The difference type. | |
| typedef size_t | size_type |
| The size type. | |
| typedef stlsoft::proxy_iterator< const ORJField, field, proxy_traits_type, std::random_access_iterator_tag, field > | const_field_iterator |
| The non-mutating (const) iterator type for enumerating all fields in the database. | |
| typedef stlsoft::const_reverse_iterator_base< const_field_iterator, field, field, void, difference_type > | const_reverse_field_iterator |
| The non-mutating (const) reverse iterator type. | |
| typedef size_t | distance_type |
| The distance type. | |
| typedef stlsoft::indirect_reverse_iterator< const_iterator, value_type, value_type, void, difference_type, std::random_access_iterator_tag > | const_reverse_iterator |
| The non-mutating (const) reverse iterator type. | |
Public Member Functions | |
| memory_database (char const *contents, size_t cbContents, unsigned flags=0) | |
| Constructs a database instance from the given memory, and the optional flags. | |
| template<typename S> | |
| memory_database (S const &contents, unsigned flags=0) | |
| Constructs a database instance from the given string, and the optional flags. | |
| template<size_t N> | |
| memory_database (const char(&contents)[N], unsigned flags=0) | |
| Constructs a database instance from the given character array, and the optional flags. | |
| size_t | num_lines () const |
| Returns the number of lines in the database. | |
| size_t | num_fields () const |
| Returns the number of fields in the database. | |
| size_t | num_records () const |
| Returns the number of records in the database. | |
| size_t | size () const |
| Returns the number of records in the database. | |
| const record | operator[] (size_t index) const |
| Returns the requested record. | |
| const_iterator | begin () const |
| Begins the iteration. | |
| const_iterator | end () const |
| Ends the iteration. | |
| const_reverse_iterator | rbegin () const |
| Begins the reverse iteration. | |
| const_reverse_iterator | rend () const |
| Ends the reverse iteration. | |
| typedef memory_database class_type |
typedef stlsoft::proxy_iterator<const ORJField , field , proxy_traits_type , std::random_access_iterator_tag , field > const_field_iterator [inherited] |
The non-mutating (const) iterator type for enumerating all fields in the database.
typedef value_type const* const_pointer [inherited] |
The non-mutating (const) pointer type.
typedef value_type const const_reference [inherited] |
The non-mutating (const) reference type.
typedef stlsoft:: const_reverse_iterator_base< const_field_iterator , field , field , void , difference_type > const_reverse_field_iterator [inherited] |
The non-mutating (const) reverse iterator type.
typedef stlsoft:: indirect_reverse_iterator< const_iterator , value_type , value_type , void , difference_type , std::random_access_iterator_tag > const_reverse_iterator [inherited] |
The non-mutating (const) reverse iterator type.
typedef ptrdiff_t difference_type [inherited] |
The difference type.
typedef size_t distance_type [inherited] |
The distance type.
typedef size_t size_type [inherited] |
The size type.
typedef record value_type [inherited] |
The value type.
| memory_database | ( | char const * | contents, | |
| size_t | cbContents, | |||
| unsigned | flags = 0 | |||
| ) | [inline, explicit] |
Constructs a database instance from the given memory, and the optional flags.
| contents | Pointer to the base of the memory contents to parse. May not be NULL | |
| cbContents | Number of bytes in the memory contents to parse | |
| flags | Combination of the ORJ_FLAG enumeration |
| memory_database | ( | S const & | contents, | |
| unsigned | flags = 0 | |||
| ) | [inline, explicit] |
Constructs a database instance from the given string, and the optional flags.
| contents | String containing the database contents | |
| flags | Combination of the ORJ_FLAG enumeration |
| memory_database | ( | const char & | contents[N], | |
| unsigned | flags = 0 | |||
| ) | [inline, explicit] |
Constructs a database instance from the given character array, and the optional flags.
| contents | String containing the database contents | |
| flags | Combination of the ORJ_FLAG enumeration |
| database_base::const_iterator begin | ( | ) | const [inline, inherited] |
Begins the iteration.
| database_base::const_iterator end | ( | ) | const [inline, inherited] |
Ends the iteration.
| size_t num_fields | ( | ) | const [inline, inherited] |
Returns the number of fields in the database.
| size_t num_lines | ( | ) | const [inline, inherited] |
Returns the number of lines in the database.
| size_t num_records | ( | ) | const [inline, inherited] |
Returns the number of records in the database.
| const record operator[] | ( | size_t | index | ) | const [inline, inherited] |
Returns the requested record.
| index | The index of the record to be returned. Must be less than the value returned by size() |
| database_base::const_reverse_iterator rbegin | ( | ) | const [inline, inherited] |
Begins the reverse iteration.
| database_base::const_reverse_iterator rend | ( | ) | const [inline, inherited] |
Ends the reverse iteration.
| size_t size | ( | ) | const [inline, inherited] |
|
|
| Open-RJ Library documentation © Synesis Software Pty Ltd, 2004-2005 |