cl::sycl::codeplay::property::buffer::use_onchip_memory Class Reference
Determines if specialised on-chip memory is to be used or not. More...
#include <use_onchip_memory.h>
Public Member Functions | |
use_onchip_memory (::cl::sycl::detail::require_tag) noexcept | |
Constructs an object of type use_onchip_memory, indicating that the property is required for functionality. More... | |
use_onchip_memory (::cl::sycl::detail::prefer_tag) noexcept | |
Constructs an object of type use_onchip_memory, indicating that the property is preferred (but not required) for functionality. More... | |
bool | is_required () const noexcept |
Checks if the property is required. More... | |
bool | is_preferred () const noexcept |
Checks if the property is preferred. More... | |
Friends | |
bool | operator== (const use_onchip_memory x, const use_onchip_memory y) noexcept |
Checks that two use_onchip_memory properties are both required or are both preferred. More... | |
bool | operator!= (const use_onchip_memory x, const use_onchip_memory y) noexcept |
Checks that two use_onchip_memory properties are not both required and are not both preferred. More... | |
Detailed Description
Determines if specialised on-chip memory is to be used or not.
Definition at line 28 of file use_onchip_memory.h.
Constructor & Destructor Documentation
◆ use_onchip_memory() [1/2]
|
inlineexplicitstrongnoexcept |
Constructs an object of type use_onchip_memory, indicating that the property is required for functionality.
Definition at line 36 of file use_onchip_memory.h.
◆ use_onchip_memory() [2/2]
|
inlineexplicitnoexcept |
Constructs an object of type use_onchip_memory, indicating that the property is preferred (but not required) for functionality.
Definition at line 42 of file use_onchip_memory.h.
Member Function Documentation
◆ is_preferred()
|
inlinenoexcept |
Checks if the property is preferred.
- Returns
true
if the property is preferred,false
otherwise.
Definition at line 53 of file use_onchip_memory.h.
◆ is_required()
|
inlinenoexcept |
Checks if the property is required.
- Returns
true
if the property is required,false
otherwise.
Definition at line 48 of file use_onchip_memory.h.
Friends And Related Function Documentation
◆ operator!=
|
friend |
Checks that two use_onchip_memory properties are not both required and are not both preferred.
- Parameters
-
x A property to check. y A property to check.
- Returns
- !(x == y)
Definition at line 73 of file use_onchip_memory.h.
◆ operator==
|
friend |
Checks that two use_onchip_memory properties are both required or are both preferred.
- Parameters
-
x A property to check. y A property to check.
- Returns
true
ifx
andy
are both required,true
ifx
andy
are both preferred,false
otherwise.
Definition at line 62 of file use_onchip_memory.h.
The documentation for this class was generated from the following file: