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::FittedStarList Class Reference

A list of FittedStar s. Such a list is typically constructed by Associations. More...

#include <FittedStar.h>

Inheritance diagram for lsst::jointcal::FittedStarList:
lsst::jointcal::StarList< FittedStar > std::list< std::shared_ptr< FittedStar > >

Public Types

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

Public Member Functions

 FittedStarList ()
 
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< FittedStar > &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< FittedStar > &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< FittedStarpop_front (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarpush_back (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarsplice (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarcrbegin (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarerase (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStaremplace_front (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarinsert (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarreverse (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarback (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarend (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarremove (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStaremplace_back (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarpop_back (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarcbegin (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarfront (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarunique (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarsize (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarresize (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarpush_front (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarrbegin (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarcrend (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarassign (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarsort (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarmerge (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarempty (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarremove_if (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarcend (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarswap (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarmax_size (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarrend (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarget_allocator (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarclear (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStaremplace (std::shared_ptr< FittedStar > ... args)
 
std::shared_ptr< FittedStarbegin (std::shared_ptr< FittedStar > ... args)
 

Public Attributes

bool inTangentPlaneCoordinates
 
std::shared_ptr< FittedStarelements
 STL member. More...
 

Detailed Description

A list of FittedStar s. Such a list is typically constructed by Associations.

Definition at line 123 of file FittedStar.h.

Member Typedef Documentation

◆ Element

Definition at line 60 of file StarList.h.

◆ StarCIterator

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

Definition at line 61 of file StarList.h.

◆ StarIterator

Definition at line 62 of file StarList.h.

Constructor & Destructor Documentation

◆ FittedStarList()

lsst::jointcal::FittedStarList::FittedStarList ( )
inline

Definition at line 128 of file FittedStar.h.

Member Function Documentation

◆ applyTransform()

void lsst::jointcal::StarList< FittedStar >::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< FittedStar >::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< FittedStar >::copyTo ( StarList< FittedStar > &  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< FittedStar >::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< FittedStar > end(std::shared_ptr< FittedStar > ... args)
std::shared_ptr< FittedStar > erase(std::shared_ptr< FittedStar > ... args)
T count(T... args)
std::shared_ptr< FittedStar > begin(std::shared_ptr< FittedStar > ... args)

◆ dump()

void lsst::jointcal::StarList< FittedStar >::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< FittedStar >::extractInFrame ( StarList< FittedStar > &  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< FittedStar >::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< FittedStar > sort(std::shared_ptr< FittedStar > ... args)

Member Data Documentation

◆ elements

STL member.

◆ inTangentPlaneCoordinates

bool lsst::jointcal::FittedStarList::inTangentPlaneCoordinates

Definition at line 125 of file FittedStar.h.


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