Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Types | Public Member Functions | Public Attributes | List of all members
qpid::InlineVector< T, Max, Alloc > Class Template Reference

A vector that stores up to Max elements in inline storage, otherwise uses normal vector allocation. More...

#include <qpid/InlineVector.h>

Public Types

typedef Base::allocator_type allocator_type
 
typedef Base::value_type value_type
 
typedef Base::size_type size_type
 

Public Member Functions

 InlineVector (const allocator_type &a=allocator_type())
 
 InlineVector (size_type n, const value_type &x=value_type(), const allocator_type &a=allocator_type())
 
 InlineVector (const InlineVector &x)
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

template<class T, size_t Max, class Alloc = std::allocator<T>>
class qpid::InlineVector< T, Max, Alloc >

A vector that stores up to Max elements in inline storage, otherwise uses normal vector allocation.

NOTE: depends on some non-standard but highly probably assumptions about how std::vector uses its allocator, they are true for g++.

Definition at line 41 of file InlineVector.h.

Member Typedef Documentation

template<class T, size_t Max, class Alloc = std::allocator<T>>
typedef Base::allocator_type qpid::InlineVector< T, Max, Alloc >::allocator_type

Definition at line 45 of file InlineVector.h.

template<class T, size_t Max, class Alloc = std::allocator<T>>
typedef Base::size_type qpid::InlineVector< T, Max, Alloc >::size_type

Definition at line 47 of file InlineVector.h.

template<class T, size_t Max, class Alloc = std::allocator<T>>
typedef Base::value_type qpid::InlineVector< T, Max, Alloc >::value_type

Definition at line 46 of file InlineVector.h.

Constructor & Destructor Documentation

template<class T, size_t Max, class Alloc = std::allocator<T>>
qpid::InlineVector< T, Max, Alloc >::InlineVector ( const allocator_type a = allocator_type())
inlineexplicit

Definition at line 49 of file InlineVector.h.

template<class T, size_t Max, class Alloc = std::allocator<T>>
qpid::InlineVector< T, Max, Alloc >::InlineVector ( size_type  n,
const value_type x = value_type(),
const allocator_type a = allocator_type() 
)
inlineexplicit

Definition at line 53 of file InlineVector.h.

template<class T, size_t Max, class Alloc = std::allocator<T>>
qpid::InlineVector< T, Max, Alloc >::InlineVector ( const InlineVector< T, Max, Alloc > &  x)
inline

Definition at line 60 of file InlineVector.h.

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.


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

Qpid C++ API Reference
Generated on Thu Dec 5 2013 for Qpid C++ Client API by doxygen 1.8.3.1