Camel.NamedFlags¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Camel.NamedFlags¶
New in version 3.24.
- classmethod new()¶
- Returns:
A newly allocated
Camel.NamedFlags
. Free it withCamel.NamedFlags.free
() when done with it.- Return type:
Creates a new
Camel.NamedFlags
.New in version 3.24.
- classmethod new_sized(reserve_size)¶
- Parameters:
reserve_size (
int
) – an array size to reserve- Returns:
A newly allocated
Camel.NameValueArray
. Free it withCamel.NamedFlags.free
() when done with it.- Return type:
Created a new
Camel.NamedFlags
, which has reserved reserve_size elements. This value doesn’t influence theCamel.NamedFlags.get_length
(), which returns zero on the array returned from this function.New in version 3.24.
- clear()¶
Removes all the elements of the array.
New in version 3.24.
- contains(name)¶
- Parameters:
name (
str
) – name of the flag- Returns:
Whether the self contains a flag named name, comparing case sensitively.
- Return type:
New in version 3.24.
- copy()¶
- Returns:
A newly allocated
Camel.NamedFlags
. Free it withCamel.NamedFlags.free
() when done with it.- Return type:
Creates a copy of the self and returns it.
New in version 3.24.
- equal(named_flags_b)¶
- Parameters:
named_flags_b (
Camel.NamedFlags
orNone
) – the secondCamel.NamedFlags
- Returns:
Whether the two
Camel.NamedFlags
have the same content.- Return type:
Compares content of the two
Camel.NamedFlags
and returns whether they equal. Note this is an expensive operation for large sets.New in version 3.24.
- get(index)¶
- Parameters:
index (
int
) – an index of an element- Returns:
Name of the flag in at the given index, or
None
on error.- Return type:
New in version 3.24.
- get_length()¶
- Returns:
Length of the array, aka how many named flags are stored there.
- Return type:
New in version 3.24.