Skip to content

Class TempLat::GetToolBox

ClassList > TempLat > GetToolBox

A Helper class which returns the toolbox of an object, if it has one, and throws an exception if it doesn't. This is useful for measurement objects, which may or may not have a toolbox, but we want to be able to call getToolBox() on them without having to check if they have one first. More...

  • #include <gettoolbox.h>

Public Functions

Type Name
GetToolBox () = delete

Public Static Functions

Type Name
auto get (U && obj)
std::nullptr_t get (U && obj)

Detailed Description

Unit test: ctest -R test-gettoolbox

Public Functions Documentation

function GetToolBox

TempLat::GetToolBox::GetToolBox () = delete

Public Static Functions Documentation

function get [1/2]

template<typename U>
static inline auto TempLat::GetToolBox::get (
    U && obj
) 

function get [2/2]

template<typename U>
static inline std::nullptr_t TempLat::GetToolBox::get (
    U && obj
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/helpers/gettoolbox.h