PyANGKernel.GKContents¶
- class GKContents¶
A set of
GKContents.Details
Implemented as a map so that retrieve a
GKContentby GKContent::Type is easy ; some convenient features from QSet are implemented.Synopsis¶
Methods¶
def
__init__()def
__getitem__()def
__len__()def
__setitem__()def
bucket_count()def
capacity()def
clear()def
contains()def
count()def
description()def
empty()def
insert()def
intersect()def
isEmpty()def
isSharedWith()def
key()def
keys()def
load_factor()def
__add__()def
__lshift__()def
operator[]()def
remove()def
reserve()def
size()def
squeeze()def
subtract()def
swap()def
take()def
toString()def
trimmed()def
unite()def
value()def
values()
Static functions¶
def
fromString()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
Builds empty
GKContents.- __init__(content)
- Parameters:
content –
GKContent
Builds a
GKContentscontaining the specified content.- __getitem__()¶
- __len__()¶
- __setitem__()¶
- clear()¶
- contains(other)
- Parameters:
other –
GKContents- Return type:
- contains(key)
- Parameters:
key – str
- Return type:
- count(key)
- Parameters:
key – str
- Return type:
- description([ignoredTypes=QSet<GKContent.Type>()[, separator=" - "]])¶
- Parameters:
ignoredTypes – .QSetQString
separator – str
- Return type:
Gives a UI description of the
GKContents. * UnknownCommand ignoredTypes contains a set of GKContent::Type that won’t be included in the description * (for example, if you don’t want the originator to appear). * UnknownCommand separator Separator between types.- static fromString(str)¶
- Parameters:
str – str
- Return type:
Builds a
GKContentsfrom an identifying QString of the same format as used intoString.- insert(hash)¶
- Parameters:
hash – Dictionary with keys of type .QString and values of type GKContent.
- intersect(other)¶
- Parameters:
other –
GKContents- Return type:
Removes any
GKContentthat is not also contained in ‘other’, and returns a reference to ‘this’.- Parameters:
other – Dictionary with keys of type .QString and values of type GKContent.
- Return type:
- keys()¶
- Return type:
.list of QString
- keys(value)
- Parameters:
value –
GKContent- Return type:
.list of QString
Returns the union with the other
GKContent. If there are twoGKContentof same type, the one from ‘other’ is used.- __add__(other)
- Parameters:
other –
GKContents- Return type:
Returns the union with the other
GKContents. If there are twoGKContentof same type, the one from ‘other’ is used.Adds the specified
GKContent. If aGKContentof same type already exists, replaces it.- __lshift__(other)
- Parameters:
other –
GKContents- Return type:
Adds the specified
GKContents. If aGKContentof same type already exists, replaces it.- reserve(size)¶
- Parameters:
size – int
- squeeze()¶
- subtract(other)¶
- Parameters:
other –
GKContents- Return type:
Removes any
GKContentthat is also contained in ‘other’, and returns a reference to ‘this’.- swap(other)¶
- Parameters:
other – Dictionary with keys of type .QString and values of type GKContent.
Builds a unique identifying QString.
- trimmed()¶
- Return type:
Returns a copy of the
GKContentswithout any emptyGKContent.- unite(other)¶
- Parameters:
other –
GKContents