OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OutOfHostMemory Class Reference

#include <checked_alloc.h>

+ Inheritance diagram for OutOfHostMemory:
+ Collaboration diagram for OutOfHostMemory:

Public Member Functions

 OutOfHostMemory (const size_t size)
virtual const char * what () const noexceptfinal

Private Attributes

const std::string what_str_

Detailed Description

Definition at line 30 of file checked_alloc.h.

Constructor & Destructor Documentation

OutOfHostMemory::OutOfHostMemory ( const size_t  size)

Definition at line 32 of file checked_alloc.h.

References VLOG.

33  : what_str_("Not enough CPU memory available to allocate " + std::to_string(size)) {
34  VLOG(1) << "Failed to allocate " << size << " bytes " << std::endl
35  << boost::stacktrace::stacktrace();
36  }
const std::string what_str_
Definition: checked_alloc.h:41
std::string to_string(char const *&&v)
#define VLOG(n)
Definition: Logger.h:291

Member Function Documentation

virtual const char* OutOfHostMemory::what ( ) const

Definition at line 38 of file checked_alloc.h.

References what_str_.

Referenced by ExecutionKernel::run().

38 { return what_str_.c_str(); }
const std::string what_str_
Definition: checked_alloc.h:41

+ Here is the caller graph for this function:

Member Data Documentation

const std::string OutOfHostMemory::what_str_

Definition at line 41 of file checked_alloc.h.

Referenced by what().

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