OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Public Attributes | Protected Attributes | List of all members
R1_R1 Class Referenceabstract

#include <solution.h>

Public Member Functions

virtual ~R1_R1 ()
 
 R1_R1 ()
 
virtual Real operator() ()=0
 
virtual void Set (Real X)
 
Real operator() (Real X)
 
virtual bool IsValid (Real X)
 
 operator Real ()
 

Public Attributes

Real minX
 
Real maxX
 
bool minXinf
 
bool maxXinf
 

Protected Attributes

Real x
 
bool xSet
 

Detailed Description

Definition at line 19 of file solution.h.

Constructor & Destructor Documentation

◆ ~R1_R1()

R1_R1::~R1_R1 ( )
virtual

Definition at line 19 of file solution.cpp.

20 {
21 }

◆ R1_R1()

R1_R1::R1_R1 ( )
inline

Definition at line 36 of file solution.h.

36 : xSet(false), minXinf(true), maxXinf(true) {}
bool minXinf
Definition: solution.h:35
bool xSet
Definition: solution.h:29
bool maxXinf
Definition: solution.h:35

Member Function Documentation

◆ IsValid()

bool R1_R1::IsValid ( Real  X)
virtual

Definition at line 195 of file solution.cpp.

References maxX, maxXinf, minX, minXinf, Set(), and x.

196 {
197  Set(X);
198  return (minXinf || x > minX) && (maxXinf || x < maxX);
199 }
bool minXinf
Definition: solution.h:35
Real minX
Definition: solution.h:34
Real maxX
Definition: solution.h:34
bool maxXinf
Definition: solution.h:35
virtual void Set(Real X)
Definition: solution.cpp:23
Real x
Definition: solution.h:28

◆ operator Real()

R1_R1::operator Real ( )

Definition at line 30 of file solution.cpp.

References y.

31 {
32  if (!xSet) Throw(SolutionException("Value of X not set"));
33  Real y = operator()();
34  return y;
35 }
double Real
Definition: include.h:57
bool xSet
Definition: solution.h:29
ossim_uint32 y
virtual Real operator()()=0

◆ operator()() [1/2]

virtual Real R1_R1::operator() ( )
pure virtual

◆ operator()() [2/2]

Real R1_R1::operator() ( Real  X)
inline

Definition at line 40 of file solution.h.

References operator()().

Referenced by operator()().

40 { Set(X); return operator()(); }
virtual void Set(Real X)
Definition: solution.cpp:23
virtual Real operator()()=0

◆ Set()

void R1_R1::Set ( Real  X)
virtual

Definition at line 23 of file solution.cpp.

References x.

Referenced by IsValid().

24 {
25  if ((!minXinf && X <= minX) || (!maxXinf && X >= maxX))
26  Throw(SolutionException("X value out of range"));
27  x = X; xSet = true;
28 }
bool minXinf
Definition: solution.h:35
bool xSet
Definition: solution.h:29
Real minX
Definition: solution.h:34
Real maxX
Definition: solution.h:34
bool maxXinf
Definition: solution.h:35
Real x
Definition: solution.h:28

Member Data Documentation

◆ maxX

Real R1_R1::maxX

Definition at line 34 of file solution.h.

Referenced by IsValid().

◆ maxXinf

bool R1_R1::maxXinf

Definition at line 35 of file solution.h.

Referenced by IsValid().

◆ minX

Real R1_R1::minX

Definition at line 34 of file solution.h.

Referenced by IsValid().

◆ minXinf

bool R1_R1::minXinf

Definition at line 35 of file solution.h.

Referenced by IsValid().

◆ x

Real R1_R1::x
protected

Definition at line 28 of file solution.h.

Referenced by IsValid().

◆ xSet

bool R1_R1::xSet
protected

Definition at line 29 of file solution.h.


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