|
YAP
|
Class holding a set of DataPoint objects. More...
#include <DataSet.h>
Public Types | |
| using | value_type = std::vector< FourVector< double > > |
Public Member Functions | |
| DataSet (const Model &m) | |
| Constructor. | |
| bool | consistent (const DataPoint &d) const |
| Check if data point is consisent with data set. | |
| void | addEmptyDataPoints (size_t n) |
| const DataPoint | createDataPoint (const std::vector< FourVector< double > > &P, StatusManager &sm) |
| const DataPoint | createDataPoint (const std::vector< FourVector< double > > &P) |
| void | push_back (const std::vector< FourVector< double > > &P) |
| void | push_back (const DataPoint &d) |
| void | push_back (DataPoint &&d) |
| DataIterator | insert (DataIterator pos, const std::vector< FourVector< double > > &P) |
| DataIterator | insert (const DataIterator &pos, const DataPoint &d) |
| DataIterator | insert (const DataIterator &pos, DataPoint &&d) |
| void | clear () |
| clear the data set | |
| void | pop_back () |
| DataIterator | erase (const DataIterator &pos) |
| DataIterator | erase (const DataIterator &first, const DataIterator &last) |
| const DataIterator & | begin () const override |
| const DataIterator & | end () const override |
| DataPoint & | operator[] (size_t i) |
| access by index | |
| DataPoint & | at (size_t i) |
| access by index (with check) | |
| const DataPoint & | front () const |
| access front | |
| const DataPoint & | back () const |
| access back | |
| const unsigned | bytes () const |
| const size_t | size () const override |
| const size_t | max_size () const |
| const size_t | capacity () const |
| const bool | empty () const |
| void | reserve (size_t n) |
| reserve storage space | |
| void | shrink_to_fit () |
| call shrink to fit on DataPoints_ | |
| const Model * | model () const |
Public Member Functions inherited from DataPartitionWeave | |
| DataPartitionWeave (const StatusManager &sm, DataPointVector::iterator begin, DataPointVector::iterator end, unsigned spacing) | |
| virtual const DataIterator::difference_type | difference (const DataPointVector::iterator &lhs, const DataPointVector::iterator &rhs) const override |
Public Member Functions inherited from DataPartition | |
| virtual | ~DataPartition ()=default |
| virtual destructor (defaulted) | |
| DataPartition (const DataPartition &)=default | |
| copy constructor (defaulted) | |
| DataPartition (DataPartition &&)=default | |
| move constructor (defaulted) | |
| DataPartition & | operator= (const DataPartition &)=default |
| copy assignment operator (defaulted) | |
| DataPartition & | operator= (DataPartition &&)=default |
| move assignment operator (defaulted) | |
Public Member Functions inherited from StatusManager | |
| StatusManager (const DataAccessorSet &sDA) | |
| template<class T > | |
| void | set (const CachedValue &cdv, const T &stat) |
| template<class T > | |
| void | set (const DataAccessor &da, const T &stat) |
| template<class T > | |
| void | setAll (const T &stat) |
| void | copyCalculationStatuses (const StatusManager &sm) |
| CachedValue::Status & | status (size_t da_index, size_t cdv_index, size_t sym_index) |
| const CachedValue::Status & | status (size_t da_index, size_t cdv_index, size_t sym_index) const |
| CachedValue::Status & | status (const CachedValue &cdv, size_t sym_index) |
| const CachedValue::Status & | status (const CachedValue &cdv, size_t sym_index) const |
Public Attributes | |
| friend | DataPartition |
| grant friend status to DataPartition to access non-const dataPoints() | |
Public Attributes inherited from DataPartition | |
| friend | DataIterator |
| grant friend status to DataIterator to call increment | |
Protected Member Functions | |
| DataPointVector & | dataPoints () |
| non-const access to DataPoints_ | |
Protected Member Functions inherited from DataPartitionBlock | |
| DataPartitionBlock (const StatusManager &sm, DataPointVector::iterator begin, DataPointVector::iterator end) | |
| DataPartitionBlock (const DataAccessorSet &sDA) | |
Protected Member Functions inherited from DataPartitionWeave | |
| DataPartitionWeave (const DataAccessorSet &sDA, unsigned spacing) | |
| virtual DataIterator & | increment (DataIterator &it, DataIterator::difference_type n) const override |
Protected Member Functions inherited from DataPartition | |
| DataPartition (const StatusManager &sm, DataPointVector::iterator begin, DataPointVector::iterator end) | |
| DataPartition (const DataAccessorSet &sDA) | |
| DataPointVector::iterator & | rawIterator (DataIterator &it) const |
| const DataPointVector::iterator & | rawIterator (const DataIterator &it) const |
| DataIterator | dataIterator (DataPointVector::iterator it, const DataPartition *part) const |
| const DataIterator & | setBegin (DataPointVector::iterator it) |
| set begin | |
| const DataIterator & | setEnd (DataPointVector::iterator it) |
| set end | |
Private Attributes | |
| DataPointVector | DataPoints_ |
| vector of data points contained in set | |
| const Model * | Model_ |
| Associated model. | |
Additional Inherited Members | |
Static Public Member Functions inherited from DataPartitionBlock | |
| static DataPartitionVector | create (DataSet &dataSet, unsigned n) |
| static DataPartitionVector | createBySize (DataSet &dataSet, size_t s) |
Static Public Member Functions inherited from DataPartitionWeave | |
| static DataPartitionVector | create (DataSet &dataSet, unsigned n) |
Static Protected Member Functions inherited from DataPartition | |
| static DataPointVector::iterator | begin (DataSet &ds) |
| get non-const begin from DataSet | |
| static DataPointVector::iterator | end (DataSet &ds) |
| get non-const end from DataSet | |
Protected Attributes inherited from DataPartitionWeave | |
| unsigned | Spacing_ |
| spacing between data points for the weaving | |
Class holding a set of DataPoint objects.
needed by std::back_inserter and std::inserter
| void addEmptyDataPoints | ( | size_t | n | ) |
add empty data points
| n | number of points to add |
|
inlineoverridevirtual |
Reimplemented from DataPartition.
| const unsigned bytes | ( | ) | const |
|
inline |
| const DataPoint createDataPoint | ( | const std::vector< FourVector< double > > & | P, |
| StatusManager & | sm | ||
| ) |
creates a new #DataPoint and calls #Model::setFinalStateMomenta on it
| P | the momenta to be set |
| sm | StatusManager to use when calling #Model::setFinalStateMomenta |
|
inline |
creates a new #DataPoint and #setFinalStateMomenta to P
| P | the momenta to be set |
|
inline |
|
inlineoverridevirtual |
Reimplemented from DataPartition.
|
inline |
remove specified element from data set.
| pos | iterator to element to remove |
| DataIterator erase | ( | const DataIterator & | first, |
| const DataIterator & | last | ||
| ) |
remove specified elements from data set
| first | iterator to first element to remove |
| last | iterator beyond last element to remove |
|
inline |
creates a DataPoint from a vector of FourVector's using createDataPoint and inserts it into the vector of DataPoint's at a specified position
| pos | DataIterator of position in DataSet to insert into |
| P | vector of FourVector to create DataPoint from |
| DataIterator insert | ( | const DataIterator & | pos, |
| const DataPoint & | d | ||
| ) |
checks consistency of DataPoint and inserts it into vector of data points at specifief position
| pos | DataIterator of position in DataSet to insert into |
| d | DataPoint to copy into DataSet |
| DataIterator insert | ( | const DataIterator & | pos, |
| DataPoint && | d | ||
| ) |
checks consistency of DataPoint and inserts it into vector of data points at specifief position
| pos | DataIterator of position in DataSet to insert into |
| d | DataPoint to move into DataSet |
|
inline |
|
inline |
|
inline |
removes last element added to data set
|
inline |
creates a DataPoint from a vector of FourVector's using createDataPoint and pushes it back in the vector data points
| P | vector of FourVector's to create DataPoint from |
| void push_back | ( | const DataPoint & | d | ) |
| void push_back | ( | DataPoint && | d | ) |
|
inlineoverridevirtual |
Reimplemented from DataPartition.
1.8.6