|
| using | base_type |
| | base type definition
|
| |
|
typedef DDL_TYPE_TO_ACCESS | access_type |
| | local definition of the access type
|
| |
|
typedef std::shared_ptr< DDL_TYPE_TO_ACCESS > | value_type |
| | local definition of the value type
|
| |
|
typedef std::vector< value_type > | container_type |
| | local definition of the container type
|
| |
|
typedef std::unordered_map< std::string_view, value_type > | container_named_type |
| | Local definition of the container type of the name index, mapping names to the items.
|
| |
|
typedef container_type::iterator | iterator |
| | local definition of the container iterator
|
| |
|
typedef container_type::const_iterator | const_iterator |
| | local definition of the container const_iterator
|
| |
|
typedef TypeAccessListObserver< DDL_TYPE_TO_ACCESS > | parent_type |
| | local definition of the parent type to register observer
|
| |
|
typedef TypeAccessListSubject< DDL_TYPE_TO_ACCESS > | map_subject_type |
| | local definition of the internal subject type
|
| |
|
typedef map_subject_type::observer_type | observer_type |
| | local definition of the observer type
|
| |
|
typedef parent_type::event_code_type | event_code_type |
| | local definition of the eventcode type
|
| |
|
typedef parent_type::subject_type | subject_type |
| | local definition of the subject type
|
| |
|
typedef TypeAccessListEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessListEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessListEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessListEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
|
| TypeAccessList ()=delete |
| | no default CTOR!
|
| |
| | TypeAccessList (TYPE_VALIDATOR_CLASS *validator, std::string validation_info) noexcept |
| | CTOR.
|
| |
| virtual | ~TypeAccessList () |
| | DTOR.
|
| |
| | TypeAccessList (TypeAccessList &&other)=default |
| | move CTOR
|
| |
| TypeAccessList & | operator= (TypeAccessList &&other)=default |
| | move assignment operator
|
| |
| | TypeAccessList (const TypeAccessList &other) |
| | copies (deepcopy!) CTOR
|
| |
| TypeAccessList & | operator= (const TypeAccessList &other) |
| | copies (deepcopy!) and overwrite the current content.
|
| |
|
| TypeAccessList ()=delete |
| | no default CTOR!
|
| |
| | TypeAccessList (TYPE_VALIDATOR_CLASS *validator, std::string validation_info) noexcept |
| | CTOR.
|
| |
|
| TypeAccessList (TypeAccessList &&other) noexcept |
| | move CTOR
|
| |
| TypeAccessList & | operator= (TypeAccessList &&other) noexcept |
| | move assignment operator
|
| |
| | TypeAccessList (const TypeAccessList &other) |
| | copies (deepcopy!) CTOR
|
| |
| TypeAccessList & | operator= (const TypeAccessList &other) |
| | copies (deepcopy!) and overwrite the current content.
|
| |
| std::shared_ptr< const DDL_TYPE_TO_ACCESS > | get (std::string_view type_name) const noexcept |
| | get the item with the given name type_name
|
| |
| Optional< size_t > | getPosOf (const std::string &type_name) const |
| | Get the Pos Of the item with the name type_name.
|
| |
| bool | contains (const std::string &type_name) const noexcept |
| | determines is the type name exists in this list
|
| |
| bool | contains (const DDL_TYPE_TO_ACCESS &type_to_find) const |
| | determines if the item is in this list.
|
| |
| bool | contains (const TypeAccessList &other) const |
| | determines if the other is a subset of this list
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (const DDL_TYPE_TO_ACCESS &type_to_add) |
| | creates the given item by copy
|
| |
| void | add (const DDL_TYPE_TO_ACCESS &type_to_add) |
| | creates the given item by copy
|
| |
| void | insert (const size_t pos_idx, const DDL_TYPE_TO_ACCESS &type_to_add) |
| | inserts the given item at the given pos
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (DDL_TYPE_TO_ACCESS &&type_to_add) |
| | create the given item by emplace
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (std::shared_ptr< DDL_TYPE_TO_ACCESS > type_to_add) |
| | Creates the item from an already allocated instance, which avoids copying or moving it into the list.
|
| |
| void | emplace (DDL_TYPE_TO_ACCESS &&type_to_add) |
| | emplace the given item
|
| |
| void | remove (const std::string &type_name) |
| | item to remove
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | access (const std::string &type_name) noexcept |
| | change access to an item
|
| |
| size_t | getSize () const |
| | Get the Size.
|
| |
| void | reserve (size_t count) noexcept |
| | Reserve storage for at least count items, e.g. before adding a known number of items one by one.
|
| |
| iterator | begin () |
| | the range based begin iterator
|
| |
| iterator | end () |
| | the range based end iterator
|
| |
| const_iterator | cbegin () const |
| | const begin iterator access
|
| |
| const_iterator | cend () const |
| | const end iterator access
|
| |
| const_iterator | begin () const |
| | range based begin operator for const access
|
| |
| const_iterator | end () const |
| | range based end operator for const access
|
| |
| bool | operator== (const TypeAccessList &other) const |
| | equality operator.
|
| |
| bool | operator!= (const TypeAccessList &other) const |
| | non equality operator.
|
| |
|
void | clear () noexcept |
| | clears the list and remove this as observer
|
| |
| void | popBack () |
| | removes the last element if exists.
|
| |
| void | modelChanged (event_code_type event_code, subject_type &subject_changed, const std::string &additional_info) |
| | overrides the observers utility function.
|
| |
|
| TypeAccessList ()=delete |
| | no default CTOR!
|
| |
| | TypeAccessList (TYPE_VALIDATOR_CLASS *validator, std::string validation_info) noexcept |
| | CTOR.
|
| |
|
| TypeAccessList (TypeAccessList &&other) noexcept |
| | move CTOR
|
| |
| | TypeAccessList (const TypeAccessList &other) |
| | copies (deepcopy!) CTOR
|
| |
| TypeAccessList & | operator= (TypeAccessList &&other) noexcept |
| | move assignment operator
|
| |
| TypeAccessList & | operator= (const TypeAccessList &other) |
| | copies (deepcopy!) and overwrite the current content.
|
| |
| std::shared_ptr< const DDL_TYPE_TO_ACCESS > | get (std::string_view type_name) const noexcept |
| | get the item with the given name type_name
|
| |
| Optional< size_t > | getPosOf (const std::string &type_name) const |
| | Get the Pos Of the item with the name type_name.
|
| |
| bool | contains (const std::string &type_name) const noexcept |
| | determines is the type name exists in this list
|
| |
| bool | contains (const DDL_TYPE_TO_ACCESS &type_to_find) const |
| | determines if the item is in this list.
|
| |
| bool | contains (const TypeAccessList &other) const |
| | determines if the other is a subset of this list
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (const DDL_TYPE_TO_ACCESS &type_to_add) |
| | creates the given item by copy
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (DDL_TYPE_TO_ACCESS &&type_to_add) |
| | create the given item by emplace
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | create (std::shared_ptr< DDL_TYPE_TO_ACCESS > type_to_add) |
| | Creates the item from an already allocated instance, which avoids copying or moving it into the list.
|
| |
| void | add (const DDL_TYPE_TO_ACCESS &type_to_add) |
| | creates the given item by copy
|
| |
| void | insert (const size_t pos_idx, const DDL_TYPE_TO_ACCESS &type_to_add) |
| | inserts the given item at the given pos
|
| |
| void | emplace (DDL_TYPE_TO_ACCESS &&type_to_add) |
| | emplace the given item
|
| |
| void | remove (const std::string &type_name) |
| | item to remove
|
| |
| std::shared_ptr< DDL_TYPE_TO_ACCESS > | access (const std::string &type_name) noexcept |
| | change access to an item
|
| |
| size_t | getSize () const |
| | Get the Size.
|
| |
| void | reserve (size_t count) noexcept |
| | Reserve storage for at least count items, e.g. before adding a known number of items one by one.
|
| |
| iterator | begin () |
| | the range based begin iterator
|
| |
| const_iterator | begin () const |
| | range based begin operator for const access
|
| |
| iterator | end () |
| | the range based end iterator
|
| |
| const_iterator | end () const |
| | range based end operator for const access
|
| |
| const_iterator | cbegin () const |
| | const begin iterator access
|
| |
| const_iterator | cend () const |
| | const end iterator access
|
| |
| bool | operator== (const TypeAccessList &other) const |
| | equality operator.
|
| |
| bool | operator!= (const TypeAccessList &other) const |
| | non equality operator.
|
| |
|
void | clear () noexcept |
| | clears the list and remove this as observer
|
| |
| void | popBack () |
| | removes the last element if exists.
|
| |
| void | modelChanged (event_code_type event_code, subject_type &subject_changed, const std::string &additional_info) |
| | overrides the observers utility function.
|
| |
template<typename DDL_TYPE_TO_ACCESS, typename
TYPE_VALIDATOR_CLASS>
class ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >
ddl::dd::utility::TypeAccessList that forwards the validation to a validator of type TYPE_VALIDATOR_CLASS, if one is set.
- Template Parameters
-
| DDL_TYPE_TO_ACCESS | the value type |
| TYPE_VALIDATOR_CLASS | the validator class to inform on changes |