Scarab  v2.11.1
Project 8 C++ Utility Library
Classes | Namespaces | Enumerations | Functions | Variables
test_constants_and_functions.cpp File Reference
#include "pybind11_tests.h"
Include dependency graph for test_constants_and_functions.cpp:

Go to the source code of this file.

Classes

struct  C
 

Namespaces

 test_exc_sp
 

Enumerations

enum  MyEnum { EFirstEntry = 1, ESecondEntry }
 

Functions

std::string test_function1 ()
 
std::string test_function2 (MyEnum k)
 
std::string test_function3 (int i)
 
py::str test_function4 ()
 
py::str test_function4 (char *)
 
py::str test_function4 (int, float)
 
py::str test_function4 (float, int)
 
py::bytes return_bytes ()
 
std::string print_bytes (py::bytes bytes)
 
int f1 (int x) noexcept
 
int f2 (int x) noexcept(true)
 
int f3 (int x) noexcept(false)
 
int f4 (int x) throw ()
 
void test_submodule_constants_and_functions (py::module &)
 

Variables

test_initializer constants_and_functions ("constants_and_functions", test_submodule_constants_and_functions)
 

Enumeration Type Documentation

◆ MyEnum

enum MyEnum
Enumerator
EFirstEntry 
ESecondEntry 

Definition at line 12 of file test_constants_and_functions.cpp.

Function Documentation

◆ print_bytes()

std::string print_bytes ( py::bytes  bytes)

Definition at line 36 of file test_constants_and_functions.cpp.

◆ return_bytes()

py::bytes return_bytes ( )

Definition at line 31 of file test_constants_and_functions.cpp.

◆ test_function1()

std::string test_function1 ( )

Definition at line 14 of file test_constants_and_functions.cpp.

◆ test_function2()

std::string test_function2 ( MyEnum  k)

Definition at line 18 of file test_constants_and_functions.cpp.

◆ test_function3()

std::string test_function3 ( int  i)

Definition at line 22 of file test_constants_and_functions.cpp.

◆ test_function4() [1/4]

py::str test_function4 ( )

Definition at line 26 of file test_constants_and_functions.cpp.

◆ test_function4() [2/4]

py::str test_function4 ( char *  )

Definition at line 27 of file test_constants_and_functions.cpp.

◆ test_function4() [3/4]

py::str test_function4 ( int  ,
float   
)

Definition at line 28 of file test_constants_and_functions.cpp.

◆ test_function4() [4/4]

py::str test_function4 ( float  ,
int   
)

Definition at line 29 of file test_constants_and_functions.cpp.

◆ test_submodule_constants_and_functions()

void test_submodule_constants_and_functions ( py::module m)

Definition at line 80 of file test_constants_and_functions.cpp.

Variable Documentation

◆ constants_and_functions

test_initializer constants_and_functions("constants_and_functions", test_submodule_constants_and_functions)