INET Framework for OMNeT++/OMNEST
LSPRecord Struct Reference

#include <ISIStypes.h>

List of all members.

Public Member Functions

 ~LSPRecord ()
bool operator< (const LSPRecord &lspRec2) const

Public Attributes

ISISLSPPacketLSP
ISISTimerdeadTimer
std::vector< bool > SRMflags
std::vector< bool > SSNflags
double simLifetime

Detailed Description

Definition at line 155 of file ISIStypes.h.


Constructor & Destructor Documentation

LSPRecord::~LSPRecord ( ) [inline]

Definition at line 173 of file ISIStypes.h.

                    {

/*            for (unsigned int i = 0; i < this->LSP->getTLVArraySize(); i++)
            {
                if(this->LSP->getTLV(i).value != NULL){
                    delete this->LSP->getTLV(i).value;
                }
            }*/
            this->LSP->setTLVArraySize(0);
            if(this->LSP != NULL){
                delete this->LSP;
            }
//            if(this->deadTimer != NULL){
//                drop(this->deadTimer);
//                delete this->deadTimer;
//            }
            this->SRMflags.clear();
            this->SSNflags.clear();
        }

Member Function Documentation

bool LSPRecord::operator< ( const LSPRecord lspRec2) const [inline]

Definition at line 194 of file ISIStypes.h.

                                                        {

             for (unsigned int i = 0; i < ISIS_SYSTEM_ID + 2; i++){
                 if(this->LSP->getLspID(i) < lspRec2.LSP->getLspID(i)){
                     return true; //first is smaller, so return true
                 }else if(this->LSP->getLspID(i) > lspRec2.LSP->getLspID(i)){
                     return false; //first is bigger, so return false
                 }
                 //if it's equal then continue to next one
             }

             //if they're equal, return false
             return false;
         }

Member Data Documentation

specify deadTi

Definition at line 161 of file ISIStypes.h.

Referenced by ISIS::installLSP(), ISIS::purgeLSP(), ISIS::replaceLSP(), and ISIS::sendLSP().


The documentation for this struct was generated from the following file: