LLGestureList Class Reference

#include <llgesture.h>

Inheritance diagram for LLGestureList:

Inheritance graph
[legend]
Collaboration diagram for LLGestureList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLGestureList ()
virtual ~LLGestureList ()
BOOL trigger (KEY key, MASK mask)
BOOL triggerAndReviseString (const LLString &string, LLString *revised_string)
S32 count () const
virtual LLGestureget (S32 i) const
virtual void put (LLGesture *gesture)
void deleteAll ()
U8serialize (U8 *buffer) const
U8deserialize (U8 *buffer, S32 max_size)
S32 getMaxSerialSize ()

Protected Member Functions

virtual LLGesturecreate_gesture (U8 **buffer, S32 max_size)

Protected Attributes

LLDynamicArray< LLGesture * > mList

Static Protected Attributes

static const S32 SERIAL_HEADER_SIZE = sizeof(S32)

Detailed Description

Definition at line 86 of file llgesture.h.


Constructor & Destructor Documentation

LLGestureList::LLGestureList (  ) 

Definition at line 179 of file llgesture.cpp.

LLGestureList::~LLGestureList (  )  [virtual]

Definition at line 203 of file llgesture.cpp.

References deleteAll().


Member Function Documentation

S32 LLGestureList::count (  )  const [inline]

Definition at line 99 of file llgesture.h.

References LLDynamicArray< Type, BlockSize >::count(), and mList.

Referenced by deleteAll(), deserialize(), getMaxSerialSize(), LLViewerGestureList::matchPrefix(), and serialize().

LLGesture * LLGestureList::create_gesture ( U8 **  buffer,
S32  max_size 
) [protected, virtual]

Reimplemented in LLViewerGestureList.

Definition at line 371 of file llgesture.cpp.

Referenced by deserialize().

void LLGestureList::deleteAll (  ) 

Definition at line 209 of file llgesture.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count(), LLDynamicArray< Type, BlockSize >::get(), i, mList, LLDynamicArray< Type, BlockSize >::reset(), and S32.

Referenced by deserialize(), and ~LLGestureList().

U8 * LLGestureList::deserialize ( U8 buffer,
S32  max_size 
)

Definition at line 330 of file llgesture.cpp.

References count(), create_gesture(), deleteAll(), htonmemcpy(), i, llendl, llwarns, mList, MVT_S32, LLDynamicArray< Type, BlockSize >::reserve_block(), and S32.

Referenced by LLViewerGestureList::xferCallback().

virtual LLGesture* LLGestureList::get ( S32  i  )  const [inline, virtual]

Definition at line 100 of file llgesture.h.

References LLDynamicArray< Type, BlockSize >::get(), and mList.

Referenced by LLViewerGestureList::matchPrefix().

S32 LLGestureList::getMaxSerialSize (  ) 

Definition at line 376 of file llgesture.cpp.

References count(), LLGesture::getMaxSerialSize(), and SERIAL_HEADER_SIZE.

virtual void LLGestureList::put ( LLGesture gesture  )  [inline, virtual]

Definition at line 101 of file llgesture.h.

References mList, and LLDynamicArray< Type, BlockSize >::put().

U8 * LLGestureList::serialize ( U8 buffer  )  const

Definition at line 313 of file llgesture.cpp.

References LLDynamicArray< Type, BlockSize >::count(), count(), htonmemcpy(), i, mList, MVT_S32, and S32.

BOOL LLGestureList::trigger ( KEY  key,
MASK  mask 
)

Definition at line 292 of file llgesture.cpp.

References LLDynamicArray< Type, BlockSize >::count(), FALSE, LLDynamicArray< Type, BlockSize >::get(), i, llendl, llwarns, mList, S32, and TRUE.

Referenced by LLViewerWindow::handleKey(), and LLViewerGestureList::matchPrefix().

BOOL LLGestureList::triggerAndReviseString ( const LLString string,
LLString revised_string 
)

Definition at line 222 of file llgesture.cpp.

References LLDynamicArray< Type, BlockSize >::count(), FALSE, LLDynamicArray< Type, BlockSize >::get(), i, mList, NULL, S32, LLStringBase< char >::toLower(), and TRUE.


Member Data Documentation

LLDynamicArray<LLGesture*> LLGestureList::mList [protected]

Definition at line 114 of file llgesture.h.

Referenced by count(), deleteAll(), deserialize(), get(), put(), serialize(), trigger(), and triggerAndReviseString().

const S32 LLGestureList::SERIAL_HEADER_SIZE = sizeof(S32) [static, protected]

Definition at line 116 of file llgesture.h.

Referenced by getMaxSerialSize().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:23 2010 for Second Life Viewer by  doxygen 1.4.7