A Discrete-Event Network Simulator
API
buffer.cc File Reference
#include "buffer.h"
#include "ns3/assert.h"
#include "ns3/log.h"
+ Include dependency graph for buffer.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{buffer.cc}::Zeroes
 Zero-filled buffer. More...
 

Namespaces

 anonymous_namespace{buffer.cc}
 
 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define DESTROYED   ((Buffer::FreeList*)MAGIC_DESTROYED)
 
#define IS_DESTROYED(x)   (x == (Buffer::FreeList*)MAGIC_DESTROYED)
 
#define IS_INITIALIZED(x)   (!IS_UNINITIALIZED (x) && !IS_DESTROYED (x))
 
#define IS_UNINITIALIZED(x)   (x == (Buffer::FreeList*)0)
 
#define LOG_INTERNAL_STATE(y)
 
#define MAGIC_DESTROYED   (~(long) 0)
 
#define UNINITIALIZED   ((Buffer::FreeList*)0)
 

Variables

static struct anonymous_namespace{buffer.cc}::Zeroes anonymous_namespace{buffer.cc}::g_zeroes
 Zero-filled buffer. More...
 

Macro Definition Documentation

◆ DESTROYED

#define DESTROYED   ((Buffer::FreeList*)MAGIC_DESTROYED)

Definition at line 76 of file buffer.cc.

◆ IS_DESTROYED

#define IS_DESTROYED (   x)    (x == (Buffer::FreeList*)MAGIC_DESTROYED)

Definition at line 74 of file buffer.cc.

◆ IS_INITIALIZED

#define IS_INITIALIZED (   x)    (!IS_UNINITIALIZED (x) && !IS_DESTROYED (x))

Definition at line 75 of file buffer.cc.

◆ IS_UNINITIALIZED

#define IS_UNINITIALIZED (   x)    (x == (Buffer::FreeList*)0)

Definition at line 73 of file buffer.cc.

◆ LOG_INTERNAL_STATE

#define LOG_INTERNAL_STATE (   y)
Value:
NS_LOG_LOGIC (y << "start="<<m_start<<", end="<<m_end<<", zero start="<<m_zeroAreaStart<< \
", zero end="<<m_zeroAreaEnd<<", count="<<m_data->m_count<<", size="<<m_data->m_size<< \
", dirty start="<<m_data->m_dirtyStart<<", dirty end="<<m_data->m_dirtyEnd)
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:289

Definition at line 24 of file buffer.cc.

◆ MAGIC_DESTROYED

#define MAGIC_DESTROYED   (~(long) 0)

Definition at line 72 of file buffer.cc.

◆ UNINITIALIZED

#define UNINITIALIZED   ((Buffer::FreeList*)0)

Definition at line 77 of file buffer.cc.