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

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

Definition at line 74 of file buffer.cc.

Referenced by ns3::Buffer::Recycle().

#define IS_INITIALIZED (   x)    (!IS_UNINITIALIZED (x) && !IS_DESTROYED (x))
#define IS_UNINITIALIZED (   x)    (x == (Buffer::FreeList*)0)

Definition at line 73 of file buffer.cc.

Referenced by ns3::Buffer::Create(), and ns3::Buffer::Recycle().

#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:252

Definition at line 24 of file buffer.cc.

Referenced by ns3::Buffer::AddAtEnd(), ns3::Buffer::AddAtStart(), ns3::Buffer::CheckInternalState(), ns3::Buffer::RemoveAtEnd(), and ns3::Buffer::RemoveAtStart().

#define MAGIC_DESTROYED   (~(long) 0)

Definition at line 72 of file buffer.cc.

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

Definition at line 77 of file buffer.cc.