Classes | Namespaces | Macros | Functions
set_ptr_customization_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Persistency/Common/Wrapper.h"
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

struct  custom::collection< T >
 
struct  art::has_setPtr< custom::collection< T > >
 

Namespaces

 custom
 
 art
 

Macros

#define BOOST_TEST_MODULE   (Tests setPtr customization)
 

Functions

template<class T >
void custom::setPtr (collection< T > const &, std::type_info const &, unsigned long, void const *&)
 
template<typename T >
void custom::getElementAddresses (collection< T > const &, std::type_info const &, std::vector< unsigned long > const &, std::vector< void const * > &)
 
 BOOST_AUTO_TEST_CASE (setPtr_t)
 
 BOOST_AUTO_TEST_CASE (getElementAddresses_t)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (Tests setPtr customization)

Definition at line 1 of file set_ptr_customization_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( setPtr_t  )

Definition at line 59 of file set_ptr_customization_t.cc.

60 {
62  BOOST_CHECK_EXCEPTION(w.getElementAddress(typeid(int), {}),
63  customization_honored,
64  always_true);
65 }
void const * getElementAddress(std::type_info const &toType, unsigned long index) const
Definition: EDProduct.cc:13
BOOST_AUTO_TEST_CASE ( getElementAddresses_t  )

Definition at line 67 of file set_ptr_customization_t.cc.

68 {
70  BOOST_CHECK_EXCEPTION(w.getElementAddresses(typeid(int), {}),
71  customization_honored,
72  always_true);
73 }
std::vector< void const * > getElementAddresses(std::type_info const &toType, std::vector< unsigned long > const &indices) const
Definition: EDProduct.cc:20