Lift
Library of parallel computing primitives for GPUs and multi-core CPUs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | Public Attributes | List of all members
lift::standalone_test Struct Reference

Wrapper for standalone tests, which consist of a single function with no arguments and no return value. More...

#include <harness.h>

Inheritance diagram for lift::standalone_test:
lift::test

Public Types

typedef void(* callable )(void)
 

Public Member Functions

 standalone_test (callable entrypoint, std::string name, bool need_cuda)
 
 standalone_test (callable entrypoint, std::string name, std::string description, bool need_cuda)
 
virtual void run (void)
 
- Public Member Functions inherited from lift::test
 test (std::string name, bool need_cuda)
 
 test (std::string name, std::string description, bool need_cuda)
 
virtual void setup ()
 
virtual void teardown ()
 

Public Attributes

callable entrypoint
 
- Public Attributes inherited from lift::test
const std::string name
 
const std::string description
 
const bool need_cuda
 
bool test_passed
 

Detailed Description

Wrapper for standalone tests, which consist of a single function with no arguments and no return value.

Definition at line 79 of file harness.h.

Member Typedef Documentation

typedef void(* lift::standalone_test::callable)(void)

Definition at line 81 of file harness.h.

Constructor & Destructor Documentation

lift::standalone_test::standalone_test ( callable  entrypoint,
std::string  name,
bool  need_cuda 
)
inline

Definition at line 84 of file harness.h.

lift::standalone_test::standalone_test ( callable  entrypoint,
std::string  name,
std::string  description,
bool  need_cuda 
)
inline

Definition at line 88 of file harness.h.

Member Function Documentation

virtual void lift::standalone_test::run ( void  )
inlinevirtual

Implements lift::test.

Definition at line 92 of file harness.h.

Member Data Documentation

callable lift::standalone_test::entrypoint

Definition at line 82 of file harness.h.


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