ROOT_Application
2.0
C++ Core modules and GUIStock
|
Implements the functions related to the order of the data in the vector. More...
#include <PolicyChronologic.h>
Protected Member Functions | |
EPChrono | bpolicy () const |
Return the current chronology policy, of type EPChrono. More... | |
std::string | policy () const |
Return the policy as a string, for printing info. More... | |
Implementation of functions dependent of the policy | |
void | order_impl (std::vector< T > &vec, EPChrono b_chronologic) |
Policy implementation of Order(). More... | |
const T & | chronologic_at_impl (const std::vector< T > &vec_no_ordered, unsigned int position) const |
Policy implementation of ChronologicalAt() More... | |
const T & | no_chronologic_at_impl (const std::vector< T > &vec_no_ordered, unsigned int position) const |
Policy implementation of NoChronologicalAt() More... | |
void | Erase_LastChrono (std::vector< T > &vec_no_ordered) |
Erase last chronological data, first in vector in this case. More... | |
void | AddChronoToList (std::vector< T > &vec_no_ordered, const std::vector< T > &new_vec, const int first_to_skip) |
Insert the new_vec vector at the beginning of a non-chronological vec_no_ordered. More... | |
time_t | FirstChronologic (const std::vector< T > &vec_no_ordered) const |
Return dates of the first and last (chronologically) elements. More... | |
time_t | LastChronologic (const std::vector< T > &vec_no_ordered) const |
Implements the functions related to the order of the data in the vector.
This class assumes the data are stored in a non-chronological order
Definition at line 123 of file PolicyChronologic.h.
|
inlineprotected |
Insert the new_vec vector at the beginning of a non-chronological vec_no_ordered.
Called by ListDataStock::AddToList
vec_no_ordered | initial vector |
new_vec | vector to append to vec_ordered |
first_to_skip | skip the last data of new_vec (less recent) |
Definition at line 177 of file PolicyChronologic.h.
|
inlineprotected |
Return the current chronology policy, of type EPChrono.
Definition at line 128 of file PolicyChronologic.h.
References NO_CHRONO.
|
inlineprotected |
Policy implementation of ChronologicalAt()
Definition at line 157 of file PolicyChronologic.h.
|
inlineprotected |
Erase last chronological data, first in vector in this case.
vec_no_ordered | vector to modify |
Definition at line 166 of file PolicyChronologic.h.
|
inlineprotected |
Return dates of the first and last (chronologically) elements.
Definition at line 187 of file PolicyChronologic.h.
|
inlineprotected |
Definition at line 188 of file PolicyChronologic.h.
|
inlineprotected |
Policy implementation of NoChronologicalAt()
Definition at line 161 of file PolicyChronologic.h.
|
inlineprotected |
Policy implementation of Order().
Reorder the vector, in the order given by b_chronologic.
If the policy is the same as the order, nothing is done.
This test is done at compile time.
vec | vector to reorder |
b_chronologic | indicates in which order the vector has been filled |
Definition at line 141 of file PolicyChronologic.h.
References NO_CHRONO.
|
inlineprotected |
Return the policy as a string, for printing info.
Definition at line 130 of file PolicyChronologic.h.