|
|
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::unordered_map< std::string, value_type > | container_type |
| | local definition of the container type
|
| |
|
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 TypeAccessMapObserver< DDL_TYPE_TO_ACCESS > | parent_type |
| | local definition of the parent type to register observe
|
| |
|
typedef TypeAccessMapSubject< 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 TypeAccessMapEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessMapEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessMapEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
typedef TypeAccessMapEventCode | event_code_type |
| | local definition of the event code type
|
| |
|
typedef T | subject_type |
| | local definition of the subject code type
|
| |
|
|
| TypeAccessMap ()=delete |
| | no default CTOR!
|
| |
| | TypeAccessMap (TYPE_VALIDATOR_CLASS *validator, const std::string &validation_info) |
| | CTOR.
|
| |
|
| TypeAccessMap (TypeAccessMap &&other) |
| | move CTOR
|
| |
| | TypeAccessMap (const TypeAccessMap &other) |
| | copies (deepcopy!) CTOR
|
| |
|
virtual | ~TypeAccessMap () |
| | DTOR.
|
| |
| TypeAccessMap & | operator= (TypeAccessMap &&other) |
| | move assignment operator
|
| |
| TypeAccessMap & | operator= (const TypeAccessMap &other) |
| | copies (deepcopy!) and overwrite the current content.
|
| |
| std::shared_ptr< const DDL_TYPE_TO_ACCESS > | get (const std::string &type_name) const |
| | get the item with the given name type_name
|
| |
| bool | contains (const std::string &type_name) const |
| | determines is the type name exists in this map
|
| |
| bool | contains (const DDL_TYPE_TO_ACCESS &type_to_find) const |
| | determines if the item is in this map.
|
| |
| bool | contains (const TypeAccessMap &other) const |
| | determines if the other is a subset of this map
|
| |
| 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) |
| | creates the given item in place
|
| |
| void | add (const DDL_TYPE_TO_ACCESS &type_to_add) |
| | adds the given item
|
| |
| void | emplace (DDL_TYPE_TO_ACCESS &&type_to_add) |
| | emplaces 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 TypeAccessMap &other) const |
| | equality operator.
|
| |
| bool | operator!= (const TypeAccessMap &other) const |
| | non equality operator.
|
| |
|
void | clear () |
| | clears the list and remove this as observer
|
| |
| 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::TypeAccessMap< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >
Utility class for observable named items where the order is NOT important.
- Template Parameters
-
| DDL_TYPE_TO_ACCESS | the value type |
| TYPE_VALIDATOR_CLASS | the validator class to inform on changes |