Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cudf::experimental::prefetch::detail::prefetch_config Class Reference

A singleton class that manages the prefetching configuration. More...

#include <prefetch.hpp>

Public Member Functions

prefetch_configoperator= (const prefetch_config &)=delete
 
 prefetch_config (const prefetch_config &)=delete
 
bool get (std::string_view key)
 Get the value of a configuration key. More...
 
void set (std::string_view key, bool value)
 Set the value of a configuration key. More...
 

Static Public Member Functions

static prefetch_configinstance ()
 Get the singleton instance of the prefetching configuration. More...
 

Public Attributes

bool debug {false}
 Enable or disable debug mode. More...
 

Detailed Description

A singleton class that manages the prefetching configuration.

Definition at line 36 of file prefetch.hpp.

Member Function Documentation

◆ get()

bool cudf::experimental::prefetch::detail::prefetch_config::get ( std::string_view  key)

Get the value of a configuration key.

If the key does not exist, a false value will be returned.

Parameters
keyThe configuration key.
Returns
The value of the configuration key.

◆ instance()

static prefetch_config& cudf::experimental::prefetch::detail::prefetch_config::instance ( )
static

Get the singleton instance of the prefetching configuration.

Returns
The singleton instance of the prefetching configuration.

◆ set()

void cudf::experimental::prefetch::detail::prefetch_config::set ( std::string_view  key,
bool  value 
)

Set the value of a configuration key.

This is a thread-safe operation.

Parameters
keyThe configuration key.
valueThe value to set.

Member Data Documentation

◆ debug

bool cudf::experimental::prefetch::detail::prefetch_config::debug {false}

Enable or disable debug mode.

In debug mode, the pointers being prefetched are printed to stderr.

Definition at line 71 of file prefetch.hpp.


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