Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Protected Member Functions | Protected Attributes
c10::SmallVectorBase Class Reference

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

#include <SmallVector.h>

Inheritance diagram for c10::SmallVectorBase:
c10::SmallVectorTemplateCommon< T, typename > c10::SmallVectorTemplateCommon< at::OperandInfo > c10::SmallVectorTemplateCommon< int64_t > c10::SmallVectorTemplateCommon< T > c10::SmallVectorTemplateBase< at::OperandInfo, C10_IS_TRIVIALLY_COPYABLE(at::OperandInfo)> c10::SmallVectorTemplateBase< int64_t, C10_IS_TRIVIALLY_COPYABLE(int64_t)> c10::SmallVectorTemplateBase< T, isPodLike > c10::SmallVectorTemplateBase< T, true > c10::SmallVectorTemplateBase< T, C10_IS_TRIVIALLY_COPYABLE(T)> c10::SmallVectorImpl< at::OperandInfo > c10::SmallVectorImpl< int64_t > c10::SmallVectorImpl< T > c10::SmallVector< at::OperandInfo, 4 > c10::SmallVector< int64_t, 5 > c10::SmallVector< T, N >

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).
 
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.

Definition at line 56 of file SmallVector.h.

Member Function Documentation

void c10::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.

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

Definition at line 23 of file SmallVector.cpp.


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