$extrastylesheet
JsonCpp project page Classes Namespace JsonCpp home page

Classes | Public Member Functions
Json::SecureAllocator< T > Class Template Reference

#include <json/allocator.h>

List of all members.

Classes

struct  rebind

Public Member Functions

pointer allocate (size_type n)
 Allocate memory for N items using the standard allocator.
void deallocate (volatile pointer p, size_type n)
 Release memory which was allocated for N items at pointer P.
template<typename... Args>
void construct (pointer p, Args &&...args)
 Construct an item in-place at pointer P.
size_type max_size () const
pointer address (reference x) const
const_pointer address (const_reference x) const
void destroy (pointer p)
 Destroy an item in-place at pointer P.
 SecureAllocator ()
template<typename U >
 SecureAllocator (const SecureAllocator< U > &)

Detailed Description

template<typename T>
class Json::SecureAllocator< T >

Definition at line 16 of file allocator.h.


Constructor & Destructor Documentation

template<typename T >
Json::SecureAllocator< T >::SecureAllocator ( ) [inline]

Definition at line 78 of file allocator.h.

template<typename T >
template<typename U >
Json::SecureAllocator< T >::SecureAllocator ( const SecureAllocator< U > &  ) [inline]

Definition at line 79 of file allocator.h.


Member Function Documentation

template<typename T >
pointer Json::SecureAllocator< T >::address ( reference  x) const [inline]

Definition at line 61 of file allocator.h.

template<typename T >
const_pointer Json::SecureAllocator< T >::address ( const_reference  x) const [inline]

Definition at line 65 of file allocator.h.

template<typename T >
pointer Json::SecureAllocator< T >::allocate ( size_type  n) [inline]

Allocate memory for N items using the standard allocator.

Definition at line 30 of file allocator.h.

template<typename T >
template<typename... Args>
void Json::SecureAllocator< T >::construct ( pointer  p,
Args &&...  args 
) [inline]

Construct an item in-place at pointer P.

Definition at line 52 of file allocator.h.

template<typename T >
void Json::SecureAllocator< T >::deallocate ( volatile pointer  p,
size_type  n 
) [inline]

Release memory which was allocated for N items at pointer P.

The memory block is filled with zeroes before being released. The pointer argument is tagged as "volatile" to prevent the compiler optimizing out this critical step.

Definition at line 42 of file allocator.h.

template<typename T >
void Json::SecureAllocator< T >::destroy ( pointer  p) [inline]

Destroy an item in-place at pointer P.

Definition at line 72 of file allocator.h.

template<typename T >
size_type Json::SecureAllocator< T >::max_size ( ) const [inline]

Definition at line 57 of file allocator.h.


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