swift
Loading...
Searching...
No Matches
sequence.h File Reference

Go to the source code of this file.

Classes

class  swift::misc::CSequence< T >
 Generic sequential container with value semantics. More...

Namespaces

namespace  swift::misc
 Free functions in swift::misc.

Macros

#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
 Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the header that defines the class.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
 Explicit template definition of mixins for a CSequence subclass.

Functions

QVector< int > swift::misc::private_ns::findIndices (int size, const std::function< bool(int)> &predicate)
 Decouple finding from value type.
QVector< int > swift::misc::private_ns::sortIndices (int size, const std::function< bool(int, int)> &cmp)
 Decouple sorting from value type.

Macro Definition Documentation

◆ SWIFT_DECLARE_SEQUENCE_MIXINS

#define SWIFT_DECLARE_SEQUENCE_MIXINS ( Namespace,
T,
List )
Value:
SWIFT_TEMPLATE_SEQUENCE_MIXINS(Namespace, T, List, extern)

Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the header that defines the class.

Definition at line 62 of file sequence.h.

◆ SWIFT_DEFINE_SEQUENCE_MIXINS

#define SWIFT_DEFINE_SEQUENCE_MIXINS ( Namespace,
T,
List )
Value:
SWIFT_TEMPLATE_SEQUENCE_MIXINS(Namespace, T, List, )

Explicit template definition of mixins for a CSequence subclass.

Definition at line 63 of file sequence.h.

Function Documentation

◆ findIndices()

SWIFT_MISC_EXPORT SWIFT_NO_INLINE QVector< int > swift::misc::private_ns::findIndices ( int size,
const std::function< bool(int)> & predicate )

Decouple finding from value type.

Definition at line 12 of file sequence.cpp.

◆ sortIndices()

SWIFT_MISC_EXPORT SWIFT_NO_INLINE QVector< int > swift::misc::private_ns::sortIndices ( int size,
const std::function< bool(int, int)> & cmp )

Decouple sorting from value type.

Definition at line 20 of file sequence.cpp.