yacx-YetAnotherCudaExecutor  0.6.2
wrapper to easily compile and execute cuda kernels
Public Member Functions | List of all members
yacx::Headers Class Reference
Inheritance diagram for yacx::Headers:
yacx::JNIHandle

Public Member Functions

 Headers (const Header &header)
 
 Headers (const std::string &path)
 
 Headers (std::vector< Header > headers)
 
template<typename T , typename... TS>
 Headers (const T &arg, const TS &... args)
 
const char ** content () const
 
const char ** names () const
 
size_t numHeaders () const
 
void insert (std::string const &path)
 
void insert (Header header)
 

Detailed Description

Examples
docs/headers.cpp, and example_gauss.cpp.

Constructor & Destructor Documentation

◆ Headers() [1/4]

Headers::Headers ( const Header header)
explicit

constructs Headers with Header

Parameters
header

◆ Headers() [2/4]

Headers::Headers ( const std::string &  path)
explicit

constructs Headers with path to header file

Parameters
pathpath to header file

◆ Headers() [3/4]

Headers::Headers ( std::vector< Header headers)
explicit

constructs a header from a header vector

Parameters
headers

◆ Headers() [4/4]

template<typename T , typename... TS>
Headers::Headers ( const T &  arg,
const TS &...  args 
)

constructs Headers with a multiple Header or paths to header files

Template Parameters
THeader, std::string or char[]
TSHeader, std::string or char[]
Parameters
argHeader or Path to header file
argsHeader or Path to header file

Member Function Documentation

◆ content()

const char ** Headers::content ( ) const
Returns
c-style string array of header file contents

◆ insert() [1/2]

void yacx::Headers::insert ( Header  header)
inline

inserts Header

Parameters
header

◆ insert() [2/2]

void yacx::Headers::insert ( std::string const &  path)
inline

inserts Header

Parameters
pathpath to header file

◆ names()

const char ** Headers::names ( ) const
Returns
c-style string array of header file names

◆ numHeaders()

size_t yacx::Headers::numHeaders ( ) const
inline
Returns
number of header files

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