Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
absl::inlined_vector_internal::AllocationTransaction< A > Class Template Reference

#include <inlined_vector.h>

Public Member Functions

Pointer Allocate (SizeType capacity)
 
Pointer< AAllocate (SizeType< A > requested_capacity)
 
 AllocationTransaction (A &allocator)
 
 AllocationTransaction (AllocatorType *alloc_ptr)
 
 AllocationTransaction (const AllocationTransaction &)=delete
 
 AllocationTransaction (const AllocationTransaction &)=delete
 
bool DidAllocate ()
 
bool DidAllocate ()
 
AllocatorType & GetAllocator ()
 
AGetAllocator ()
 
SizeTypeGetCapacity ()
 
SizeType< A > & GetCapacity ()
 
PointerGetData ()
 
Pointer< A > & GetData ()
 
void operator= (const AllocationTransaction &)=delete
 
void operator= (const AllocationTransaction &)=delete
 
ABSL_MUST_USE_RESULT Allocation< ARelease () &&
 
void Reset ()
 
 ~AllocationTransaction ()
 
 ~AllocationTransaction ()
 

Private Types

using AllocatorTraits = absl::allocator_traits< AllocatorType >
 
using Pointer = typename AllocatorTraits::pointer
 
using SizeType = typename AllocatorTraits::size_type
 

Private Member Functions

void Reset ()
 

Private Attributes

container_internal::CompressedTuple< AllocatorType, Pointeralloc_data_
 
container_internal::CompressedTuple< A, Pointer< A > > allocator_data_
 
SizeType capacity_ = 0
 
SizeType< Acapacity_
 

Detailed Description

template<typename A>
class absl::inlined_vector_internal::AllocationTransaction< A >

Definition at line 217 of file abseil-cpp/absl/container/internal/inlined_vector.h.

Member Typedef Documentation

◆ AllocatorTraits

template<typename A >
using absl::inlined_vector_internal::AllocationTransaction< A >::AllocatorTraits = absl::allocator_traits<AllocatorType>
private

◆ Pointer

template<typename A >
using absl::inlined_vector_internal::AllocationTransaction< A >::Pointer = typename AllocatorTraits::pointer
private

◆ SizeType

Constructor & Destructor Documentation

◆ AllocationTransaction() [1/4]

template<typename A >
absl::inlined_vector_internal::AllocationTransaction< A >::AllocationTransaction ( A allocator)
inlineexplicit

◆ ~AllocationTransaction() [1/2]

◆ AllocationTransaction() [2/4]

◆ AllocationTransaction() [3/4]

template<typename A >
absl::inlined_vector_internal::AllocationTransaction< A >::AllocationTransaction ( AllocatorType *  alloc_ptr)
inlineexplicit

◆ ~AllocationTransaction() [2/2]

◆ AllocationTransaction() [4/4]

Member Function Documentation

◆ Allocate() [1/2]

template<typename A >
Pointer absl::inlined_vector_internal::AllocationTransaction< A >::Allocate ( SizeType  capacity)
inline

◆ Allocate() [2/2]

template<typename A >
Pointer<A> absl::inlined_vector_internal::AllocationTransaction< A >::Allocate ( SizeType< A requested_capacity)
inline

◆ DidAllocate() [1/2]

template<typename A >
bool absl::inlined_vector_internal::AllocationTransaction< A >::DidAllocate ( )
inline

◆ DidAllocate() [2/2]

template<typename A >
bool absl::inlined_vector_internal::AllocationTransaction< A >::DidAllocate ( )
inline

◆ GetAllocator() [1/2]

template<typename A >
AllocatorType& absl::inlined_vector_internal::AllocationTransaction< A >::GetAllocator ( )
inline

◆ GetAllocator() [2/2]

template<typename A >
A& absl::inlined_vector_internal::AllocationTransaction< A >::GetAllocator ( )
inline

◆ GetCapacity() [1/2]

template<typename A >
SizeType& absl::inlined_vector_internal::AllocationTransaction< A >::GetCapacity ( )
inline

◆ GetCapacity() [2/2]

template<typename A >
SizeType<A>& absl::inlined_vector_internal::AllocationTransaction< A >::GetCapacity ( )
inline

◆ GetData() [1/2]

template<typename A >
Pointer& absl::inlined_vector_internal::AllocationTransaction< A >::GetData ( )
inline

◆ GetData() [2/2]

template<typename A >
Pointer<A>& absl::inlined_vector_internal::AllocationTransaction< A >::GetData ( )
inline

◆ operator=() [1/2]

template<typename A >
void absl::inlined_vector_internal::AllocationTransaction< A >::operator= ( const AllocationTransaction< A > &  )
delete

◆ operator=() [2/2]

template<typename A >
void absl::inlined_vector_internal::AllocationTransaction< A >::operator= ( const AllocationTransaction< A > &  )
delete

◆ Release()

◆ Reset() [1/2]

template<typename A >
void absl::inlined_vector_internal::AllocationTransaction< A >::Reset ( )
inline

◆ Reset() [2/2]

template<typename A >
void absl::inlined_vector_internal::AllocationTransaction< A >::Reset ( )
inlineprivate

Member Data Documentation

◆ alloc_data_

template<typename A >
container_internal::CompressedTuple<AllocatorType, Pointer> absl::inlined_vector_internal::AllocationTransaction< A >::alloc_data_
private

◆ allocator_data_

◆ capacity_ [1/2]

template<typename A >
SizeType absl::inlined_vector_internal::AllocationTransaction< A >::capacity_ = 0
private

◆ capacity_ [2/2]

template<typename A >
SizeType<A> absl::inlined_vector_internal::AllocationTransaction< A >::capacity_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:52