20 this->
sort([](
const E &e1,
const E &e2) {
return (e1->getFlux() > e2->getFlux()); });
26 auto si = this->
begin();
27 for (; si != this->
end() && count < nKeep; ++count, ++si)
29 while (si != this->
end()) {
36 for (
auto const &star : *
this) {
38 out.
push_back(std::make_shared<Star>(*star));
46 for (
auto const &si : *
this) copy.
push_back(std::make_shared<Star>(*si));
void extractInFrame(StarList< Star > &out, const Frame &frame) const
copy the part of the std::list which is included in the frame at the end of another std::list ...
void cutTail(const int nKeep)
cuts the end of the std::list
std::shared_ptr< Star > push_back(std::shared_ptr< Star > ... args)
rectangle with sides parallel to axes.
Class for a simple mapping implementing a generic Gtransfo.
void clearList()
Clears the std::list.
bool inFrame(double x, double y) const
inside?
void copyTo(StarList< Star > ©) const
clears copy and makes a copy of the std::list to copy
void fluxSort()
a model routine to sort the std::list