PointFilterKey Class Reference
[Centerfocus Options]

Represents a key for a PointFilterRule. More...

#include <pointFilter.h>

Collaboration diagram for PointFilterKey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PointFilterKey ()
 PointFilterKey (std::string str)
 PointFilterKey (uint16_t exactVanishedFocalValues, uint16_t jacobianRank, bool smooth, uint16_t quadricsRank)
const rule & getConstRuleRef ()
 see pointFilterKeyRule_m
bool operator< (const PointFilterKey &pfkey) const
 compares two PointFilterKey objects
void print (std::ostream &os) const
 prints the key as string : (exactVanishedFocalValues_m, jacobianRank_m, smooth_m(true/false), quadricsRank_m). Example: "(14,5,false, 1)"

Private Member Functions

const rule * initRule ()
 creates a boost::spirit::rule to parse a key string.
Key string format: (exactVanishedFocalValues,jacobianRank, smooth(true/false), quadricsRank). Example: "(14,5,false, 1)"

Private Attributes

const rule * pointFilterKeyRule_m
key data

uint16_t exactVanishedFocalValues_m
uint16_t jacobianRank_m
bool smooth_m
uint16_t quadricsRank_m

Static Private Attributes

static const bool trueValue_m
static const bool falseValue_m

Detailed Description

Todo:
Problem: objekt may be unintentionally changed by parsing a string with the rule getConstRuleRef().

Definition at line 53 of file pointFilter.h.


Constructor & Destructor Documentation

PointFilterKey::PointFilterKey (  )  [inline]

Definition at line 17 of file pointFilter.hpp.

References initRule().

Here is the call graph for this function:

PointFilterKey::PointFilterKey ( std::string  str  )  [inline]

Definition at line 39 of file pointFilter.hpp.

References falseValue_m, initRule(), pointFilterKeyRule_m, print(), smooth_m, and trueValue_m.

Here is the call graph for this function:

PointFilterKey::PointFilterKey ( uint16_t  exactVanishedFocalValues,
uint16_t  jacobianRank,
bool  smooth,
uint16_t  quadricsRank 
) [inline]

Definition at line 27 of file pointFilter.hpp.


Member Function Documentation

const rule& PointFilterKey::getConstRuleRef (  )  [inline]

Definition at line 94 of file pointFilter.h.

References pointFilterKeyRule_m.

Referenced by PointFilterRule::initRule().

const rule * PointFilterKey::initRule (  )  [private]
Precondition:
exactVanishedFocalValues, jacobianRank, quadricsRank are 16 bit ints (unsigned and smaller than 65536)
smooth_m is a 'true' or a 'false' string
Todo:
(optional) create or use a rule which matches the (unsigned and smaller than 65536) -condition

Note:
problem: boost::spirit::assign_a( smooth_m,true ) oder assign_a( smooth_m,1 ) funktioniert nicht, boost::spirit::assign_a( smooth_m,trueValue_m ) dagegen schon!

Definition at line 63 of file pointFilter.hpp.

References exactVanishedFocalValues_m, falseValue_m, jacobianRank_m, pointFilterKeyRule_m, quadricsRank_m, smooth_m, space_rule_g, spacy_colon_g, and trueValue_m.

Referenced by PointFilterKey().

bool PointFilterKey::operator< ( const PointFilterKey pfkey  )  const [inline]

Definition at line 88 of file pointFilter.hpp.

References exactVanishedFocalValues_m, jacobianRank_m, quadricsRank_m, and smooth_m.

void PointFilterKey::print ( std::ostream &  os  )  const [inline]

Member Data Documentation

Definition at line 57 of file pointFilter.h.

Referenced by initRule(), operator<(), and print().

const bool PointFilterKey::falseValue_m [static, private]

Definition at line 68 of file pointFilter.h.

Referenced by initRule(), and PointFilterKey().

uint16_t PointFilterKey::jacobianRank_m [private]

Definition at line 58 of file pointFilter.h.

Referenced by initRule(), operator<(), and print().

const rule* PointFilterKey::pointFilterKeyRule_m [private]

boost::spirit::rule to parse a key string.
Key string format: (exactVanishedFocalValues,jacobianRank, smooth(true/false), quadricsRank). Example: "(14,5,false, 1)"

Definition at line 65 of file pointFilter.h.

Referenced by getConstRuleRef(), initRule(), and PointFilterKey().

uint16_t PointFilterKey::quadricsRank_m [private]

Definition at line 60 of file pointFilter.h.

Referenced by initRule(), operator<(), and print().

bool PointFilterKey::smooth_m [private]

Definition at line 59 of file pointFilter.h.

Referenced by initRule(), operator<(), PointFilterKey(), and print().

const bool PointFilterKey::trueValue_m [static, private]

Definition at line 67 of file pointFilter.h.

Referenced by initRule(), and PointFilterKey().


The documentation for this class was generated from the following files:
Generated on Tue Nov 23 13:10:53 2010 for centerfocus by  doxygen 1.6.3