30 if (!contained) { il.
push_back(identifier); }
38 if (sort) { codes.sort(); }
39 if (unique) { codes.removeDuplicates(); }
45 if (this->
size() < 2) {
return 0; }
49 if (il.
contains(identifier))
continue;
52 const int delta = this->
size() - il.
size();
53 if (delta == 0) {
return 0; }
Value object encapsulating information identifying a component of a modular distributed swift process...
const QString & getMachineName() const
Machine name.
bool hasSameMachineName(const CIdentifier &other) const
Check if the other identifier has the same machine name.
Value object encapsulating a list of object identifiers.
CIdentifierList()
Default constructor.
QStringList getMachineNames(bool unique=true, bool sort=true) const
Get machine names.
int removeDuplicates()
Remove duplicates.
CIdentifierList getMachinesUnique() const
Get a list of identifiers reduced to maximum one per machine. If there is more than one per machine,...
bool containsAnyNotIn(const CIdentifierList &other) const
This list contains an identifier which is not contained in other.
bool containsBy(Predicate p) const
Return true if there is an element for which a given predicate returns true.
bool contains(const T &object) const
Return true if there is an element equal to given object. Uses the most efficient implementation avai...
auto transform(F function) const
Return a new container generated by applying some transformation function to all elements of this one...
size_type size() const
Returns number of elements in the sequence.
void push_back(const T &value)
Appends an element at the end of the sequence.
auto MemberTransform(T memberFunc)
Returns a function object that returns the value returned by one of it's argument member functions.
Free functions in swift::misc.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.