LLVM OpenMP
kmp_traits::kmp_literal_trait Class Referencefinal

Represents a specific device number. More...

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/openmp/runtime/src/kmp_traits.h"

Inheritance diagram for kmp_traits::kmp_literal_trait:
[legend]

Public Member Functions

 kmp_literal_trait (int device_num)
bool match (int device) const override
bool operator== (const kmp_trait &other) const override
Public Member Functions inherited from kmp_traits::kmp_trait
virtual ~kmp_trait ()=default
 kmp_trait (const kmp_trait &)=delete
 kmp_trait (kmp_trait &&)=delete
kmp_traitoperator= (const kmp_trait &)=delete
kmp_traitoperator= (kmp_trait &&)=delete
voidoperator new (size_t size)
void operator delete (void *ptr)

Additional Inherited Members

Protected Types inherited from kmp_traits::kmp_trait
enum  trait_type { WILDCARD_T , LITERAL_T , UID_T }
Protected Member Functions inherited from kmp_traits::kmp_trait
 kmp_trait (trait_type type)
Protected Attributes inherited from kmp_traits::kmp_trait
trait_type _type

Detailed Description

Represents a specific device number.

Definition at line 135 of file kmp_traits.h.

Constructor & Destructor Documentation

◆ kmp_literal_trait()

kmp_traits::kmp_literal_trait::kmp_literal_trait ( int device_num)
inline

Definition at line 139 of file kmp_traits.h.

References kmp_traits::kmp_trait::kmp_trait(), and kmp_traits::kmp_trait::LITERAL_T.

Referenced by operator==().

Member Function Documentation

◆ match()

bool kmp_traits::kmp_literal_trait::match ( int device) const
inlineoverridevirtual

Reimplemented from kmp_traits::kmp_trait.

Definition at line 144 of file kmp_traits.h.

◆ operator==()

bool kmp_traits::kmp_literal_trait::operator== ( const kmp_trait & other) const
inlineoverridevirtual

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