MoSync 3.3
collection_common.h File Reference

Compare() and Pair for MAUtil. More...

Classes

struct  MAUtil::Pair< F, S >
 Template storage for a pair of objects. More...

Namespaces

namespace  MAUtil
 

MoSync utility libraries.


Defines

#define NULL   0
#define OFFSETOF(struct, member)   ((int)(((char*)&(((struct*)1)->member)) - 1))

Functions

template<class T >
int MAUtil::Compare (const T &a, const T &b)
 Template comparator function. Returns -1 if a < b, 0 if a == b and 1 if a > b.

Detailed Description

Compare() and Pair for MAUtil.


Define Documentation

#define NULL   0

Referenced by MAUtil::List< Type >::addFirst(), MAUtil::List< Type >::addLast(), NativeUI::addListenerToVector(), MAPUtil::Queue< T >::dequeue(), MAUtil::Dictionary< Key, Storage >::end(), MAUtil::HashDict< Key, Storage >::end(), MAUtil::HashDict< Key, Storage >::erase(), MAUtil::Dictionary< Key, Storage >::erase(), MAPUtil::Queue< T >::find(), MAUtil::HashDict< Key, Storage >::HashDict(), MAUtil::List< Type >::ListIterator::hasNext(), MAUtil::List< Type >::ConstListIterator::hasNext(), MAUtil::List< Type >::ListIterator::hasPrev(), MAUtil::List< Type >::ConstListIterator::hasPrev(), MAUtil::Dictionary< Key, Storage >::insert(), MAUtil::HashDict< Key, Storage >::insert(), MAUtil::List< Type >::insert(), nextFrame(), MAUtil::Dictionary< Key, Storage >::Iterator::operator*(), MAUtil::HashDict< Key, Storage >::Iterator::operator*(), MAUtil::HashDict< Key, Storage >::ConstIterator::operator*(), MAUtil::Dictionary< Key, Storage >::ConstIterator::operator*(), MAUtil::Dictionary< Key, Storage >::Iterator::operator++(), MAUtil::Dictionary< Key, Storage >::ConstIterator::operator++(), MAUtil::Dictionary< Key, Storage >::Iterator::operator--(), MAUtil::Dictionary< Key, Storage >::ConstIterator::operator--(), MAUtil::Dictionary< Key, Storage >::Iterator::operator->(), MAUtil::HashDict< Key, Storage >::Iterator::operator->(), MAUtil::HashDict< Key, Storage >::ConstIterator::operator->(), MAUtil::Dictionary< Key, Storage >::ConstIterator::operator->(), MAUtil::HashDict< Key, Storage >::operator=(), MAUtil::Map< MAHandle, Purchase * >::operator[](), MAUtil::HashMap< Key, Value >::operator[](), MAPUtil::Queue< T >::peek(), MAPUtil::Queue< T >::Queue(), MAUtil::List< Type >::remove(), NativeUI::removeListenerFromVector(), and Testify::TestHook::TestHook().

#define OFFSETOF (   struct,
  member 
)    ((int)(((char*)&(((struct*)1)->member)) - 1))
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines