44 this->
sort([](
const E &e1,
const E &e2) {
return (e1->getFlux() > e2->getFlux()); });
50 auto si = this->
begin();
51 for (; si != this->
end() && count < nKeep; ++
count, ++si)
53 while (si != this->
end()) {
60 for (
auto const &star : *
this) {
rectangle with sides parallel to axes.
bool inFrame(double x, double y) const
inside?
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(int nKeep)
cuts the end of the std::list
StarList()=default
: default constructor (empty std::list).
std::shared_ptr< Star > Element
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
std::shared_ptr< Star > erase(std::shared_ptr< Star >... args)