OMNeT++ Simulation Library  5.6.1
Container Classes

Description

OMNeT++ provides container classes that are aware of the simulation kernel's ownership mechanism, and also make contents inspectable in runtime GUIs like Qtenv or Tkenv.

In addition, one can also use standard C++ container classes like std::vector or std::map. Note that these containers will not show up in Tkenv or Qtenv inspectors unless you use the WATCH_VECTOR(), WATCH_MAP() macros.

Classes

class  cArray
 Vector-like container for objects derived from cObject. More...
 
class  cPacketQueue
 A queue class specialized for cPacket objects. More...
 
class  cQueue
 Queue class for objects derived from cObject. More...
 

Typedefs

typedef int(* CompareFunc) (cObject *a, cObject *b)
 Function for comparing two cObjects, used by cQueue for priority queuing. More...
 

Typedef Documentation

◆ CompareFunc

typedef int(* CompareFunc) (cObject *a, cObject *b)

Function for comparing two cObjects, used by cQueue for priority queuing.

The return value should be:

  • less than zero if a < b
  • greater than zero if a > b
  • zero if a == b