ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LsMessageCenter Class Reference

#include <ls.h>

List of all members.

Public Types

typedef LsMap< u_int32_t,

Public Member Functions

 LsMessageCenter ()
void setNodeNumber (int number_of_nodes)
LsMessagenewMessage (int senderNodeId, ls_message_type_t type)
u_int32_t duplicateMessage (u_int32_t msgId)
u_int32_t duplicateMessage (const LsMessage &msg)
bool deleteMessage (u_int32_t msgId)
bool deleteMessage (const LsMessage &msg)
LsMessageretrieveMessagePtr (u_int32_t msgId)

Static Public Member Functions

LsMessageCenter & instance ()

Private Types

typedef LsMap< u_int32_t,

Private Member Functions

void init ()
int isLSA (u_int32_t msgId)

Private Attributes

u_int32_t current_lsa_id
u_int32_t current_other_id
unsigned int max_size
message_storage lsa_messages
message_storage other_messages

Static Private Attributes

LsMessageCenter msgctr_

Member Typedef Documentation

typedef LsMap<u_int32_t, LsMessage> LsMessageCenter::baseMap

typedef LsMap<u_int32_t, LsMessage > LsMessageCenter::message_storage [private]

Constructor & Destructor Documentation

LsMessageCenter::LsMessageCenter   [inline]

Member Function Documentation

bool LsMessageCenter::deleteMessage const LsMessage   msg [inline]

bool LsMessageCenter::deleteMessage u_int32_t    msgId

u_int32_t LsMessageCenter::duplicateMessage const LsMessage   msg [inline]

u_int32_t LsMessageCenter::duplicateMessage u_int32_t    msgId [inline]

void LsMessageCenter::init   [private]

LsMessageCenter& LsMessageCenter::instance   [inline, static]

int LsMessageCenter::isLSA u_int32_t    msgId [inline, private]

LsMessage* LsMessageCenter::newMessage int    senderNodeId,
ls_message_type_t    type

LsMessage* LsMessageCenter::retrieveMessagePtr u_int32_t    msgId [inline]

void LsMessageCenter::setNodeNumber int    number_of_nodes [inline]

Member Data Documentation

u_int32_t LsMessageCenter::current_lsa_id [private]

u_int32_t LsMessageCenter::current_other_id [private]

message_storage LsMessageCenter::lsa_messages [private]

unsigned int LsMessageCenter::max_size [private]

LsMessageCenter LsMessageCenter::msgctr_ [static, private]

message_storage LsMessageCenter::other_messages [private]

The documentation for this class was generated from the following file:
This document is generated by doxygen.