cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Namespaces | Enumerations | Functions
test_constants_and_functions.cpp File Reference
#include "pybind11_tests.h"

Go to the source code of this file.

Classes

struct  test_exc_sp::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 test_exc_sp::f1 (int x) noexcept
 
int test_exc_sp::f2 (int x) noexcept(true)
 
int test_exc_sp::f3 (int x) noexcept(false)
 
int test_exc_sp::f4 (int x) throw ()
 
 TEST_SUBMODULE (constants_and_functions, m)
 

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 ( float  ,
int   
)

Definition at line 29 of file test_constants_and_functions.cpp.

◆ test_function4() [4/4]

py::str test_function4 ( int  ,
float   
)

Definition at line 28 of file test_constants_and_functions.cpp.

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( constants_and_functions  ,
 
)

Definition at line 87 of file test_constants_and_functions.cpp.