Celeritas 0.7.0-dev.558+develop.788a828f7
Loading...
Searching...
No Matches
Macros | Functions
CheckedGeoTrackView.cc File Reference
#include "CheckedGeoTrackView.hh"
#include <optional>
#include "corecel/Config.hh"
#include "corecel/Assert.hh"
#include "corecel/Types.hh"
#include "corecel/io/Logger.hh"
#include "corecel/io/Repr.hh"
#include "corecel/math/ArrayOperators.hh"
#include "corecel/math/ArrayUtils.hh"
#include "corecel/math/NumericLimits.hh"
#include "corecel/math/SoftEqual.hh"
#include "GeoInterface.hh"
#include "GeoParamsInterface.hh"
#include "UnitLength.hh"

Macros

#define CGTV_FAIL(CGTV, WHERE, WHAT)
 
#define CGTV_VALIDATE_NOT_FAILED(CGTV, WHERE)
 
#define CGTV_VALIDATE(CGTV, COND, STREAM_WHAT)
 
#define CGTV_LOG(LEVEL)    this->log_(CELER_CODE_PROVENANCE, ::celeritas::LogLevel::LEVEL)
 

Functions

std::ostream & celeritas::operator<< (std::ostream &os, CheckedGeoTrackView const &geo)
 Output the state of a checked track view.
 

Macro Definition Documentation

◆ CGTV_FAIL

#define CGTV_FAIL (   CGTV,
  WHERE,
  WHAT 
)
Value:
do \
{ \
std::ostringstream msg_; \
msg_ << "failed during " << WHERE; \
msg_ << "" WHAT; \
throw_cgtv_error(CGTV, std::move(msg_), {}, __FILE__, __LINE__); \
} while (0)

◆ CGTV_VALIDATE

#define CGTV_VALIDATE (   CGTV,
  COND,
  STREAM_WHAT 
)
Value:
do \
{ \
if (CELER_UNLIKELY(!(COND))) \
{ \
std::ostringstream msg_; \
msg_ << "" STREAM_WHAT; \
throw_cgtv_error( \
CGTV, std::move(msg_), #COND, __FILE__, __LINE__); \
} \
} while (0)
#define CELER_UNLIKELY(COND)
Mark the result of this condition to be "unlikely".
Definition Macros.hh:120

◆ CGTV_VALIDATE_NOT_FAILED

#define CGTV_VALIDATE_NOT_FAILED (   CGTV,
  WHERE 
)
Value:
do \
{ \
if ((CGTV).check_failure() && CELER_UNLIKELY((CGTV).failed())) \
{ \
CGTV_FAIL(CGTV, WHERE, ); \
} \
} while (0)