WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::SmallVectorBase Class Reference

This is all the non-templated stuff common to all SmallVectors. More...

#include <SmallVector.h>

Inheritance diagram for wpi::SmallVectorBase:
wpi::SmallVectorTemplateCommon< char > wpi::SmallVectorTemplateCommon< nt::NetworkTableEntry > wpi::SmallVectorTemplateCommon< std::pair< KeyT, ValueT > > wpi::SmallVectorTemplateCommon< std::string > wpi::SmallVectorTemplateCommon< T > wpi::SmallVectorTemplateCommon< uint8_t > wpi::SmallVectorTemplateCommon< wpi::SmallString< 16 > > wpi::SmallVectorTemplateCommon< wpi::uv::Buffer > wpi::SmallVectorTemplateCommon< T, typename >

Public Member Functions

size_t size_in_bytes () const
 This returns size()*sizeof(T).
 
size_t capacity_in_bytes () const
 capacity_in_bytes - This returns capacity()*sizeof(T).
 
LLVM_NODISCARD bool empty () const
 

Protected Member Functions

 SmallVectorBase (void *FirstEl, size_t Size)
 
void grow_pod (void *FirstEl, size_t MinSizeInBytes, size_t TSize)
 This is an implementation of the grow() method which only works on POD-like data types and is out of line to reduce code duplication. More...
 

Protected Attributes

void * BeginX
 
void * EndX
 
void * CapacityX
 

Detailed Description

This is all the non-templated stuff common to all SmallVectors.

Member Function Documentation

void wpi::SmallVectorBase::grow_pod ( void *  FirstEl,
size_t  MinSizeInBytes,
size_t  TSize 
)
protected

This is an implementation of the grow() method which only works on POD-like data types and is out of line to reduce code duplication.


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