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

Go to the source code of this file.

Classes

class  BreaksBase< N >
 
class  BreaksTramp< N >
 
struct  NoBraceInitialization
 
struct  test_class::pr4220_tripped_over_this::SoEmpty< int >
 

Namespaces

 test_class
 
 test_class::pr4220_tripped_over_this
 

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 > >>
 
using test_class::pr4220_tripped_over_this::Empty0 = SoEmpty< 0x0 >
 

Functions

void test_class::pr4220_tripped_over_this::bind_empty0 (py::module_ &m)
 
 CHECK_ALIAS (1)
 
 CHECK_ALIAS (2)
 
 CHECK_ALIAS (4)
 
 CHECK_ALIAS (6)
 
 CHECK_ALIAS (7)
 
 CHECK_BASE (1)
 
 CHECK_BASE (2)
 
 CHECK_BASE (3)
 
 CHECK_BASE (4)
 
 CHECK_BASE (5)
 
 CHECK_BASE (6)
 
 CHECK_BASE (7)
 
 CHECK_BASE (8)
 
 CHECK_HOLDER (1, unique)
 
 CHECK_HOLDER (2, unique)
 
 CHECK_HOLDER (3, unique)
 
 CHECK_HOLDER (4, unique)
 
 CHECK_HOLDER (5, unique)
 
 CHECK_HOLDER (6, shared)
 
 CHECK_HOLDER (7, shared)
 
 CHECK_HOLDER (8, shared)
 
 CHECK_NOALIAS (3)
 
 CHECK_NOALIAS (5)
 
 CHECK_NOALIAS (8)
 
template<typename T >
std::string test_class::pr4220_tripped_over_this::get_msg (const T &)
 
 TEST_SUBMODULE (class_, m)
 

Macro Definition Documentation

◆ CHECK_ALIAS

#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!")

Definition at line 588 of file test_class.cpp.

◆ CHECK_BASE

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

Definition at line 577 of file test_class.cpp.

◆ CHECK_BROKEN

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

Definition at line 623 of file test_class.cpp.

◆ CHECK_HOLDER

#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!")

Definition at line 605 of file test_class.cpp.

◆ CHECK_NOALIAS

#define CHECK_NOALIAS (   N)
Value:
static_assert(!DoesntBreak##N::has_alias \
"DoesntBreak" #N " has type alias, but shouldn't!")

Definition at line 593 of file test_class.cpp.

Typedef Documentation

◆ DoesntBreak1

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

Definition at line 569 of file test_class.cpp.

◆ DoesntBreak2

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

Definition at line 570 of file test_class.cpp.

◆ DoesntBreak3

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

Definition at line 571 of file test_class.cpp.

◆ DoesntBreak4

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

Definition at line 572 of file test_class.cpp.

◆ DoesntBreak5

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

Definition at line 573 of file test_class.cpp.

◆ DoesntBreak6

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

Definition at line 574 of file test_class.cpp.

◆ DoesntBreak7

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

Definition at line 575 of file test_class.cpp.

◆ DoesntBreak8

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

Definition at line 576 of file test_class.cpp.

Function Documentation

◆ CHECK_ALIAS() [1/5]

CHECK_ALIAS ( )

◆ CHECK_ALIAS() [2/5]

CHECK_ALIAS ( )

◆ CHECK_ALIAS() [3/5]

CHECK_ALIAS ( )

◆ CHECK_ALIAS() [4/5]

CHECK_ALIAS ( )

◆ CHECK_ALIAS() [5/5]

CHECK_ALIAS ( )

◆ CHECK_BASE() [1/8]

CHECK_BASE ( )

◆ CHECK_BASE() [2/8]

CHECK_BASE ( )

◆ CHECK_BASE() [3/8]

CHECK_BASE ( )

◆ CHECK_BASE() [4/8]

CHECK_BASE ( )

◆ CHECK_BASE() [5/8]

CHECK_BASE ( )

◆ CHECK_BASE() [6/8]

CHECK_BASE ( )

◆ CHECK_BASE() [7/8]

CHECK_BASE ( )

◆ CHECK_BASE() [8/8]

CHECK_BASE ( )

◆ CHECK_HOLDER() [1/8]

CHECK_HOLDER ( ,
unique   
)

◆ CHECK_HOLDER() [2/8]

CHECK_HOLDER ( ,
unique   
)

◆ CHECK_HOLDER() [3/8]

CHECK_HOLDER ( ,
unique   
)

◆ CHECK_HOLDER() [4/8]

CHECK_HOLDER ( ,
unique   
)

◆ CHECK_HOLDER() [5/8]

CHECK_HOLDER ( ,
unique   
)

◆ CHECK_HOLDER() [6/8]

CHECK_HOLDER ( ,
shared   
)

◆ CHECK_HOLDER() [7/8]

CHECK_HOLDER ( ,
shared   
)

◆ CHECK_HOLDER() [8/8]

CHECK_HOLDER ( ,
shared   
)

◆ CHECK_NOALIAS() [1/3]

CHECK_NOALIAS ( )

◆ CHECK_NOALIAS() [2/3]

CHECK_NOALIAS ( )

◆ CHECK_NOALIAS() [3/3]

CHECK_NOALIAS ( )

◆ TEST_SUBMODULE()

TEST_SUBMODULE ( class_  ,
m   
)

Definition at line 57 of file test_class.cpp.

gtsam.examples.DogLegOptimizerExample.type
type
Definition: DogLegOptimizerExample.py:111
BreaksBase
Definition: test_class.cpp:560
TYPE
#define TYPE
Definition: benchFFT.cpp:31
N
#define N
Definition: igam.h:9
BreaksTramp
Definition: test_class.cpp:567
test_callbacks.value
value
Definition: test_callbacks.py:160


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:24