libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::c_single_allocator Class Reference

#include <decoder_allocators.hpp>

Inheritance diagram for zmq::c_single_allocator:
Collaboration diagram for zmq::c_single_allocator:

Public Member Functions

 c_single_allocator (std::size_t bufsize_)
 
 ~c_single_allocator ()
 
unsigned char * allocate ()
 
void deallocate ()
 
void resize (std::size_t new_size)
 
std::size_t size () const
 

Private Member Functions

 c_single_allocator (c_single_allocator const &)
 
c_single_allocatoroperator= (c_single_allocator const &)
 

Private Attributes

unsigned char * buf
 
std::size_t bufsize
 

Detailed Description

Definition at line 43 of file decoder_allocators.hpp.

Constructor & Destructor Documentation

zmq::c_single_allocator::c_single_allocator ( std::size_t  bufsize_)
inlineexplicit

Definition at line 46 of file decoder_allocators.hpp.

References alloc_assert, and buf.

zmq::c_single_allocator::~c_single_allocator ( )
inline

Definition at line 53 of file decoder_allocators.hpp.

References buf.

zmq::c_single_allocator::c_single_allocator ( c_single_allocator const &  )
private

Member Function Documentation

unsigned char* zmq::c_single_allocator::allocate ( )
inline

Definition at line 58 of file decoder_allocators.hpp.

References buf.

void zmq::c_single_allocator::deallocate ( )
inline

Definition at line 63 of file decoder_allocators.hpp.

c_single_allocator& zmq::c_single_allocator::operator= ( c_single_allocator const &  )
private
void zmq::c_single_allocator::resize ( std::size_t  new_size)
inline

Definition at line 72 of file decoder_allocators.hpp.

References bufsize.

std::size_t zmq::c_single_allocator::size ( ) const
inline

Definition at line 67 of file decoder_allocators.hpp.

References bufsize.

Member Data Documentation

unsigned char* zmq::c_single_allocator::buf
private
std::size_t zmq::c_single_allocator::bufsize
private