TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
Ltcs::LbtStarCatSrt Class Reference

A LbtStarCatSrt object helps to sort a LBTO catalogue by distance. More...

#include <IifStarcat.h>

Collaboration diagram for Ltcs::LbtStarCatSrt:
Collaboration graph

Public Member Functions

 LbtStarCatSrt (const IifStar &cntr)
 Define the reference star for the LBTO star list. More...
 
bool operator() (const IifStar &i, const IifStar &j)
 Compare two stars according to their distance to the reference direction. More...
 
 LbtStarCatSrt (const IifStar &cntr)
 
bool operator() (const IifStar &i, const IifStar &j)
 

Private Attributes

IifStar refstar
 The star that defines distance zero. More...
 

Detailed Description

A LbtStarCatSrt object helps to sort a LBTO catalogue by distance.


Since
2017-01-20
Author
R. J. mathar

Constructor & Destructor Documentation

◆ LbtStarCatSrt() [1/2]

Ltcs::LbtStarCatSrt::LbtStarCatSrt ( const IifStar cntr)

Define the reference star for the LBTO star list.


Parameters
cntrThe star that will be placed at position 0 at the top of the list.
Since
2017-01-18

◆ LbtStarCatSrt() [2/2]

Ltcs::LbtStarCatSrt::LbtStarCatSrt ( const IifStar cntr)

Member Function Documentation

◆ operator()() [1/2]

bool Ltcs::LbtStarCatSrt::operator() ( const IifStar i,
const IifStar j 
)

Compare two stars according to their distance to the reference direction.


Parameters
iFirst star of the pair.
jSecond star of the pair.
Returns
True if the first star is closer to the reference star.
Since
2017-01-18

◆ operator()() [2/2]

bool Ltcs::LbtStarCatSrt::operator() ( const IifStar i,
const IifStar j 
)

Member Data Documentation

◆ refstar

IifStar Ltcs::LbtStarCatSrt::refstar
private

The star that defines distance zero.

The reference site


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