#include <collection.h>
|
| | Collection ()=default |
| |
| | ~Collection () |
| |
| void | clear_removed_items () |
| | Remove elements from m_removed_items. More...
|
| |
| | Collection (const Collection &)=delete |
| |
| void | operator= (Collection &)=delete |
| |
| void | push_back (impl_type *item) |
| |
| void | push_front (impl_type *item) |
| |
| void | insert (iterator it, impl_type *item) |
| |
| void | remove (impl_type *item) |
| |
| void | remove_all () |
| | Remove all items and move it to m_removed_items items. More...
|
| |
| iterator | find (const impl_type *item) |
| | Find item and return the position. More...
|
| |
| iterator | begin () |
| |
| const_iterator | begin () const |
| |
| iterator | end () |
| |
| const_iterator | end () const |
| |
| const_iterator | cbegin () const |
| |
| const_iterator | cend () const |
| |
| bool | empty () const |
| |
| bool | has_removed_items () const |
| | Check if some of collection elements are removed. More...
|
| |
| size_t | size () const |
| |
| const abstract_type * | at (size_t n) const |
| |
| T | at (size_t n) |
| |
| const abstract_type * | front () const |
| |
| T | front () |
| |
| const abstract_type * | back () const |
| |
| T | back () |
| |
| const abstract_type * | operator[] (size_t n) const |
| |
| T | operator[] (size_t n) |
| |
| template<typename Parent_item > |
| bool | restore_items (Parent_item *parent, Open_dictionary_tables_ctx *otx, Raw_table *table, Object_key *key) |
| | Populate collection with items read from DD table. More...
|
| |
| template<typename Parent_item , typename Compare > |
| bool | restore_items (Parent_item *parent, Open_dictionary_tables_ctx *otx, Raw_table *table, Object_key *key, Compare comp) |
| | Populate collection with items read from DD table. More...
|
| |
| bool | store_items (Open_dictionary_tables_ctx *otx) |
| | store items in collection on to DD table. More...
|
| |
| bool | drop_items (Open_dictionary_tables_ctx *otx, Raw_table *table, Object_key *key) const |
| | Remove all items details from DD table. More...
|
| |
| template<typename Parent_item > |
| void | deep_copy (const Collection< T > &src, Parent_item *parent) |
| | Do a deep copy of a given collection. More...
|
| |
◆ abstract_type
◆ Array
◆ const_iterator
◆ impl_type
◆ iterator
◆ value_type
◆ Collection() [1/2]
◆ ~Collection()
◆ Collection() [2/2]
◆ at() [1/2]
◆ at() [2/2]
◆ back() [1/2]
◆ back() [2/2]
◆ begin() [1/2]
◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ clear_all_items()
◆ clear_removed_items()
Remove elements from m_removed_items.
This is used only in case of dropping triggers for now. See comments in Table_impl::store_children() for more details.
◆ deep_copy()
template<typename T >
template<typename Parent_item >
Do a deep copy of a given collection.
Calls clone() on the items in the given collection and stores the result in this collection.
- Parameters
-
| src | - Collection to do a deep copy of. |
| parent | - Object "owning" the items in the collection. E.g. Columns are owned by Table. |
◆ drop_items()
Remove all items details from DD table.
Iterate through the collection and remove respective rows from DD tables.
- Parameters
-
| otx | - Context with information about open tables. |
| table | - The DD table from which rows are removed. |
| key | - The search key to use to find rows. |
- Returns
- true - on failure and error is reported.
-
false - on success.
◆ empty()
◆ end() [1/2]
◆ end() [2/2]
◆ find()
Find item and return the position.
- Returns
- iterator pointing to found element.
◆ front() [1/2]
◆ front() [2/2]
◆ has_removed_items()
Check if some of collection elements are removed.
- Returns
- void.
◆ insert()
◆ operator=()
◆ operator[]() [1/2]
◆ operator[]() [2/2]
◆ push_back()
◆ push_front()
◆ remove()
◆ remove_all()
Remove all items and move it to m_removed_items items.
◆ renumerate_items()
◆ restore_items() [1/2]
template<typename T >
template<typename Parent_item >
Populate collection with items read from DD table.
Iterate through DD tables to find rows that match the 'Object_key' supplied. Create collection item for each row we find and populate the item with data read from DD. Sort items in collection by their ordinal position property.
- Parameters
-
| parent | - Object owning the restored object. |
| otx | - Context with information about open tables. |
| table | - The DD table from which read rows for items. |
| key | - The search key to be used to find rows. |
- Returns
- true - on failure and error is reported.
-
false - on success.
◆ restore_items() [2/2]
template<typename T >
template<typename Parent_item , typename Compare >
Populate collection with items read from DD table.
Iterate through DD tables to find rows that match the 'Object_key' supplied. Create collection item for each row we find and populate the item with data read from DD. Sort items in collection using comparator provided.
- Parameters
-
| parent | Object owning the restored object. |
| otx | Context with information about open tables. |
| table | The DD table from which read rows for items. |
| key | The search key to be used to find rows. |
| comp | Comparator to be used for sorting items. |
- Return values
-
| True | on failure and error is reported. |
| False | on success. |
◆ size()
◆ store_items()
store items in collection on to DD table.
Iterate through collection and stores them in DD tables.
- Parameters
-
| otx | - Context with information about open tables. |
- Returns
- true - on failure and error is reported.
-
false - on success.
◆ m_items
◆ m_removed_items
The documentation for this class was generated from the following files: