Namespaces | Macros | Typedefs | Functions
durations.hpp File Reference

Concrete type definitions for int32_t and int64_t durations in varying resolutions. More...

#include <limits>
#include <cuda/std/chrono>

Go to the source code of this file.

Namespaces

 cudf
 cuDF interfaces
 

Macros

#define DURATION_LIMITS(TypeName)
 Specialization of std::numeric_limits for cudf::detail::duration. More...
 

Typedefs

using cudf::duration_D = cuda::std::chrono::duration< int32_t, cuda::std::chrono::days::period >
 Type alias representing an int32_t duration of days.
 
using cudf::duration_s = cuda::std::chrono::duration< int64_t, cuda::std::chrono::seconds::period >
 Type alias representing an int64_t duration of seconds.
 
using cudf::duration_ms = cuda::std::chrono::duration< int64_t, cuda::std::chrono::milliseconds::period >
 Type alias representing an int64_t duration of milliseconds.
 
using cudf::duration_us = cuda::std::chrono::duration< int64_t, cuda::std::chrono::microseconds::period >
 Type alias representing an int64_t duration of microseconds.
 
using cudf::duration_ns = cuda::std::chrono::duration< int64_t, cuda::std::chrono::nanoseconds::period >
 Type alias representing an int64_t duration of nanoseconds.
 

Functions

 std::DURATION_LIMITS (cudf::duration_D)
 
 std::DURATION_LIMITS (cudf::duration_s)
 
 std::DURATION_LIMITS (cudf::duration_ms)
 
 std::DURATION_LIMITS (cudf::duration_us)
 
 std::DURATION_LIMITS (cudf::duration_ns)
 

Detailed Description

Concrete type definitions for int32_t and int64_t durations in varying resolutions.

Definition in file durations.hpp.

Macro Definition Documentation

◆ DURATION_LIMITS

#define DURATION_LIMITS (   TypeName)
Value:
template <> \
struct numeric_limits<TypeName> { \
static constexpr TypeName max() noexcept { return TypeName::max(); } \
static constexpr TypeName lowest() noexcept \
{ \
return TypeName(std::numeric_limits<typename TypeName::rep>::lowest()); \
} \
static constexpr TypeName min() noexcept { return TypeName::min(); } \
}

Specialization of std::numeric_limits for cudf::detail::duration.

Pass through to return the limits of the underlying numeric representation.

Definition at line 68 of file durations.hpp.