Workspace 6.21.5
Public Member Functions | List of all members
SchedulerFeatures Class Referencefinal

Maintains a collection of scheduler features.

#include <Workspace/DataExecution/Execution/schedulerfeatures.h>

Public Member Functions

 SchedulerFeatures ()
 
 SchedulerFeatures (const SchedulerFeatures &)
 
 ~SchedulerFeatures ()
 
void add (const SchedulerFeature &)
 
QVector< SchedulerFeature >::const_iterator begin () const
 
void clear ()
 
bool contains (const SchedulerFeature &) const
 
bool contains (const SchedulerFeatures &) const
 
int count () const
 
bool empty () const
 
QVector< SchedulerFeature >::const_iterator end () const
 
int indexOf (const SchedulerFeature &) const
 
void inheritFeaturesFrom (const SchedulerFeatures &)
 
void insertAt (const SchedulerFeature &, int index)
 
void load (const QJsonArray &array)
 
void mergeFeaturesByCount (const SchedulerFeatures &)
 
SchedulerFeaturesoperator= (const SchedulerFeatures &)
 
SchedulerFeatureoperator[] (int index)
 
const SchedulerFeatureoperator[] (int index) const
 
void remove (int index)
 
void save (QJsonArray &array) const
 
QString toString () const
 

Constructor & Destructor Documentation

◆ SchedulerFeatures() [1/2]

SchedulerFeatures ( )
default

constructs the features collection

◆ SchedulerFeatures() [2/2]

◆ ~SchedulerFeatures()

~SchedulerFeatures ( )
default

Member Function Documentation

◆ add()

void add ( const SchedulerFeature newFeature)
Parameters
newFeaturethe feature to add

Adds a feature to the collection, if the name of the feature is not already in the collection

◆ begin()

QVector< SchedulerFeature >::const_iterator begin ( ) const
inline

◆ clear()

void clear ( )

clears the features in the collection

◆ contains() [1/2]

bool contains ( const SchedulerFeature feature) const

◆ contains() [2/2]

bool contains ( const SchedulerFeatures features) const

◆ count()

int count ( ) const
Returns
returns a count of the features in the collection

◆ empty()

bool empty ( ) const
Returns
true if no SchedulerFeatures are held in this container. Returns true if there are no contained SchedulerFeatures.

◆ end()

QVector< SchedulerFeature >::const_iterator end ( ) const
inline

◆ indexOf()

int indexOf ( const SchedulerFeature feature) const
Returns
returns the index of the provided feature

◆ inheritFeaturesFrom()

void inheritFeaturesFrom ( const SchedulerFeatures systemScopeFeatures)
Parameters
systemScopeFeatureslist of features inherited from, usually from system scope.

Inherit system scope features into the features list and adding up the count.

◆ insertAt()

void insertAt ( const SchedulerFeature feature,
int  index 
)

inserts a feature into a location in the collection

◆ load()

void load ( const QJsonArray &  array)

◆ mergeFeaturesByCount()

void mergeFeaturesByCount ( const SchedulerFeatures newFeatures)
Parameters
newFeatureslist of features to be added.

Merge new features into the features list by adding up the count.

◆ operator=()

SchedulerFeatures & operator= ( const SchedulerFeatures rhs)

◆ operator[]() [1/2]

SchedulerFeature & operator[] ( int  index)
Parameters
indexthe index of the element to return
Returns
returns the feature at index Array access operator

◆ operator[]() [2/2]

const SchedulerFeature & operator[] ( int  index) const
Parameters
indexthe index of the element to return
Returns
returns the feature at index array access operator

◆ remove()

void remove ( int  index)
Parameters
indexthe index of the feature to remove

Removes a feature from the collection

◆ save()

void save ( QJsonArray &  array) const

◆ toString()

QString toString ( ) const