OmniSciDB  ba1bac9284
 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 31 of file checked_alloc.h.

Constructor & Destructor Documentation

OutOfHostMemory::OutOfHostMemory ( const size_t  size)
inline

Definition at line 33 of file checked_alloc.h.

References VLOG.

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

Member Function Documentation

virtual const char* OutOfHostMemory::what ( ) const
inlinefinalvirtualnoexcept

Definition at line 39 of file checked_alloc.h.

References what_str_.

Referenced by ExecutionKernel::run().

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

+ Here is the caller graph for this function:

Member Data Documentation

const std::string OutOfHostMemory::what_str_
private

Definition at line 42 of file checked_alloc.h.

Referenced by what().


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