src/common/buffer.cc File Reference

#include "buffer.h"
#include <stdint.h>
#include <vector>
#include "ns3/assert.h"
#include <string.h>
#include "ns3/log.h"
#include <iostream>
#include "ns3/test.h"
#include "ns3/random-variable.h"
#include <iomanip>
Include dependency graph for buffer.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ns3::BufferData
class  ns3::BufferDataList
class  ns3::BufferTest

Namespaces

namespace  ns3
 

Every class exported by the ns3 library is enclosed in the ns3 namespace.


Defines

#define LOG_INTERNAL_STATE(y)
#define HEURISTICS(x)   x
#define ENSURE_WRITTEN_BYTES(buffer, n,...)

Functions

 NS_LOG_COMPONENT_DEFINE ("Buffer")
static struct BufferData * ns3::BufferAllocate (uint32_t reqSize)
static void ns3::BufferDeallocate (struct BufferData *data)

Variables

static uint32_t ns3::g_recommendedStart = 0
static uint64_t ns3::g_nAddNoRealloc = 0
static uint64_t ns3::g_nAddRealloc = 0
static BufferDataList ns3::g_freeList
static uint32_t ns3::g_maxSize = 0
static uint64_t ns3::g_nAllocs = 0
static uint64_t ns3::g_nCreates = 0
static BufferTest ns3::gBufferTest

Define Documentation

#define ENSURE_WRITTEN_BYTES ( buffer,
n,
...   ) 
Value:
{                                              \
  uint8_t bytes[] = {__VA_ARGS__};             \
  if (!EnsureWrittenBytes (buffer, n , bytes)) \
    {                                          \
      result = false;                          \
    }                                          \
  }

Definition at line 1201 of file buffer.cc.

Referenced by ns3::BufferTest::RunTests().

#define HEURISTICS (  )     x
#define LOG_INTERNAL_STATE (  ) 
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)

Definition at line 27 of file buffer.cc.

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


Function Documentation

NS_LOG_COMPONENT_DEFINE ( "Buffer"   ) 
Generated on Thu Dec 3 14:06:02 2009 for NS-3 by  doxygen 1.6.3