Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
HuginBase::Variable Class Reference

a variable has a value and a name. More...

#include <PanoramaVariable.h>

Inheritance diagram for HuginBase::Variable:
Inheritance graph

Public Member Functions

 Variable (const std::string &name, double val=0.0)
 
virtual ~Variable ()
 
virtual std::ostream & print (std::ostream &o) const
 print this variable More...
 
const std::string & getName () const
 
void setValue (double v)
 
double getValue () const
 

Protected Attributes

std::string name
 
double value
 

Detailed Description

a variable has a value and a name.

linking is only supported by LinkedVariable, which is only used by Lens.

Definition at line 48 of file PanoramaVariable.h.

Constructor & Destructor Documentation

HuginBase::Variable::Variable ( const std::string &  name,
double  val = 0.0 
)
inline

Definition at line 58 of file PanoramaVariable.h.

virtual HuginBase::Variable::~Variable ( )
inlinevirtual

Definition at line 62 of file PanoramaVariable.h.

Member Function Documentation

const std::string& HuginBase::Variable::getName ( ) const
inline

Definition at line 70 of file PanoramaVariable.h.

Referenced by HuginBase::PTScriptParsing::readVar().

double HuginBase::Variable::getValue ( ) const
inline

Definition at line 76 of file PanoramaVariable.h.

Referenced by PanoDetector::matchPrealigned().

std::ostream & HuginBase::Variable::print ( std::ostream &  o) const
virtual

print this variable

Definition at line 36 of file PanoramaVariable.cpp.

References name, and value.

void HuginBase::Variable::setValue ( double  v)
inline

Member Data Documentation

std::string HuginBase::Variable::name
protected

Definition at line 80 of file PanoramaVariable.h.

Referenced by print(), and HuginBase::LensVariable::printLink().

double HuginBase::Variable::value
protected

Definition at line 81 of file PanoramaVariable.h.

Referenced by print().


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