Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
MCGIDI_string.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "MCGIDI_string.hpp"

Go to the source code of this file.

Namespaces

namespace  MCGIDI
 Simple C++ string class, useful as replacement for std::string if this cannot be used, or just for fun.

Macros

#define MCGIDI_MIN(x, y)
#define MCGIDI_SWAP(a, b, type)

Functions

LUPI_HOST_DEVICE int MCGIDI::MCGIDI_strcmp (const char *p1, const char *p2)
LUPI_HOST_DEVICE size_t MCGIDI::MCGIDI_strlen (const char *str)
LUPI_HOST_DEVICE void MCGIDI::MCGIDI_memmove (char *dest, const char *src, size_t n)
LUPI_HOST_DEVICE int MCGIDI::MCGIDI_strncmp (const char *s1, const char *s2, size_t n)
LUPI_HOST_DEVICE String MCGIDI::operator+ (const String &lhs, const String &rhs)
LUPI_HOST_DEVICE bool MCGIDI::operator< (const String &, const String &)

Macro Definition Documentation

◆ MCGIDI_MIN

#define MCGIDI_MIN ( x,
y )
Value:
( ( (x) < (y) ) ? (x) : (y) )

Definition at line 29 of file MCGIDI_string.cc.

Referenced by MCGIDI::String::compare(), and MCGIDI::String::compare().

◆ MCGIDI_SWAP

#define MCGIDI_SWAP ( a,
b,
type )
Value:
{type ttttttttt=a;a=b;b=ttttttttt;}

Definition at line 30 of file MCGIDI_string.cc.