OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{QueryMemoryInitializer.cpp}::AddNbytes Struct Reference

Public Member Functions

size_t operator() (size_t const sum, ApproxQuantileDescriptor const aqd) const
 

Public Attributes

size_t const entry_count
 

Detailed Description

Definition at line 32 of file QueryMemoryInitializer.cpp.

Member Function Documentation

size_t anonymous_namespace{QueryMemoryInitializer.cpp}::AddNbytes::operator() ( size_t const  sum,
ApproxQuantileDescriptor const  aqd 
) const
inline

Definition at line 34 of file QueryMemoryInitializer.cpp.

References ApproxQuantileDescriptor::buffer_size, ApproxQuantileDescriptor::centroids_size, and quantile::detail::TDigest< RealType, IndexType >::nbytes().

34  {
35  return sum +
36  entry_count * quantile::TDigest::nbytes(aqd.buffer_size, aqd.centroids_size);
37  }
static IndexType nbytes(IndexType buf_allocate, IndexType centroids_allocate)
Definition: quantile.h:261

+ Here is the call graph for this function:

Member Data Documentation

size_t const anonymous_namespace{QueryMemoryInitializer.cpp}::AddNbytes::entry_count

Definition at line 33 of file QueryMemoryInitializer.cpp.


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