2 #ifndef LSST_JOINTCAL_STAR_LIST_H
3 #define LSST_JOINTCAL_STAR_LIST_H
35 class StarList :
public std::list<std::shared_ptr<Star>> {
49 void dump(std::ostream &stream = std::cout)
const {
50 for (
auto &p : *
this) p->dump(stream);
74 template <
class Operator>
76 for (
auto &p : *
this) op.transformStar(*(p));
82 std::ostream &operator<<(std::ostream &stream, const StarList<Star> &list) {
89 #endif // LSST_JOINTCAL_STAR_LIST_H
void dump(std::ostream &stream=std::cout) const
invokes dump(stream) for all Stars in the std::list.
std::shared_ptr< Star > Element
StarList()
: default constructor (empty std::list).
void copyTo(StarList< Star > ©) const
clears copy and makes a copy of the std::list to copy
void cutTail(const int nKeep)
cuts the end of the std::list
rectangle with sides parallel to axes.
std::list< Element >::const_iterator StarCIterator
void clearList()
Clears the std::list.
void fluxSort()
a model routine to sort the std::list
std::list< Element >::iterator StarIterator
void applyTransfo(const Operator &op)
enables to apply a geometrical transfo if Star is Basestar or derives from it.
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 ...