HandleManager< T > Class Template Reference

#include <opcuatypesinternal.h>

List of all members.


Public Member Functions

 HandleManager ()
virtual ~HandleManager ()
void clearList ()
void prepareAdd (OpcUa_UInt32 addCount)
OpcUa_UInt32 add (T *pItem)
OpcUa_Boolean remove (OpcUa_UInt32 index)
T * get (OpcUa_UInt32 index)
OpcUa_UInt32 itemCount ()
OpcUa_UInt32 maxIndex ()

Protected Member Functions

void resize (OpcUa_UInt32 length)

Detailed Description

template<class T>
class HandleManager< T >

HandleManager

Constructor & Destructor Documentation

template<class T>
HandleManager< T >::HandleManager (  )  [inline]

construction with Variable initialization.

template<class T>
virtual HandleManager< T >::~HandleManager (  )  [inline, virtual]

destruction


Member Function Documentation

template<class T>
void HandleManager< T >::clearList (  )  [inline]

Clears the formally created list.

template<class T>
void HandleManager< T >::prepareAdd ( OpcUa_UInt32  addCount  )  [inline]

Prepares an array to add more items. First of all the actual size will be calculated and after that the existing array will be expanded.

Parameters:
addCount the size for expanding the array.

template<class T>
OpcUa_UInt32 HandleManager< T >::add ( T *  pItem  )  [inline]

Addes a new item to the array.

Parameters:
pItem the item to add.
Returns:
the index where the new item is stored.

template<class T>
OpcUa_Boolean HandleManager< T >::remove ( OpcUa_UInt32  index  )  [inline]

Removes all items with the specified index and returns a boolean value.

Parameters:
index the specified index where to remove an item.
Returns:
the value if the item to be removed is found or not.

template<class T>
T* HandleManager< T >::get ( OpcUa_UInt32  index  )  [inline]

Get the specified item with the given index.

Parameters:
index the specified index where to get the item.
Returns:
the specified item.

template<class T>
OpcUa_UInt32 HandleManager< T >::itemCount (  )  [inline]

Counts all available items.

Returns:
the counted number of items.

template<class T>
OpcUa_UInt32 HandleManager< T >::maxIndex (  )  [inline]

Get the maximum Index.

Returns:
the maximum index number.

template<class T>
void HandleManager< T >::resize ( OpcUa_UInt32  length  )  [inline, protected]

Resizes the length of the array.

Parameters:
length the value of length for the resize.


The documentation for this class was generated from the following file:
  • src/uaserver/uaservercpp/coremodule/opcuatypesinternal.h