|
Dev Essential
|
Bug fix class for ddl::dd::utility::TypeAccessList to get rid of providing getNamedItemList in validator.
More...
#include <access_list.h>
Public Types | |
| using | base_type |
| base type definition | |
Public Types inherited from ddl::dd::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, ::ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS > > | |
| 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 for getNamedItemViewList | |
| 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 | |
Public Types inherited from ddl::dd::utility::ModelObserverUtility< T, TypeAccessListEventCode > | |
| 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 | |
Public Member Functions | |
| TypeAccessList ()=delete | |
| no default CTOR! | |
| TypeAccessList (TYPE_VALIDATOR_CLASS *validator, const std::string &validation_info) | |
| 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. | |
Public Member Functions inherited from ddl::dd::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, ::ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS > > | |
| TypeAccessList ()=delete | |
| no default CTOR! | |
| TypeAccessList (TYPE_VALIDATOR_CLASS *validator, const std::string &validation_info) | |
| CTOR. | |
| TypeAccessList (TypeAccessList &&other) | |
| move CTOR | |
| TypeAccessList & | operator= (TypeAccessList &&other) |
| 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 |
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 |
| 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 | |
| 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) |
| change access to an item | |
| size_t | getSize () const |
| Get the Size. | |
| 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 () |
| 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, const std::string &validation_info) | |
| CTOR. | |
| TypeAccessList (TypeAccessList &&other) | |
| move CTOR | |
| TypeAccessList (const TypeAccessList &other) | |
| copies (deepcopy!) CTOR | |
| TypeAccessList & | operator= (TypeAccessList &&other) |
| 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 |
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 |
| 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 | |
| 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) |
| change access to an item | |
| size_t | getSize () const |
| Get the Size. | |
| 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 () |
| 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. | |
Additional Inherited Members | |
Public Attributes inherited from ddl::dd::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, ::ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS > > | |
| friend | TYPE_VALIDATOR_CLASS |
| friend validator class | |
| friend | TYPE_VALIDATOR_CLASS |
| friend validator class | |
Protected Member Functions inherited from ddl::dd::utility::ModelObserverUtility< T, TypeAccessListEventCode > | |
| virtual | ~ModelObserverUtility () |
| protected DTOR | |
| virtual | ~ModelObserverUtility () |
| protected DTOR | |
| virtual | ~ModelObserverUtility () |
| protected DTOR | |
| virtual | ~ModelObserverUtility () |
| protected DTOR | |
Bug fix class for ddl::dd::utility::TypeAccessList to get rid of providing getNamedItemList in validator.
| DDL_TYPE_TO_ACCESS | the value type |
| TYPE_VALIDATOR_CLASS | the validator class to inform on changes |
| using ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >::base_type |
base type definition
|
inline |
CTOR.
| validator | the validator for name check! |
| validation_info | info for errors |
|
inlinevirtual |
|
default |
move CTOR
| other | the object to move |
|
inline |
copies (deepcopy!) CTOR
| other | the other list |
|
inline |
copies (deepcopy!) and overwrite the current content.
| other | the other list |
|
default |