cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Functions
test_operator_overloading.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"
#include <pybind11/operators.h>
#include <functional>

Go to the source code of this file.

Classes

class  Vector2
 
class  C1
 
class  C2
 
struct  std::hash< Vector2 >
 

Functions

int operator+ (const C1 &, const C1 &)
 
int operator+ (const C2 &, const C2 &)
 
int operator+ (const C2 &, const C1 &)
 
int operator+ (const C1 &, const C2 &)
 
std::string abs (const Vector2 &)
 
 TEST_SUBMODULE (operators, m)
 

Function Documentation

◆ abs()

std::string abs ( const Vector2 )

Definition at line 79 of file test_operator_overloading.cpp.

◆ operator+() [1/4]

int operator+ ( const C1 ,
const C1  
)

Definition at line 60 of file test_operator_overloading.cpp.

◆ operator+() [2/4]

int operator+ ( const C1 ,
const C2  
)

Definition at line 63 of file test_operator_overloading.cpp.

◆ operator+() [3/4]

int operator+ ( const C2 ,
const C1  
)

Definition at line 62 of file test_operator_overloading.cpp.

◆ operator+() [4/4]

int operator+ ( const C2 ,
const C2  
)

Definition at line 61 of file test_operator_overloading.cpp.

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( operators  ,
 
)

Definition at line 102 of file test_operator_overloading.cpp.