Classes | Macros | Typedefs | Functions
test_class.cpp File Reference
#include "pybind11_tests.h"
#include "constructor_stats.h"
#include "local_bindings.h"
#include <pybind11/stl.h>
Include dependency graph for test_class.cpp:

Go to the source code of this file.

Classes

class  BreaksBase< N >
 
class  BreaksTramp< N >
 
struct  NoBraceInitialization
 

Macros

#define CHECK_ALIAS(N)
 
#define CHECK_BASE(N)
 
#define CHECK_BROKEN(N)
 
#define CHECK_HOLDER(N, TYPE)
 
#define CHECK_NOALIAS(N)
 

Typedefs

using DoesntBreak1 = py::class_< BreaksBase< 1 >, std::unique_ptr< BreaksBase< 1 >>, BreaksTramp< 1 >>
 
using DoesntBreak2 = py::class_< BreaksBase< 2 >, BreaksTramp< 2 >, std::unique_ptr< BreaksBase< 2 >>>
 
using DoesntBreak3 = py::class_< BreaksBase< 3 >, std::unique_ptr< BreaksBase< 3 >>>
 
using DoesntBreak4 = py::class_< BreaksBase< 4 >, BreaksTramp< 4 >>
 
using DoesntBreak5 = py::class_< BreaksBase< 5 >>
 
using DoesntBreak6 = py::class_< BreaksBase< 6 >, std::shared_ptr< BreaksBase< 6 >>, BreaksTramp< 6 >>
 
using DoesntBreak7 = py::class_< BreaksBase< 7 >, BreaksTramp< 7 >, std::shared_ptr< BreaksBase< 7 >>>
 
using DoesntBreak8 = py::class_< BreaksBase< 8 >, std::shared_ptr< BreaksBase< 8 >>>
 

Functions

 CHECK_ALIAS (1)
 
 CHECK_ALIAS (2)
 
 CHECK_ALIAS (7)
 
 CHECK_ALIAS (4)
 
 CHECK_ALIAS (6)
 
 CHECK_BASE (7)
 
 CHECK_BASE (8)
 
 CHECK_BASE (1)
 
 CHECK_BASE (4)
 
 CHECK_BASE (3)
 
 CHECK_BASE (2)
 
 CHECK_BASE (5)
 
 CHECK_BASE (6)
 
 CHECK_HOLDER (4, unique)
 
 CHECK_HOLDER (1, unique)
 
 CHECK_HOLDER (3, unique)
 
 CHECK_HOLDER (2, unique)
 
 CHECK_HOLDER (5, unique)
 
 CHECK_HOLDER (8, shared)
 
 CHECK_HOLDER (6, shared)
 
 CHECK_HOLDER (7, shared)
 
 CHECK_NOALIAS (5)
 
 CHECK_NOALIAS (3)
 
 CHECK_NOALIAS (8)
 
 TEST_SUBMODULE (class_, m)
 

Macro Definition Documentation

#define CHECK_ALIAS (   N)
Value:
static_assert(DoesntBreak##N::has_alias && std::is_same<typename DoesntBreak##N::type_alias, BreaksTramp<N>>::value, \
"DoesntBreak" #N " has wrong type_alias!")
#define N
Definition: gksort.c:12

Definition at line 439 of file test_class.cpp.

#define CHECK_BASE (   N)
Value:
static_assert(std::is_same<typename DoesntBreak##N::type, BreaksBase<N>>::value, \
"DoesntBreak" #N " has wrong type!")
#define N
Definition: gksort.c:12

Definition at line 436 of file test_class.cpp.

#define CHECK_BROKEN (   N)
Value:
static_assert(std::is_same<typename Breaks##N::type, BreaksBase<-N>>::value, \
"Breaks1 has wrong type!");

Definition at line 454 of file test_class.cpp.

#define CHECK_HOLDER (   N,
  TYPE 
)
Value:
static_assert(std::is_same<typename DoesntBreak##N::holder_type, std::TYPE##_ptr<BreaksBase<N>>>::value, \
"DoesntBreak" #N " has wrong holder_type!")
#define N
Definition: gksort.c:12
#define TYPE
Definition: benchFFT.cpp:31

Definition at line 444 of file test_class.cpp.

#define CHECK_NOALIAS (   N)
Value:
static_assert(!DoesntBreak##N::has_alias && std::is_void<typename DoesntBreak##N::type_alias>::value, \
"DoesntBreak" #N " has type alias, but shouldn't!")
#define N
Definition: gksort.c:12

Definition at line 441 of file test_class.cpp.

Typedef Documentation

using DoesntBreak1 = py::class_<BreaksBase<1>, std::unique_ptr<BreaksBase<1>>, BreaksTramp<1>>

Definition at line 428 of file test_class.cpp.

using DoesntBreak2 = py::class_<BreaksBase<2>, BreaksTramp<2>, std::unique_ptr<BreaksBase<2>>>

Definition at line 429 of file test_class.cpp.

using DoesntBreak3 = py::class_<BreaksBase<3>, std::unique_ptr<BreaksBase<3>>>

Definition at line 430 of file test_class.cpp.

using DoesntBreak4 = py::class_<BreaksBase<4>, BreaksTramp<4>>

Definition at line 431 of file test_class.cpp.

using DoesntBreak5 = py::class_<BreaksBase<5>>

Definition at line 432 of file test_class.cpp.

using DoesntBreak6 = py::class_<BreaksBase<6>, std::shared_ptr<BreaksBase<6>>, BreaksTramp<6>>

Definition at line 433 of file test_class.cpp.

using DoesntBreak7 = py::class_<BreaksBase<7>, BreaksTramp<7>, std::shared_ptr<BreaksBase<7>>>

Definition at line 434 of file test_class.cpp.

using DoesntBreak8 = py::class_<BreaksBase<8>, std::shared_ptr<BreaksBase<8>>>

Definition at line 435 of file test_class.cpp.

Function Documentation

CHECK_ALIAS ( )
CHECK_ALIAS ( )
CHECK_ALIAS ( )
CHECK_ALIAS ( )
CHECK_ALIAS ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_BASE ( )
CHECK_HOLDER ( ,
unique   
)
CHECK_HOLDER ( ,
unique   
)
CHECK_HOLDER ( ,
unique   
)
CHECK_HOLDER ( ,
unique   
)
CHECK_HOLDER ( ,
unique   
)
CHECK_HOLDER ( ,
shared   
)
CHECK_HOLDER ( ,
shared   
)
CHECK_HOLDER ( ,
shared   
)
CHECK_NOALIAS ( )
CHECK_NOALIAS ( )
CHECK_NOALIAS ( )
TEST_SUBMODULE ( class_  ,
m   
)

Definition at line 28 of file test_class.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:40