ViSP
2.8.0
|
#include <vpList.h>
Public Member Functions | |
vpList () | |
vpList (const vpList &l) | |
virtual | ~vpList () |
void | next (void) |
void | previous (void) |
void | front (void) |
void | end (void) |
bool | outside (void) const |
bool | empty (void) const |
type & | value (void) |
const type & | value (void) const |
void | suppress (void) |
void | kill () |
void | display () |
void | print () |
void | addRight (const type &el) |
void | addLeft (const type &el) |
void | modify (const type &el) |
void | addRight (type &el) |
void | addLeft (type &el) |
void | swapLeft () |
void | swapRight () |
unsigned int | nbElement (void) |
unsigned int | nbElements (void) |
void | operator= (const vpList< type > &l) |
void | operator+= (vpList< type > &l) |
void | operator+= (const type &l) |
bool | nextOutside (void) const |
bool | previousOutside (void) const |
type & | previousValue (void) |
type & | nextValue (void) |
type & | firstValue (void) |
type & | lastValue (void) |
Public Attributes | |
unsigned int | nb |
vpListElement< type > * | first |
vpListElement< type > * | last |
vpListElement< type > * | cur |
Provide simple list management.
Data structure: each object vpListElement contains its own value and two pointers to the next element of the list and to the previous one A list is mainly a pointer to three of these elements - one (cur) points the current element - one (first) points to a virtual element located at the beginning of the list - one (last) points to a virtual element located at the end of the list first, last and cur are used internally and are not to be considered by "basic" user. Notation: In this documentation we note such a list as [*, a, b, c, *] f ^ l where - the * are the two virtual elements (first (f) and last (l)) - the ^ denotes the position of the current element
|
inline |
add a new element in the list, at the left of the current one
[*, a, b, c, *] --> addLeft(i) --> [*, a, i, b, c, *] ^ ^
Definition at line 513 of file vpList.h.
Referenced by vpDot2::searchDotsInArea(), and vpHistogram::sort().
|
inline |
|
inline |
add a new element in the list, at the right of the current one
[*, a, b, c, *] --> addRight(i) --> [*, a, b, i, c, *] ^ ^
Definition at line 480 of file vpList.h.
Referenced by vpHomography::computeDisplacement(), vpWireFrameSimulator::get_cMo_History(), vpBSpline::get_controlPoints(), vpBSpline::get_crossingPoints(), vpWireFrameSimulator::get_fMo_History(), vpBSpline::get_knots(), vpNurbs::get_weights(), vp1394TwoGrabber::getColorCodingSupported(), vp1394Grabber::getFormatSupported(), vp1394Grabber::getFramerateSupported(), vp1394TwoGrabber::getFramerateSupported(), vp1394Grabber::getModeSupported(), vpHistogram::getPeaks(), vpHistogram::getValey(), vp1394TwoGrabber::getVideoModeSupported(), vpKeyPointSurf::matchPoint(), vpCalibration::readGrid(), vpDot2::searchDotsInArea(), and vpHistogram::sort().
|
inline |
void vpList< type >::display | ( | ) |
Print (std::cout) all the element of the list.
Definition at line 818 of file vpList.h.
Referenced by vpList< vpBasicFeature * >::print().
bool vpList< type >::empty | ( | void | ) | const |
Test if the list is empty.
[*, a, b, c, d, *] --> empty return false [*, *] --> empty return true
Definition at line 414 of file vpList.h.
Referenced by vpServo::computeError(), vpHistogram::getPeaks(), vpHistogram::getValey(), and vpHistogram::sort().
|
inline |
Position the current element on the last element of the list.
[*, a, b, c, d, *] --> end() --> [*, a, b, c, d, *] ^ ^
Definition at line 400 of file vpList.h.
Referenced by vpDot2::searchDotsInArea().
type & vpList< type >::firstValue | ( | void | ) |
|
inline |
Position the current element on the first element of the list.
[*, a, b, c, d, *] --> front() --> [*, a, b, c, d, *] ^ ^
Definition at line 386 of file vpList.h.
Referenced by vpServo::computeError(), vpServoDisplay::display(), vpWireFrameSimulator::displayTrajectory(), vpServo::getDimension(), vpImageSimulator::getImage(), vpHistogram::getPeaks(), vpHistogram::getValey(), vpNurbs::globalCurveApprox(), vpNurbs::globalCurveInterp(), vpWireFrameSimulator::initScene(), vpMeNurbs::initTracking(), vpServo::kill(), vpKeyPointSurf::matchPoint(), vpList< type >::operator+=(), vpServo::print(), vpCalibration::readGrid(), vpDot2::searchDotsInArea(), vpBSpline::set_controlPoints(), vpBSpline::set_crossingPoints(), vpBSpline::set_knots(), vpNurbs::set_weights(), and vpHistogram::sort().
void vpList< type >::kill | ( | ) |
Destroy the list.
[*, a, b, c, *] --> kill --> [*, *] ^ ^
Definition at line 694 of file vpList.h.
Referenced by vpHomography::computeDisplacement(), vp1394TwoGrabber::getColorCodingSupported(), vpDot::getConnexities(), vpDot2::getEdges(), vp1394Grabber::getFormatSupported(), vp1394Grabber::getFramerateSupported(), vp1394TwoGrabber::getFramerateSupported(), vpDot2::getFreemanChain(), vp1394Grabber::getModeSupported(), vpHistogram::getPeaks(), vpHistogram::getValey(), vp1394TwoGrabber::getVideoModeSupported(), vpServo::init(), vpServo::kill(), and vpHistogram::sort().
type & vpList< type >::lastValue | ( | void | ) |
|
inline |
|
inline |
|
inline |
return the number of element in the list
Definition at line 261 of file vpList.h.
Referenced by vpWireFrameSimulator::displayTrajectory(), vpImageSimulator::getImage(), vpBSpline::set_controlPoints(), vpBSpline::set_crossingPoints(), vpBSpline::set_knots(), and vpNurbs::set_weights().
|
inline |
position the current element on the next one
[*, a, b, c, d, *] --> next() --> [*, a, b, c, d, *] ^ ^
Definition at line 275 of file vpList.h.
Referenced by vpServo::computeError(), vpServoDisplay::display(), vpWireFrameSimulator::displayTrajectory(), vpServo::getDimension(), vpImageSimulator::getImage(), vpNurbs::globalCurveApprox(), vpNurbs::globalCurveInterp(), vpWireFrameSimulator::initScene(), vpMeNurbs::initTracking(), vpServo::kill(), vpKeyPointSurf::matchPoint(), vpList< type >::operator+=(), vpServo::print(), vpDot2::searchDotsInArea(), vpBSpline::set_controlPoints(), vpBSpline::set_crossingPoints(), vpBSpline::set_knots(), vpNurbs::set_weights(), and vpHistogram::sort().
bool vpList< type >::nextOutside | ( | void | ) | const |
Test if the next element is outside the list (ie if the current element is the last one)
[*, a, b, c, d, *] --> nextOutside return true ^
Definition at line 447 of file vpList.h.
Referenced by vpHistogram::sort().
type & vpList< type >::nextValue | ( | void | ) |
Append two lists.
[*, a, b, *] += [*, c, d, *] --> [*, a, b, c, d, *] ^
Definition at line 772 of file vpList.h.
References vpList< type >::front(), vpList< type >::next(), vpList< type >::outside(), and vpList< type >::value().
|
inline |
Copy constructor const.
l | : the list to copy |
Definition at line 744 of file vpList.h.
References vpList< type >::first, vpList< type >::last, and vpList< type >::nb.
|
inline |
Test if the current element is outside the list (on the virtual element)
[*, a, b, c, d, *] --> outside return false ^ [*, a, b, c, d, *] --> outside return true ^ or ^
Definition at line 431 of file vpList.h.
Referenced by vpServo::computeError(), vpServoDisplay::display(), vpWireFrameSimulator::displayTrajectory(), vpServo::getDimension(), vpNurbs::globalCurveApprox(), vpNurbs::globalCurveInterp(), vpWireFrameSimulator::initScene(), vpMeNurbs::initTracking(), vpServo::kill(), vpKeyPointSurf::matchPoint(), vpList< type >::operator+=(), vpServo::print(), vpDot2::searchDotsInArea(), and vpHistogram::sort().
|
inline |
bool vpList< type >::previousOutside | ( | void | ) | const |
type & vpList< type >::previousValue | ( | void | ) |
void vpList< type >::suppress | ( | void | ) |
|
inline |
|
inline |
|
inline |
return the value of the current element
[*, a, b, c, *] --> value() return b ^
Definition at line 303 of file vpList.h.
Referenced by vpServo::computeError(), vpServoDisplay::display(), vpWireFrameSimulator::displayTrajectory(), vpServo::getDimension(), vpImageSimulator::getImage(), vpNurbs::globalCurveApprox(), vpNurbs::globalCurveInterp(), vpWireFrameSimulator::initScene(), vpMeNurbs::initTracking(), vpServo::kill(), vpKeyPointSurf::matchPoint(), vpList< type >::operator+=(), vpServo::print(), vpDot2::searchDotsInArea(), vpBSpline::set_controlPoints(), vpBSpline::set_crossingPoints(), vpBSpline::set_knots(), vpNurbs::set_weights(), and vpHistogram::sort().
|
inline |
vpListElement<type>* vpList< type >::cur |
vpListElement<type>* vpList< type >::first |
the first virtual item in the list
[*, a, b, c, *] f
Definition at line 126 of file vpList.h.
Referenced by vpList< type >::operator=().
vpListElement<type>* vpList< type >::last |
the last virtualitem in the list
[*, a, b, c, *] l
Definition at line 134 of file vpList.h.
Referenced by vpList< type >::operator=().
unsigned int vpList< type >::nb |
Definition at line 118 of file vpList.h.
Referenced by vpKeyPointSurf::matchPoint(), and vpList< type >::operator=().