RINASim  October 2016
Documentation of framework for OMNeT++
DAP Class Reference

Distributed Application Process name a.k.a. DAP class. More...

#include <DAP.h>

Public Member Functions

 DAP ()
 Constructor creating unspecified DAP. More...
 
 DAP (std::string nam)
 Constructor creating DAP of given name. More...
 
virtual ~DAP ()
 Destructor assigning empty string to name. More...
 
bool operator== (const DAP &other) const
 Equal operator overloading. More...
 
std::string info () const
 Info text output suitable for << string streams and WATCH. More...
 
const std::string & getName () const
 Gets DAP string name representation. More...
 
void setName (const std::string &name)
 Sets DAP string representation to a new value. More...
 

Protected Attributes

std::string name
 Attribute holding DAP name DAP is basically wrapper around string. More...
 

Detailed Description

Distributed Application Process name a.k.a. DAP class.

Authors
Vladimir Vesely (ivese.nosp@m.ly@f.nosp@m.it.vu.nosp@m.tbr..nosp@m.cz)
Date
Last refactorized and documented on 2014-10-28

Definition at line 34 of file DAP.h.

Constructor & Destructor Documentation

DAP::DAP ( )

Constructor creating unspecified DAP.

Definition at line 25 of file DAP.cc.

DAP::DAP ( std::string  nam)

Constructor creating DAP of given name.

Parameters
namRepresents DAP string name

Definition at line 29 of file DAP.cc.

DAP::~DAP ( )
virtual

Destructor assigning empty string to name.

Definition at line 34 of file DAP.cc.

Member Function Documentation

const std::string & DAP::getName ( ) const

Gets DAP string name representation.

Returns
DAP string

Definition at line 49 of file DAP.cc.

Referenced by DA::getDifMember(), IntPDUFG::getNextNeighbor(), info(), Address::info(), DA::isDifLocal(), Address::isUnspecified(), Address::operator<(), and operator==().

std::string DAP::info ( ) const

Info text output suitable for << string streams and WATCH.

Returns
DAP string name

Definition at line 43 of file DAP.cc.

Referenced by operator<<().

bool DAP::operator== ( const DAP other) const

Equal operator overloading.

Parameters
otherDAP for comparison
Returns
True if DAPs string names are equal, otherwise returns false.

Definition at line 39 of file DAP.cc.

void DAP::setName ( const std::string &  name)

Sets DAP string representation to a new value.

Parameters
nameA new DAP string value

Definition at line 54 of file DAP.cc.

Member Data Documentation

std::string DAP::name
protected

Attribute holding DAP name DAP is basically wrapper around string.

Definition at line 82 of file DAP.h.

Referenced by getName(), operator==(), setName(), and ~DAP().


The documentation for this class was generated from the following files: