Leap Motion C++ API Reference  0.8.0
Leap::GestureList Class Reference

The GestureList class represents a list of Gesture objects. More...

Inherits Leap::Interface.

Public Types

typedef ConstListIterator
< GestureList, Gesture
const_iterator
 A C++ iterator type for GestureList objects.
 

Public Member Functions

GestureListappend (const GestureList &other)
 Appends the members of the specified GestureList to this GestureList.
 
const_iterator begin () const
 The C++ iterator set to the beginning of this GestureList.
 
int count () const
 The length of this list.
 
bool empty () const
 Deprecated.
 
const_iterator end () const
 The C++ iterator set to the end of this GestureList.
 
 GestureList ()
 Constructs an empty gesture list.
 
bool isEmpty () const
 Reports whether the list is empty.
 
Gesture operator[] (int index) const
 Access a list member by its position in the list.
 

Detailed Description

The GestureList class represents a list of Gesture objects.

Get a GestureList object from a Frame object.

Member Typedef Documentation

A C++ iterator type for GestureList objects.

Constructor & Destructor Documentation

Leap::GestureList::GestureList ( )

Constructs an empty gesture list.

Member Function Documentation

GestureList& Leap::GestureList::append ( const GestureList other)

Appends the members of the specified GestureList to this GestureList.

Parameters
otherA GestureList object containing Gesture objects to append to the end of this GestureList.
const_iterator Leap::GestureList::begin ( ) const

The C++ iterator set to the beginning of this GestureList.

int Leap::GestureList::count ( ) const

The length of this list.

Returns
The number of gestures in this list.
bool Leap::GestureList::empty ( ) const

Deprecated.

Use GestureList::isEmpty() instead.

See Also
GestureList::isEmpty()
const_iterator Leap::GestureList::end ( ) const

The C++ iterator set to the end of this GestureList.

bool Leap::GestureList::isEmpty ( ) const

Reports whether the list is empty.

Returns
True, if the list has no members.
Gesture Leap::GestureList::operator[] ( int  index) const

Access a list member by its position in the list.

Parameters
indexThe zero-based list position index.
Returns
The Gesture object at the specified index.