ReplicaNet and RNLobby  1
Public Member Functions | List of all members
RegistryManager< T > Class Template Reference

#include <RegistryManager.h>

Public Member Functions

 RegistryManager ()
 
virtual ~RegistryManager ()
 
void AddItem (T *item)
 
void RemoveItem (T *item)
 
void RemoveItem (void)
 
void BeginIterate (void)
 
T * Iterate (void)
 
bool IsEmpty (void) const
 

Detailed Description

template<class T>
class RNReplicaNet::RegistryManager< T >

RegistryManager is a template class for handling classes in organised vector arrays

Constructor & Destructor Documentation

RegistryManager ( )
inline

The ctor performs some basic initialisation

virtual ~RegistryManager ( )
inlinevirtual

The dtor makes sure everything is tidy

Member Function Documentation

void AddItem ( T *  item)
inline

Adds an item to the vector. This does not allocate an item as this is left to the user to do

Parameters
itemthe item pointer to add
void BeginIterate ( void  )
inline

Starts the iteration of the items in the list

T* Iterate ( void  )
inline

Iterates through the items in the list

Returns
returns the next item pointer in the vector or returns NULL for the end of the list
void RemoveItem ( T *  item)
inline

Removes an item from the vector but does not free the item as this is left to the user to do

Parameters
itemthe item pointer to remove
void RemoveItem ( void  )
inline

Removes the current iterated item