INET Framework for OMNeT++/OMNEST
inet::PIMBase::RouteEntry Struct Reference

#include <PIMBase.h>

Inheritance diagram for inet::PIMBase::RouteEntry:
inet::PIMDM::Route

Public Member Functions

 RouteEntry (PIMBase *owner, IPv4Address source, IPv4Address group)
 
virtual ~RouteEntry ()
 
bool isFlagSet (int flag) const
 
void setFlags (int flags)
 
void clearFlag (int flag)
 
void setFlag (int flag, bool value)
 

Public Attributes

PIMBaseowner
 
IPv4Address source
 
IPv4Address group
 
int flags
 
AssertMetric metric
 

Constructor & Destructor Documentation

inet::PIMBase::RouteEntry::RouteEntry ( PIMBase owner,
IPv4Address  source,
IPv4Address  group 
)
inline
71  : owner(owner), source(source), group(group), flags(0) {}
IPv4Address source
Definition: PIMBase.h:65
IPv4Address group
Definition: PIMBase.h:66
PIMBase * owner
Definition: PIMBase.h:64
int flags
Definition: PIMBase.h:67
virtual inet::PIMBase::RouteEntry::~RouteEntry ( )
inlinevirtual
72 {};

Member Function Documentation

void inet::PIMBase::RouteEntry::clearFlag ( int  flag)
inline
76 { flags &= (~flag); }
int flags
Definition: PIMBase.h:67
bool inet::PIMBase::RouteEntry::isFlagSet ( int  flag) const
inline
74 { return (flags & flag) != 0; }
int flags
Definition: PIMBase.h:67
void inet::PIMBase::RouteEntry::setFlag ( int  flag,
bool  value 
)
inline
77 { if (value) setFlags(flag); else clearFlag(flag); }
void clearFlag(int flag)
Definition: PIMBase.h:76
void setFlags(int flags)
Definition: PIMBase.h:75
void inet::PIMBase::RouteEntry::setFlags ( int  flags)
inline
75 { this->flags |= flags; }
int flags
Definition: PIMBase.h:67

Member Data Documentation

int inet::PIMBase::RouteEntry::flags

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