A helper class to store interface references of different types.
More...
#include <interfacecontainer.h>
template<class key, class hashImpl = void, class equalImpl = std::equal_to<key>>
class cppu::OMultiTypeInterfaceContainerHelperVar< key, hashImpl, equalImpl >
A helper class to store interface references of different types.
- See also
- OInterfaceIteratorHelper
-
OInterfaceContainerHelper
Definition at line 315 of file interfacecontainer.h.
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl , class equalImpl >
template<class key , class hashImpl , class equalImpl >
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl , class equalImpl >
Inserts an element into the container with the specified key.
The position is not specified, thus it is not specified in which order events are fired.
- Attention:
If you add the same interface more than once, then it will be added to the elements list more than once and thus if you want to remove that interface from the list, you have to call removeInterface() the same number of times. In the latter case, you will also get events fired more than once (if the interface is a listener interface).
- Parameters
-
rKey | the id of the container |
r | interface to be added; it is allowed, to insert null or the same interface more than once |
- Returns
- the new count of elements in the container
Definition at line 106 of file interfacecontainer.hxx.
References cppu::OInterfaceContainerHelper::addInterface(), and find().
template<class key , class hashImpl , class equalImpl >
Remove all elements of all containers.
Does not delete the container.
Definition at line 179 of file interfacecontainer.hxx.
References end.
template<class key , class hashImpl , class equalImpl >
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl , class equalImpl >
template<class key , class hashImpl , class equalImpl >
Return the container created under this key.
The InterfaceContainerHelper exists until the whole MultiTypeContainer is destroyed.
- Returns
- the container created under this key. If the container was not created, null was returned.
Definition at line 93 of file interfacecontainer.hxx.
References find(), and NULL.
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl , class equalImpl >
Removes an element from the container with the specified key.
It uses interface equality to remove the interface.
- Parameters
-
rKey | the id of the container |
rxIFace | interface to be removed |
- Returns
- the new count of elements in the container
Definition at line 124 of file interfacecontainer.hxx.
References find().
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
template<class key , class hashImpl = void, class equalImpl = std::equal_to<key>>
The documentation for this class was generated from the following files: