μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
test_operator_overloading.cpp File Reference
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include "constructor_stats.h"
#include "pybind11_tests.h"
#include <functional>
Include dependency graph for test_operator_overloading.cpp:

Go to the source code of this file.

Classes

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

Namespaces

namespace  std
 

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 &)
 
bool operator== (const HashMe &lhs, const HashMe &rhs)
 
std::string abs (const Vector2 &)
 
 TEST_SUBMODULE (operators, m)
 

Function Documentation

◆ abs()

std::string abs ( const Vector2 )

◆ operator+() [1/4]

int operator+ ( const C1 ,
const C1  
)

Definition at line 100 of file test_operator_overloading.cpp.

◆ operator+() [2/4]

int operator+ ( const C1 ,
const C2  
)

Definition at line 103 of file test_operator_overloading.cpp.

◆ operator+() [3/4]

int operator+ ( const C2 ,
const C1  
)

Definition at line 102 of file test_operator_overloading.cpp.

◆ operator+() [4/4]

int operator+ ( const C2 ,
const C2  
)

Definition at line 101 of file test_operator_overloading.cpp.

◆ operator==()

bool operator== ( const HashMe lhs,
const HashMe rhs 
)

Definition at line 109 of file test_operator_overloading.cpp.

References HashMe::member.

Referenced by TEST_SUBMODULE().

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( operators  ,
 
)

Definition at line 154 of file test_operator_overloading.cpp.

References abs(), hash(), operator==(), and Vector2::toString().