
#include <Channels/Jet.H>
A Jet object requires a valid JetSpec object at construction
Definition at line 55 of file Jet.H.
Public Member Functions | |
Constructors, destructor and operators | |
| JetSpec () | |
| Empty constructor; starts with an empty specification. | |
| JetSpec (const JetSpec &js) | |
| Copy constructor. | |
| JetSpec & | operator= (const JetSpec &js) |
| Assignment operator. | |
| void | freeMem () |
| Free all allocated memory and un-initialize. | |
| ~JetSpec () | |
| Destructor. | |
Build methods | |
| bool | addFeature (const VisualFeature f) |
| Add a new feature; returns true on success. | |
| bool | addFeatureType (const VisualFeature f, const VisualFeatureType t) |
| Add a new representation type for an existing feature; true on success. | |
| bool | addIndexRange (const VisualFeature f, const VisualFeatureType t, const int indexmin, const int indexmax) |
| Add a new index range for existing feature and type; true on success. | |
Access methods | |
| int | getJetSize () const |
| Get the number of components in a jet with our specs. | |
| bool | hasFeature (const VisualFeature f) const |
| Query whether we have some representation for given feature. | |
| bool | hasFeatureType (const VisualFeature f, const VisualFeatureType t) const |
| Query whether we have some representation for given feature/type. | |
| int | getIndexBase (const VisualFeature f, const VisualFeatureType t, int &siz) const |
| Get index of first Jet element for given feature & type. | |
| int | getNbIndexRanges (const VisualFeature f, const VisualFeatureType t) const |
| Get number of index ranges. | |
| bool | getIndexRange (const VisualFeature f, const VisualFeatureType t, const int idxnum, int &idxmin, int &idxmax) const |
| Get an index range; true if range exists in JetSpec. | |
| void | print () const |
| Debugging printout to stdout. | |
Jet data access methods | |
| int | getIndex (const VisualFeature f, const VisualFeatureType t,...) const |
| Get index in Jet array data for given feature, type and set of indices. | |
| int | getIndexA (const VisualFeature f, const VisualFeatureType t, va_list &a) const |
| getIndex() with va_list parameters | |
| int | getIndexV (const VisualFeature f, const VisualFeatureType t, const std::vector< int > &v) const |
| getIndex() with vector of parameters | |
Classes | |
| struct | JFT |
| Chained list element that holds index range defs for given feature type. | |
| struct | JF |
| chained list element that holds JTF definitions for given feature | |
|
|
Empty constructor; starts with an empty specification.
Definition at line 47 of file Jet.C. References freeMem(). |
|
|
Copy constructor.
Definition at line 51 of file Jet.C. References freeMem(). |
|
|
Destructor.
Definition at line 95 of file Jet.C. References freeMem(). |
|
|
Add a new feature; returns true on success.
Definition at line 99 of file Jet.C. References featureName(), and LERROR. Referenced by addFeatureType(), addIndexRange(), and operator=(). |
|
||||||||||||
|
Add a new representation type for an existing feature; true on success.
Definition at line 116 of file Jet.C. References addFeature(), featureName(), featureTypeName(), hasFeature(), hasFeatureType(), and LERROR. Referenced by addIndexRange(), and operator=(). |
|
||||||||||||||||||||
|
Add a new index range for existing feature and type; true on success. Valid indices will be in [indexmin..indexmax] inclusive on both sides. Definition at line 155 of file Jet.C. References addFeature(), addFeatureType(), hasFeature(), hasFeatureType(), and n. Referenced by BeobotVisualCortex::init(), main(), and operator=(). |
|
|
Free all allocated memory and un-initialize.
Definition at line 77 of file Jet.C. References NBVISUALFEATURES, NBVISUALFEATURETYPES, and t. Referenced by JetSpec(), operator=(), and ~JetSpec(). |
|
||||||||||||||||
|
Get index in Jet array data for given feature, type and set of indices. The ... arguments should be as many ints as we have have addIndexRange()'d when building the JetSpec, and their values should be within the ranges specified at the time of addIndexRange(). Returns -1 if feature or type unknown or if any of the indices is out of range. Definition at line 346 of file Jet.H. References getIndexA(). |
|
||||||||||||||||
|
getIndex() with va_list parameters
Definition at line 354 of file Jet.H. References featureName(), featureTypeName(), i, Dlist::index(), and LERROR. Referenced by getIndex(). |
|
||||||||||||||||
|
Get index of first Jet element for given feature & type. Also returns the total size allocated in the Jet for this feature and type Definition at line 316 of file Jet.H. References ASSERT. |
|
||||||||||||||||||||||||
|
Get an index range; true if range exists in JetSpec.
|
|
||||||||||||||||
|
getIndex() with vector of parameters
Definition at line 381 of file Jet.H. References featureName(), featureTypeName(), i, Dlist::index(), and LERROR. |
|
|
Get the number of components in a jet with our specs.
|
|
||||||||||||
|
Get number of index ranges.
Definition at line 325 of file Jet.H. References ASSERT. |
|
|
Query whether we have some representation for given feature.
Definition at line 303 of file Jet.H. Referenced by addFeatureType(), and addIndexRange(). |
|
||||||||||||
|
Query whether we have some representation for given feature/type.
Definition at line 311 of file Jet.H. Referenced by addFeatureType(), and addIndexRange(). |
|
|
Assignment operator.
Definition at line 55 of file Jet.C. References addFeature(), addFeatureType(), addIndexRange(), freeMem(), i, LFATAL, and spec. |
|
|
Debugging printout to stdout.
Definition at line 182 of file Jet.C. References featureName(), featureTypeName(), and i. Referenced by BeobotVisualCortex::init(). |
1.4.4