Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

RNReplicaNet::s_RO_RegistryBlock Struct Reference

#include <RO_RegistryBlock.h>

List of all members.

Public Member Functions

 s_RO_RegistryBlock (int id, p_RO_Func *pfunc, p_RO_FuncDelete *pfunc_delete, const char *name=0)
int GetClassID (void)
ReplicaObjectCallBackAllocate (void)
void CallBackDelete (ReplicaObject *object)
const char * GetName (void) const


Detailed Description

This is a registry block used when class allocator functions are registered at startup


Constructor & Destructor Documentation

RNReplicaNet::s_RO_RegistryBlock::s_RO_RegistryBlock int  id,
p_RO_Func *  pfunc,
p_RO_FuncDelete *  pfunc_delete,
const char *  name = 0
 

This ctor fills in the parameters in the structure

Parameters:
id the class id to use for this block
pfunc the function pointer that can allocate this class id
pfunc_delete the function that can delete this class id
name the name of the class. The default value is null


Member Function Documentation

ReplicaObject* RNReplicaNet::s_RO_RegistryBlock::CallBackAllocate void   ) 
 

Calls the allocate function pointer registered for this block and returns the ReplicaObject pointer

Returns:
the replica object pointer

void RNReplicaNet::s_RO_RegistryBlock::CallBackDelete ReplicaObject object  ) 
 

Calls the delete function pointer registered for this block

Parameters:
object the replica object pointer to delete

int RNReplicaNet::s_RO_RegistryBlock::GetClassID void   ) 
 

Gets the class id from the structure

Returns:
the class id

const char* RNReplicaNet::s_RO_RegistryBlock::GetName void   )  const
 

Gets the class name if the preprocessor define REPLICANET_VISUALDEBUGGER is used. Otherwise the return value is null. If the class name is null then the ReplicaObject will not appear in the Visual Debugger output.

Returns:
The name


The documentation for this struct was generated from the following file:
Generated on Sun Oct 30 01:11:58 2005 for ReplicaNet by  doxygen 1.4.1