NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::Blob Class Reference

Class representing a general-use binary blob. More...

#include <blob.h>

Inheritance diagram for ns3::ndn::Blob:

Public Types

typedef std::vector< char > base
typedef base::value_type value_type
typedef base::pointer pointer
typedef base::const_pointer const_pointer
typedef base::reference reference
typedef base::const_reference const_reference
typedef base::iterator iterator
typedef base::const_iterator const_iterator
typedef base::reverse_iterator reverse_iterator
typedef base::size_type size_type
typedef base::difference_type difference_type
typedef base::allocator_type allocator_type

Public Member Functions

 Blob ()
 Creates an empty blob.
 Blob (const std::string &data)
 Blob (const void *buf, size_t length)
char * buf ()
 Get pointer to the first byte of the binary blob.
const char * buf () const
 Get const pointer to the first byte of the binary blob.
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
size_t size () const
void swap (Blob &x)
void push_back (value_type val)
bool empty () const
Bloboperator= (const Blob &other)
reference operator[] (size_type pos)
const_reference operator[] (size_type pos) const
char getItem (size_type pos) const
void clear ()


bool operator== (const Blob &a, const Blob &b)
bool operator< (const Blob &a, const Blob &b)
bool operator<= (const Blob &a, const Blob &b)
bool operator> (const Blob &a, const Blob &b)
bool operator>= (const Blob &a, const Blob &b)

Detailed Description

Class representing a general-use binary blob.

Definition at line 26 of file blob.h.

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