Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::InlinedAllocVector< T, N > Class Template Reference

InlinedAllocVectoris a similar to AllocVector, but uses inlined storage for its first N elements, then uses an Ion Allocator if that size is exceeded. More...

#include "allocvector.h"

Inheritance diagram for ion::base::InlinedAllocVector< T, N >:
Collaboration diagram for ion::base::InlinedAllocVector< T, N >:

Public Types

typedef StlInlinedAllocator< T, N > AllocType
 
typedef std::vector< T, AllocTypeVectorType
 

Public Member Functions

 InlinedAllocVector (const AllocatorPtr &alloc)
 
 InlinedAllocVector (const Allocatable &owner)
 
 InlinedAllocVector (const AllocatorPtr &alloc, size_t n, const T &val)
 
 InlinedAllocVector (const Allocatable &owner, size_t n, const T &val)
 
template<class IteratorT >
 InlinedAllocVector (const AllocatorPtr &alloc, IteratorT first, IteratorT last)
 
template<class IteratorT >
 InlinedAllocVector (const Allocatable &owner, IteratorT first, IteratorT last)
 
template<typename ContainerT >
 InlinedAllocVector (const AllocatorPtr &alloc, const ContainerT &from)
 These constructors can be used to copy from "STL iterables": anything that provides a pair of compatible iterators via begin() and end(). More...
 
template<typename ContainerT >
 InlinedAllocVector (const Allocatable &owner, const ContainerT &from)
 

Public Attributes

T elements
 STL member. More...
 

Detailed Description

template<typename T, int N>
class ion::base::InlinedAllocVector< T, N >

InlinedAllocVectoris a similar to AllocVector, but uses inlined storage for its first N elements, then uses an Ion Allocator if that size is exceeded.

Definition at line 99 of file allocvector.h.

Member Typedef Documentation

template<typename T, int N>
typedef StlInlinedAllocator<T, N> ion::base::InlinedAllocVector< T, N >::AllocType

Definition at line 101 of file allocvector.h.

template<typename T, int N>
typedef std::vector<T, AllocType> ion::base::InlinedAllocVector< T, N >::VectorType

Definition at line 102 of file allocvector.h.

Constructor & Destructor Documentation

template<typename T, int N>
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const AllocatorPtr alloc)
inlineexplicit

Definition at line 103 of file allocvector.h.

template<typename T, int N>
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const Allocatable owner)
inlineexplicit

Definition at line 105 of file allocvector.h.

template<typename T, int N>
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const AllocatorPtr alloc,
size_t  n,
const T val 
)
inline

Definition at line 108 of file allocvector.h.

template<typename T, int N>
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const Allocatable owner,
size_t  n,
const T val 
)
inline

Definition at line 111 of file allocvector.h.

template<typename T, int N>
template<class IteratorT >
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const AllocatorPtr alloc,
IteratorT  first,
IteratorT  last 
)
inline

Definition at line 115 of file allocvector.h.

template<typename T, int N>
template<class IteratorT >
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const Allocatable owner,
IteratorT  first,
IteratorT  last 
)
inline

Definition at line 119 of file allocvector.h.

template<typename T, int N>
template<typename ContainerT >
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const AllocatorPtr alloc,
const ContainerT &  from 
)
inline

These constructors can be used to copy from "STL iterables": anything that provides a pair of compatible iterators via begin() and end().

Definition at line 126 of file allocvector.h.

template<typename T, int N>
template<typename ContainerT >
ion::base::InlinedAllocVector< T, N >::InlinedAllocVector ( const Allocatable owner,
const ContainerT &  from 
)
inline

Definition at line 130 of file allocvector.h.

Member Data Documentation

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

STL member.


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