CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Buffer< T, A > Class Template Reference

#include <buffer.h>

Public Types

typedef A::pointer pointer_t
 

Public Member Functions

 Buffer ()
 
 Buffer (const size_t size)
 
virtual ~Buffer ()
 
void Allocate (const size_t size)
 
bool IsInitialized () const
 
A::pointer ptr ()
 
const A::pointer ptr () const
 
A::pointer free_space_ptr ()
 
const A::pointer free_space_ptr () const
 
void SetUsed (const size_t items)
 
void SetUsedBytes (const size_t bytes)
 
size_t size () const
 
size_t size_bytes () const
 
size_t used () const
 
size_t used_bytes () const
 
size_t free () const
 
size_t free_bytes () const
 

Private Member Functions

 Buffer (const Buffer &other)
 
Bufferoperator= (const Buffer &other)
 
void Deallocate ()
 

Private Attributes

allocator_
 
size_t used_
 
size_t size_
 
A::pointer buffer_
 
bool initialized_
 

Detailed Description

template<typename T, class A = std::allocator<T>>
class Buffer< T, A >

This file is part of the CernVM File System.

Definition at line 19 of file buffer.h.

Member Typedef Documentation

template<typename T , class A = std::allocator<T>>
typedef A::pointer Buffer< T, A >::pointer_t

Definition at line 21 of file buffer.h.

Constructor & Destructor Documentation

template<typename T , class A = std::allocator<T>>
Buffer< T, A >::Buffer ( )
inline

Definition at line 23 of file buffer.h.

template<typename T , class A = std::allocator<T>>
Buffer< T, A >::Buffer ( const size_t  size)
inlineexplicit

Definition at line 25 of file buffer.h.

template<typename T , class A = std::allocator<T>>
virtual Buffer< T, A >::~Buffer ( )
inlinevirtual

Definition at line 34 of file buffer.h.

template<typename T , class A = std::allocator<T>>
Buffer< T, A >::Buffer ( const Buffer< T, A > &  other)
inlineprivate

Definition at line 85 of file buffer.h.

Here is the call graph for this function:

Member Function Documentation

template<typename T , class A = std::allocator<T>>
void Buffer< T, A >::Allocate ( const size_t  size)
inline

Definition at line 38 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
void Buffer< T, A >::Deallocate ( )
inlineprivate

Definition at line 88 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::free ( ) const
inline

Definition at line 81 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::free_bytes ( ) const
inline

Definition at line 82 of file buffer.h.

template<typename T , class A = std::allocator<T>>
A::pointer Buffer< T, A >::free_space_ptr ( )
inline

Definition at line 56 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
const A::pointer Buffer< T, A >::free_space_ptr ( ) const
inline

Definition at line 61 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
bool Buffer< T, A >::IsInitialized ( ) const
inline

Definition at line 45 of file buffer.h.

template<typename T , class A = std::allocator<T>>
Buffer& Buffer< T, A >::operator= ( const Buffer< T, A > &  other)
inlineprivate

Definition at line 86 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
A::pointer Buffer< T, A >::ptr ( )
inline

Definition at line 47 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
const A::pointer Buffer< T, A >::ptr ( ) const
inline

Definition at line 51 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
void Buffer< T, A >::SetUsed ( const size_t  items)
inline

Definition at line 66 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
void Buffer< T, A >::SetUsedBytes ( const size_t  bytes)
inline

Definition at line 71 of file buffer.h.

Here is the call graph for this function:

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::size ( ) const
inline

Definition at line 77 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::size_bytes ( ) const
inline

Definition at line 78 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::used ( ) const
inline

Definition at line 79 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::used_bytes ( ) const
inline

Definition at line 80 of file buffer.h.

Member Data Documentation

template<typename T , class A = std::allocator<T>>
A Buffer< T, A >::allocator_
private

Definition at line 100 of file buffer.h.

template<typename T , class A = std::allocator<T>>
A::pointer Buffer< T, A >::buffer_
private

Definition at line 103 of file buffer.h.

template<typename T , class A = std::allocator<T>>
bool Buffer< T, A >::initialized_
private

Definition at line 104 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::size_
private

Definition at line 102 of file buffer.h.

template<typename T , class A = std::allocator<T>>
size_t Buffer< T, A >::used_
private

Definition at line 101 of file buffer.h.


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