StatusChanges holds a list of StatusChange that apply to the interval defined by period_.
If the list with the status changes is not empty, then the class provides enough information to determine the effective status of the related entity for every time with the interval.
Definition at line 193 of file statuschange.h.
typedef Cont::const_iterator OSB_LIB::StatusChanges::ConstIter |
typedef Cont::const_reverse_iterator OSB_LIB::StatusChanges::ConstRiter |
typedef std::set<StatusChange, Cmp> OSB_LIB::StatusChanges::Cont |
OSB_LIB::StatusChanges::StatusChanges | ( | ) | [inline] |
OSB_LIB::StatusChanges::StatusChanges | ( | const Period & | period | ) | [inline] |
void OSB_LIB::StatusChanges::add | ( | const StatusChanges & | rhs | ) |
Add the status changes of another list.
rhs | List of status changes to add. |
StatusChanges::ConstIter OSB_LIB::StatusChanges::begin | ( | ) | const [inline] |
Begin of status changes.
Definition at line 365 of file statuschange.h.
References changes_.
Referenced by countIf().
const StatusChanges::Cont & OSB_LIB::StatusChanges::changes | ( | ) | const [inline] |
Read access to list of status changes.
Definition at line 360 of file statuschange.h.
References changes_.
void OSB_LIB::StatusChanges::clear | ( | ) |
Clear the list with the status changes, i.e., changes_.
size_t OSB_LIB::StatusChanges::countIf | ( | Pred | pred | ) | const [inline] |
bool OSB_LIB::StatusChanges::empty | ( | ) | const [inline] |
StatusChanges::ConstIter OSB_LIB::StatusChanges::end | ( | ) | const [inline] |
End of status changes.
Definition at line 370 of file statuschange.h.
References changes_.
Referenced by countIf().
const Period & OSB_LIB::StatusChanges::period | ( | ) | const [inline] |
Time period covered by the status requests.
Definition at line 345 of file statuschange.h.
References period_.
StatusChanges::ConstRiter OSB_LIB::StatusChanges::rbegin | ( | ) | const [inline] |
Begin of reversed status changes.
Definition at line 375 of file statuschange.h.
References changes_.
StatusChanges::ConstRiter OSB_LIB::StatusChanges::rend | ( | ) | const [inline] |
void OSB_LIB::StatusChanges::setPeriod | ( | const Period & | period | ) |
Set the time period.
period | New time period to use. |
size_t OSB_LIB::StatusChanges::size | ( | ) | const [inline] |
Number of status requests in the list.
Definition at line 355 of file statuschange.h.
References changes_.
void OSB_LIB::StatusChanges::swap | ( | StatusChanges & | rhs | ) | throw () |
Swap two status change lists.
friend class OSB_DB::StatusChangeGw [friend] |
Cont OSB_LIB::StatusChanges::changes_ [private] |
List of status changes for the time period.
An empty list implies that the status changes have not been read from the database.
Definition at line 295 of file statuschange.h.
Referenced by begin(), changes(), empty(), end(), rbegin(), rend(), and size().
Period OSB_LIB::StatusChanges::period_ [private] |
Time period covered by the status requests.
Definition at line 285 of file statuschange.h.
Referenced by period().