LSSTApplications  18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Public Attributes | List of all members
lsst::jointcal::MeasuredStarList Class Reference

A list of MeasuredStar. They are usually filled in Associations::createCcdImage. More...

#include <MeasuredStar.h>

Inheritance diagram for lsst::jointcal::MeasuredStarList:
lsst::jointcal::StarList< MeasuredStar > std::list< std::shared_ptr< MeasuredStar > >

Public Types

typedef std::shared_ptr< MeasuredStarElement
 
typedef std::list< Element >::const_iterator StarCIterator
 
typedef std::list< Element >::iterator StarIterator
 

Public Member Functions

 MeasuredStarList ()
 
void setCcdImage (const CcdImage *_ccdImage)
 
void dump (std::ostream &stream=std::cout) const
 invokes dump(stream) for all Stars in the std::list. More...
 
void fluxSort ()
 a model routine to sort the std::list More...
 
void cutTail (const int nKeep)
 cuts the end of the std::list More...
 
void extractInFrame (StarList< MeasuredStar > &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 More...
 
void copyTo (StarList< MeasuredStar > &copy) const
 clears copy and makes a copy of the std::list to copy More...
 
void clearList ()
 Clears the std::list. More...
 
void applyTransform (const Operator &op)
 enables to apply a geometrical transform if Star is Basestar or derives from it. More...
 
std::shared_ptr< MeasuredStarpop_front (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarpush_back (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarsplice (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarcrbegin (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarerase (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStaremplace_front (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarinsert (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarreverse (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarback (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarend (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarremove (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStaremplace_back (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarpop_back (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarcbegin (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarfront (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarunique (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarsize (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarresize (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarpush_front (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarrbegin (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarcrend (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarassign (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarsort (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarmerge (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarempty (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarremove_if (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarcend (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarswap (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarmax_size (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarrend (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarget_allocator (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarclear (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStaremplace (std::shared_ptr< MeasuredStar > ... args)
 
std::shared_ptr< MeasuredStarbegin (std::shared_ptr< MeasuredStar > ... args)
 

Public Attributes

std::shared_ptr< MeasuredStarelements
 STL member. More...
 

Detailed Description

A list of MeasuredStar. They are usually filled in Associations::createCcdImage.

Definition at line 146 of file MeasuredStar.h.

Member Typedef Documentation

◆ Element

Definition at line 60 of file StarList.h.

◆ StarCIterator

typedef std::list<Element>::const_iterator lsst::jointcal::StarList< MeasuredStar >::StarCIterator
inherited

Definition at line 61 of file StarList.h.

◆ StarIterator

Definition at line 62 of file StarList.h.

Constructor & Destructor Documentation

◆ MeasuredStarList()

lsst::jointcal::MeasuredStarList::MeasuredStarList ( )
inline

Definition at line 148 of file MeasuredStar.h.

148 {};

Member Function Documentation

◆ applyTransform()

void lsst::jointcal::StarList< MeasuredStar >::applyTransform ( const Operator &  op)
inlineinherited

enables to apply a geometrical transform if Star is Basestar or derives from it.

could be extended to other type of transformations.

Definition at line 98 of file StarList.h.

98  {
99  for (auto &p : *this) op.transformStar(*(p));
100  }

◆ clearList()

void lsst::jointcal::StarList< MeasuredStar >::clearList ( )
inlineinherited

Clears the std::list.

Definition at line 92 of file StarList.h.

92 { cutTail(0); };
void cutTail(const int nKeep)
cuts the end of the std::list
Definition: StarList.cc:48

◆ copyTo()

void lsst::jointcal::StarList< MeasuredStar >::copyTo ( StarList< MeasuredStar > &  copy) const
inherited

clears copy and makes a copy of the std::list to copy

Definition at line 68 of file StarList.cc.

68  {
69  copy.clearList();
70  for (auto const &si : *this) copy.push_back(std::make_shared<Star>(*si));
71 }
T push_back(T... args)
void clearList()
Clears the std::list.
Definition: StarList.h:92

◆ cutTail()

void lsst::jointcal::StarList< MeasuredStar >::cutTail ( const int  nKeep)
inherited

cuts the end of the std::list

Definition at line 48 of file StarList.cc.

48  {
49  int count = 0;
50  auto si = this->begin();
51  for (; si != this->end() && count < nKeep; ++count, ++si)
52  ;
53  while (si != this->end()) {
54  si = this->erase(si);
55  }
56 }
std::shared_ptr< MeasuredStar > end(std::shared_ptr< MeasuredStar > ... args)
std::shared_ptr< MeasuredStar > erase(std::shared_ptr< MeasuredStar > ... args)
T count(T... args)
std::shared_ptr< MeasuredStar > begin(std::shared_ptr< MeasuredStar > ... args)

◆ dump()

void lsst::jointcal::StarList< MeasuredStar >::dump ( std::ostream stream = std::cout) const
inlineinherited

invokes dump(stream) for all Stars in the std::list.

Definition at line 72 of file StarList.h.

72  {
73  for (auto &p : *this) p->dump(stream);
74  }

◆ extractInFrame()

void lsst::jointcal::StarList< MeasuredStar >::extractInFrame ( StarList< MeasuredStar > &  out,
const Frame frame 
) const
inherited

copy the part of the std::list which is included in the frame at the end of another std::list

Definition at line 59 of file StarList.cc.

59  {
60  for (auto const &star : *this) {
61  if (frame.inFrame(*star)) {
62  out.push_back(std::make_shared<Star>(*star));
63  }
64  }
65 }
T push_back(T... args)

◆ fluxSort()

void lsst::jointcal::StarList< MeasuredStar >::fluxSort ( )
inherited

a model routine to sort the std::list

see decreasingFlux() to see what it is, if you want another sorting criterion)

Definition at line 42 of file StarList.cc.

42  {
43  typedef StarList<Star>::Element E;
44  this->sort([](const E &e1, const E &e2) { return (e1->getFlux() > e2->getFlux()); });
45 }
std::shared_ptr< MeasuredStar > sort(std::shared_ptr< MeasuredStar > ... args)

◆ setCcdImage()

void lsst::jointcal::MeasuredStarList::setCcdImage ( const CcdImage _ccdImage)

Definition at line 68 of file MeasuredStar.cc.

68  {
69  for (auto &i : *this) i->setCcdImage(ccdImage);
70 }

Member Data Documentation

◆ elements

STL member.


The documentation for this class was generated from the following files: