Workspace 6.21.5
Public Member Functions | List of all members
RetryRules Class Reference

#include <RemoteExecution/Schedulers/Sql/retryrules.h>

Public Member Functions

 RetryRules ()
 
 RetryRules (const RetryRules &)
 
virtual ~RetryRules ()
 
void add (const RetryRule &)
 
void clear ()
 
int count () const
 
bool empty () const
 
void load (const QJsonArray &array)
 
void load (QDataStream &stream)
 
RetryRulesoperator= (const RetryRules &)
 
RetryRuleoperator[] (int index)
 
const RetryRuleoperator[] (int index) const
 
void remove (int index)
 
void save (QDataStream &stream) const
 
void save (QJsonArray &array) const
 

Constructor & Destructor Documentation

◆ RetryRules() [1/2]

RetryRules ( )
default

constructs the RetryRules collection

◆ RetryRules() [2/2]

RetryRules ( const RetryRules rhs)

◆ ~RetryRules()

~RetryRules ( )
virtualdefault

the destructor

Member Function Documentation

◆ add()

void add ( const RetryRule rule)

adds a rule to the collection

Parameters
rulethe rule to add

◆ clear()

void clear ( )

clears the rules in the collection

◆ count()

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

◆ empty()

bool empty ( ) const

Returns true if there are no contained RetryRules.

Returns
true if no RetryRules are held in this container.

◆ load() [1/2]

void load ( const QJsonArray &  array)

◆ load() [2/2]

void load ( QDataStream &  stream)

◆ operator=()

RetryRules & operator= ( const RetryRules rhs)

◆ operator[]() [1/2]

RetryRule & operator[] ( int  index)

array access operator

Parameters
indexthe index of the element to return
Returns
returns the rule at index

◆ operator[]() [2/2]

const RetryRule & operator[] ( int  index) const

array access operator

Parameters
indexthe index of the element to return
Returns
returns the rule at index

◆ remove()

void remove ( int  index)

removes a rule from the collection

Parameters
indexthe index of the rule to remove
Exceptions
std::out_of_rangeexception

◆ save() [1/2]

void save ( QDataStream &  stream) const

◆ save() [2/2]

void save ( QJsonArray &  array) const