Base Module  VST 3.6.5
SDK for developing VST Plug-in
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
FSortablePtr< I > Class Template Reference

Extends IPtr to allow sorted containers. More...

#include <fcontainer.h>

+ Inheritance diagram for FSortablePtr< I >:

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
Empty

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