OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OutOfHostMemory Class Reference

#include <checked_alloc.h>

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

Public Member Functions

 OutOfHostMemory (const size_t size)
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)

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\n"
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:388

Member Function Documentation

const char* OutOfHostMemory::what ( ) const

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_

Definition at line 42 of file checked_alloc.h.

Referenced by what().

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