All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
util.h File Reference
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "awkward/common.h"
#include "dlfcn.h"

Go to the source code of this file.

Classes

class  array_deleter< T >
 Used as a std::shared_ptr deleter (second argument) to overload delete ptr with delete[] ptr. More...
 

Namespaces

namespace  awkward
 
namespace  awkward::util
 

Enumerations

enum class  dtype {
  NOT_PRIMITIVE , boolean , int8 , int16 ,
  int32 , int64 , uint8 , uint16 ,
  uint32 , uint64 , float16 , float32 ,
  float64 , float128 , complex64 , complex128 ,
  complex256 , datetime64 , timedelta64 , size
}
 NumPy dtypes that can be interpreted within Awkward C++ (only the primitive, fixed-width types). Non-native-endian types are considered NOT_PRIMITIVE. More...
 
enum class  ForthError {
  none , not_ready , is_done , user_halt ,
  recursion_depth_exceeded , stack_underflow , stack_overflow , read_beyond ,
  seek_beyond , skip_beyond , rewind_beyond , division_by_zero ,
  varint_too_big , text_number_missing , quoted_string_missing , enumeration_missing ,
  size
}
 Exhaustive list of runtime errors possible in the ForthMachine. More...
 

Functions

const std::string dtype_to_name (dtype dt)
 Returns the name associated with a given dtype.
 
const std::string dtype_to_format (dtype dt, const std::string &format="")
 Convert a dtype enum into a NumPy format string.
 
std::string quote (const std::string &x)
 Puts quotation marks around a string and escapes the appropriate characters.