|
libqi-api
release-2.5.3-2016-11-18
|
#include <maptypeinterface.hxx>
Public Types | |
| using | MethodsImpl = DefaultTypeImplMethods< M, TypeByPointerPOD< M >> |
Public Member Functions | |
| MapTypeInterfaceImpl () | |
| TypeInterface * | elementType () override |
| Get the types of the values of the map. More... | |
| TypeInterface * | keyType () override |
| Get the types of the keys of the map. More... | |
| size_t | size (void *storage) override |
| Return the number of elements in the map. More... | |
| AnyIterator | begin (void *storage) override |
| Return an iterator pointing to the first key-value pair of the map. More... | |
| AnyIterator | end (void *storage) override |
| void | insert (void **storage, void *keyStorage, void *valueStorage) override |
| Set a key to a value and creates it if it does not exist. More... | |
| AnyReference | element (void **storage, void *keyStorage, bool autoInsert) override |
| _QI_BOUNCE_TYPE_METHODS (MethodsImpl) | |
Public Member Functions inherited from qi::MapTypeInterface | |
| TypeKind | kind () override |
Public Member Functions inherited from qi::TypeInterface | |
| virtual const TypeInfo & | info ()=0 |
| Get the TypeInfo corresponding to this type. More... | |
| virtual void * | initializeStorage (void *ptr=0)=0 |
| virtual void * | ptrFromStorage (void **)=0 |
| virtual void * | clone (void *)=0 |
| Allocate a storage and copy the value given as an argument. More... | |
| virtual void | destroy (void *)=0 |
| Free all resources of a storage. More... | |
| virtual bool | less (void *a, void *b)=0 |
| const char * | infoString () |
| qi::Signature | signature (void *storage=0, bool resolveDynamic=false) |
Public Attributes | |
| TypeInterface * | _keyType |
| TypeInterface * | _elementType |
Additional Inherited Members | |
Static Public Member Functions inherited from qi::TypeInterface | |
| static TypeInterface * | fromSignature (const qi::Signature &sig) |
Definition at line 13 of file maptypeinterface.hxx.
| using qi::MapTypeInterfaceImpl< M >::MethodsImpl = DefaultTypeImplMethods<M, TypeByPointerPOD<M>> |
Definition at line 17 of file maptypeinterface.hxx.
| qi::MapTypeInterfaceImpl< M >::MapTypeInterfaceImpl | ( | ) |
Definition at line 35 of file maptypeinterface.hxx.
| qi::MapTypeInterfaceImpl< M >::_QI_BOUNCE_TYPE_METHODS | ( | MethodsImpl | ) |
|
overridevirtual |
Return an iterator pointing to the first key-value pair of the map.
Implements qi::MapTypeInterface.
Definition at line 63 of file maptypeinterface.hxx.
|
overridevirtual |
Get the value corresponding to the requested key
If the key does not exist and autoInsert is true, it is created, otherwise an invalid reference is returned.
Implements qi::MapTypeInterface.
Definition at line 90 of file maptypeinterface.hxx.
|
overridevirtual |
Get the types of the values of the map.
Implements qi::MapTypeInterface.
Definition at line 43 of file maptypeinterface.hxx.
|
overridevirtual |
Return an iterator pointing to one past the last key-value pair of the list (do not dereference this iterator!)
Implements qi::MapTypeInterface.
Definition at line 70 of file maptypeinterface.hxx.
|
overridevirtual |
Set a key to a value and creates it if it does not exist.
Implements qi::MapTypeInterface.
Definition at line 77 of file maptypeinterface.hxx.
|
overridevirtual |
Get the types of the keys of the map.
Implements qi::MapTypeInterface.
Definition at line 49 of file maptypeinterface.hxx.
|
overridevirtual |
Return the number of elements in the map.
Implements qi::MapTypeInterface.
Definition at line 55 of file maptypeinterface.hxx.
| TypeInterface* qi::MapTypeInterfaceImpl< M >::_elementType |
Definition at line 28 of file maptypeinterface.hxx.
| TypeInterface* qi::MapTypeInterfaceImpl< M >::_keyType |
Definition at line 27 of file maptypeinterface.hxx.