LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
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 print (std::ostream &out) const
 invokes print(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.

128 { inTangentPlaneCoordinates = true; }

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); };

◆ 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 89 of file StarList.cc.

68  {
69  copy.clearList();
70  for (auto const &si : *this) copy.push_back(std::make_shared<Star>(*si));
71 }

◆ cutTail()

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

cuts the end of the std::list

Definition at line 83 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 }

◆ 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 86 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 }

◆ 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 80 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 }

◆ print()

void lsst::jointcal::StarList< FittedStar >::print ( std::ostream out) const
inlineinherited

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

Definition at line 72 of file StarList.h.

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

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:
std::list< std::shared_ptr< FittedStar > >::sort
std::shared_ptr< FittedStar > sort(std::shared_ptr< FittedStar > ... args)
lsst::jointcal::StarList< FittedStar >::cutTail
void cutTail(const int nKeep)
cuts the end of the std::list
Definition: StarList.cc:48
lsst::jointcal::FittedStarList::inTangentPlaneCoordinates
bool inTangentPlaneCoordinates
Definition: FittedStar.h:125
std::list< std::shared_ptr< FittedStar > >::erase
std::shared_ptr< FittedStar > erase(std::shared_ptr< FittedStar > ... args)
std::copy
T copy(T... args)
std::list< std::shared_ptr< FittedStar > >::begin
std::shared_ptr< FittedStar > begin(std::shared_ptr< FittedStar > ... args)
std::count
T count(T... args)
std::list< std::shared_ptr< FittedStar > >::end
std::shared_ptr< FittedStar > end(std::shared_ptr< FittedStar > ... args)