File condition_list.hpp¶
-
class ConditionList¶
- #include <condition_list.hpp>
A list that stores conditions in the order they have been learned.
Public Types
Public Functions
-
ConditionList()¶
-
ConditionList(const ConditionList &conditionList)¶
- Parameters:
conditionList – A reference to an object of type
ConditionList
to be copied
-
const_iterator cbegin() const¶
Returns a
const_iterator
to the beginning of the list.- Returns:
A
const_iterator
to the beginning
-
const_iterator cend() const¶
Returns a
const_iterator
to the end of the list.- Returns:
A
const_iterator
to the end
-
uint32 getNumConditions() const¶
Returns how many conditions are contained by the list in total.
- Returns:
The number of conditions that are contained by the list
-
void addCondition(const Condition &condition)¶
Adds a new condition to the end of the list.
- Parameters:
condition – A reference to an object of type
Condition
that should be added
-
void removeLastCondition()¶
Removes the last condition from the list.
-
std::unique_ptr<ConjunctiveBody> createConjunctiveBody() const¶
Creates and returns a new object of type
ConjunctiveBody
from the conditions that contained by this list.- Returns:
An unique pointer to an object of type
ConjunctiveBody
that has been created
-
ConditionList()¶