digiKam
Digikam::DatabaseFields::Hash< T > Class Template Reference
+ Inheritance diagram for Digikam::DatabaseFields::Hash< T >:

Public Member Functions

 DATABASEFIELDS_HASH_DECLARE_METHODS (CustomEnum, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (ImageHistoryInfo, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (ImageMetadata, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (Images, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (ItemComments, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (ItemInformation, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (ItemPositions, uniqueKey)
 
 DATABASEFIELDS_HASH_DECLARE_METHODS (VideoMetadata, uniqueKey)
 

Static Public Member Functions

static unsigned int uniqueKey (CustomEnum f)
 
static unsigned int uniqueKey (ImageHistoryInfo f)
 
static unsigned int uniqueKey (ImageMetadata f)
 
static unsigned int uniqueKey (Images f)
 
static unsigned int uniqueKey (ItemComments f)
 
static unsigned int uniqueKey (ItemInformation f)
 
static unsigned int uniqueKey (ItemPositions f)
 
static unsigned int uniqueKey (VideoMetadata f)
 

Detailed Description

template<class T>
class Digikam::DatabaseFields::Hash< T >

This class provides a hash on all DatabaseFields enums, allowing to use the enum values as independent keys. You can use the class like a normal QHash with the value type defined by you, and as keys the members of the DatabaseFields enums. You can only use single enum members as keys, not or'ed numbers. You can use one custom enum, cast to DatabaseFields::CustomEnum, which can have at most 26 flag values (1 << 0 to 1 << 26). Pass this as the optional second template parameter.

Member Function Documentation

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [1/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( CustomEnum  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [2/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( ImageHistoryInfo  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [3/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( ImageMetadata  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [4/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( Images  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [5/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( ItemComments  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [6/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( ItemInformation  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [7/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( ItemPositions  ,
uniqueKey   
)

◆ DATABASEFIELDS_HASH_DECLARE_METHODS() [8/8]

template<class T >
Digikam::DatabaseFields::Hash< T >::DATABASEFIELDS_HASH_DECLARE_METHODS ( VideoMetadata  ,
uniqueKey   
)

◆ uniqueKey() [1/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( CustomEnum  f)
inlinestatic

◆ uniqueKey() [2/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( ImageHistoryInfo  f)
inlinestatic

◆ uniqueKey() [3/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( ImageMetadata  f)
inlinestatic

◆ uniqueKey() [4/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( Images  f)
inlinestatic

◆ uniqueKey() [5/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( ItemComments  f)
inlinestatic

◆ uniqueKey() [6/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( ItemInformation  f)
inlinestatic

◆ uniqueKey() [7/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( ItemPositions  f)
inlinestatic

◆ uniqueKey() [8/8]

template<class T >
static unsigned int Digikam::DatabaseFields::Hash< T >::uniqueKey ( VideoMetadata  f)
inlinestatic

The documentation for this class was generated from the following file: