#include <RubricItem.h>
§ RubricItem() [1/4]
RubricItem::RubricItem |
( |
| ) |
|
|
default |
§ RubricItem() [2/4]
RubricItem::RubricItem |
( |
const std::function< bool()> & |
_callback | ) |
|
|
inline |
A constructor that sets the callback.
§ RubricItem() [3/4]
RubricItem::RubricItem |
( |
const std::string & |
_name | ) |
|
|
inline |
A constructor that sets the name.
§ RubricItem() [4/4]
RubricItem::RubricItem |
( |
const std::string & |
_name, |
|
|
const std::function< bool()> & |
_callback |
|
) |
| |
|
inline |
A constructor that sets the name and callback.
§ evaluate()
void RubricItem::evaluate |
( |
| ) |
|
Run the callback to determine if this RubricItem passed or failed.
§ evaluationTimeMs()
double RubricItem::evaluationTimeMs |
( |
| ) |
|
High precision time in milliseconds representing how long the callback itself took to run.
§ failed()
bool RubricItem::failed |
( |
| ) |
|
§ getFeedback()
shared_ptr< Feedback > RubricItem::getFeedback |
( |
| ) |
|
Only useful after the RubricItem is evaluated. Gets the corresponding Feedback to its pass/fail state.
§ passed()
bool RubricItem::passed |
( |
| ) |
|
Whether or not this RubricItem passed. Will be false until it actually runs.
§ ran()
§ setCallback()
void RubricItem::setCallback |
( |
const std::function< bool()> & |
| ) |
|
Set the work to be done when this RubricItem is evaluated. Likely a lambda function.
§ whenCorrect() [1/2]
void RubricItem::whenCorrect |
( |
const std::string & |
message | ) |
|
Set the message to give to students if this RubricItem passes. Optional.
§ whenCorrect() [2/2]
void RubricItem::whenCorrect |
( |
const std::string & |
message, |
|
|
const std::string & |
tag |
|
) |
| |
Set the message and tag to give to students if this RubricItem passes. Optional.
§ whenIncorrect() [1/2]
void RubricItem::whenIncorrect |
( |
const std::string & |
message | ) |
|
Set the message to give to students if this RubricItem fails. Optional.
§ whenIncorrect() [2/2]
void RubricItem::whenIncorrect |
( |
const std::string & |
message, |
|
|
const std::string & |
tag |
|
) |
| |
Set the message and tag to give to students if this RubricItem fails. Optional.
§ checkpoint
bool RubricItem::checkpoint = false |
If checkpoint, no RubricItems after this one will evaluate if this one fails.
§ name
std::string RubricItem::name |
§ optional
bool RubricItem::optional = false |
The documentation for this class was generated from the following files: