# Class: VectorShort

## VectorShort

#### new VectorShort()

  Custom container class for numbers.
  Sample usage:

      function onTrack()
      {
          //Call track on a frame
          trackerReturnState = m_Tracker.track(
             mWidth, mHeight, ppixels, faceDataArray,
             VisageModule.VisageTrackerImageFormat.VISAGE_FRAMEGRABBER_FMT_RGBA.value,
             VisageModule.VisageTrackerOrigin.VISAGE_FRAMEGRABBER_ORIGIN_TL.value);
          //Test result
          if (trackerReturnState.get(0)===VisageModule.VisageTrackerStatus.TRACK_STAT_OK.value)
          {
              // construct a VectorShort object to pass to the extractDescriptor method
              var descriptor = new VisageModule.VectorShort();
              //
              // call extractDescriptor and pass the faceData input parameter, image data and information and a short vector to be populated
              var success = m_rec.extractDescriptor(faceDataArray.get(0), mWidth, mHeight, ppixels, descriptor);
              if (success)
              {
                  var first = descriptor.get(0);
              }
              // when done using descriptor clear memory
              descriptor.delete();
          }
      }

### Methods

#### push_back(number)

  Add number to vector.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `number` | number | number to be added.

#### get(index) → {number}

  Get number from the vector specified by index parameter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `index` | number | position of the number in the vector.

  ##### Returns:

  number located on the location specified by index parameter
  Type
    number

#### delete()

  Release the memory allocated to the VectorShort object.