FSortablePtr< I > Class Template Reference
[FUnknown/FObject Containers]

Extends IPtr to allow sorted containers. More...

#include <fcontainer.h>

Public Member Functions

 FSortablePtr (I *_ptr, bool addRef=true)
 FSortablePtr (const FSortablePtr &p)
 FSortablePtr ()
template<class T2 >
 FSortablePtr (const T2 &t2)
bool operator== (const FSortablePtr< I > &other) const
bool operator!= (const FSortablePtr< I > &other) const
bool operator> (const FSortablePtr< I > &other) const
bool operator< (const FSortablePtr< I > &other) const
bool operator<= (const FSortablePtr< I > &other) const
bool operator>= (const FSortablePtr< I > &other) const

Detailed Description

template<class I>
class Steinberg::FSortablePtr< I >

Extends IPtr to allow sorted containers.

When an implementation of FObject defines comparison operators and a sorting container like TOrderedArray is used to store objects sorted, FSortablePtr can be used instead of IPtr.

Example:

TOrderedArray <FSortablePtr <StringObject> > strings;
StringObject* test = new StringObject ("test");
strings.add (test);
test->release ();

Constructor & Destructor Documentation

FSortablePtr ( I *  _ptr,
bool  addRef = true 
) [inline]
FSortablePtr ( const FSortablePtr< I > &  p  )  [inline]
FSortablePtr (  )  [inline]
FSortablePtr ( const T2 &  t2  )  [inline]

Member Function Documentation

bool operator== ( const FSortablePtr< I > &  other  )  const [inline]
bool operator!= ( const FSortablePtr< I > &  other  )  const [inline]
bool operator> ( const FSortablePtr< I > &  other  )  const [inline]
bool operator< ( const FSortablePtr< I > &  other  )  const [inline]
bool operator<= ( const FSortablePtr< I > &  other  )  const [inline]
bool operator>= ( const FSortablePtr< I > &  other  )  const [inline]
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.