PosiFeature Class Reference
[Spaces]

Position feature, a position endowed with an associated integer. More...

#include <R2.h>

Inheritance diagram for PosiFeature:

Association< Position, int >

List of all members.

Public Member Functions

 PosiFeature ()
 Default constructor.
 PosiFeature (const Position &p)
 Position constructor.
 PosiFeature (const Position &p, const int i)
 Complete constructor (T and assocType).
 PosiFeature (const PosiFeature &f)
 Copy constructor.
 PosiFeature (stringstream &ss)
 stringstream constructor.
PosiFeatureoperator= (const PosiFeature &a)
 Assigment operator =.
Position getPosition (void) const
 Get the stored Position.
int getId (void) const
 Return the associated integer.
void setId (int a)
 Set the associated integer.
string print () const
 Print the PosiFeature on a string.
bool notEqual (const PosiFeature &A, const Decimal &toll) const
 This compares two posiFeatures with a given tollerance.
PosiFeaturemul (const Decimal &scalar)
 compound assignment operator product by a scalar -* */
string exportAsString ()
 export the posifieature as a formatted string: "id x y";

Public Attributes

int numInliersForThisFeature


Detailed Description

Position feature, a position endowed with an associated integer.

Author:
Antonio Franchi
Note:
It is assumed that the position is set only at creation time or by copy, this assumption is due to the application it is thinked for, (point registration)
Todo:
a template that add to a generic class an integer

Constructor & Destructor Documentation

PosiFeature::PosiFeature (  )  [inline]

Default constructor.

Note:
it is automatically set as NOT associated.

PosiFeature::PosiFeature ( const Position p  )  [inline]

Position constructor.

Note:
it is automatically set as NOT associated.
Parameters:
&p position to which a second assoObj could be associated.

PosiFeature::PosiFeature ( const Position p,
const int  i 
) [inline]

Complete constructor (T and assocType).

Note:
The id is automatically set as associated.
Parameters:
&p Position to which i must be associated.
i an int to associate with p.

PosiFeature::PosiFeature ( const PosiFeature f  )  [inline]

Copy constructor.

PosiFeature::PosiFeature ( stringstream &  ss  )  [inline]

stringstream constructor.


Member Function Documentation

PosiFeature& PosiFeature::operator= ( const PosiFeature a  )  [inline]

Assigment operator =.

Position PosiFeature::getPosition ( void   )  const [inline]

Get the stored Position.

Returns:
the stored Position

int PosiFeature::getId ( void   )  const [inline]

Return the associated integer.

Returns:
The associated integer.

void PosiFeature::setId ( int  a  )  [inline]

Set the associated integer.

Parameters:
a the value to which the associated integer is set

string PosiFeature::print (  )  const

Print the PosiFeature on a string.

Returns:
A string with the printed PosiFeature.

bool PosiFeature::notEqual ( const PosiFeature A,
const Decimal toll 
) const

This compares two posiFeatures with a given tollerance.

PosiFeature & PosiFeature::mul ( const Decimal scalar  ) 

compound assignment operator product by a scalar -* */

string PosiFeature::exportAsString (  )  [inline]

export the posifieature as a formatted string: "id x y";

Returns:
a formatted string. Format: "id x y"


Member Data Documentation


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

Generated on Mon Feb 20 07:01:10 2017 for MIP by  doxygen 1.5.6