Advanced Multi-Physics (AMP)
On-Line Documentation
Classes | Namespaces | Macros | Functions
typeid.h File Reference
#include <complex>
#include <cstdint>
#include <string_view>
#include <type_traits>
#include "AMP/AMP_TPLs.h"
Include dependency graph for typeid.h:

Go to the source code of this file.

Classes

struct  AMP::typeID
 Class to store type info. More...
 

Namespaces

namespace  AMP
 
namespace  TypeID_Helpers
 

Macros

#define AMP_CXX_STANDARD   17
 

Functions

constexpr void TypeID_Helpers::copy (char *dst, const char *src, size_t N)
 
constexpr void TypeID_Helpers::deblank (char *str, size_t N)
 
template<typename TYPE >
constexpr typeID AMP::getTypeID ()
 Get the type info (does not resolve dynamic types)
 
template<typename T0 >
constexpr typeID AMP::getTypeIDEval ()
 Get the type info (does not resolve dynamic types)
 
template<typename T >
constexpr void getTypeName (uint64_t N, char *name)
 Get the type name.
 
template<std::size_t N>
constexpr uint64_t TypeID_Helpers::MurmurHash64A (const char *key)
 
constexpr void TypeID_Helpers::replace (char *str, size_t N, std::string_view match, std::string_view replace)
 

Macro Definition Documentation

◆ AMP_CXX_STANDARD

#define AMP_CXX_STANDARD   17

Definition at line 12 of file typeid.h.

Function Documentation

◆ getTypeName()

template<typename T >
constexpr void getTypeName ( uint64_t  N,
char *  name 
)
constexpr

Get the type name.

This will return a string for the type name. Note that the string may be different on different platforms or different compilers. This function cannot be in a namespace to ensure the proper namespace is used for the type. If the name does not fit within the buffer it may be truncated. The truncation may occur before cleaning up the name which may result in a shorter name than expected.

Parameters
[in]NThe size of the name buffer
[out]nameThe name of the type (null terminated, may be truncated)

Definition at line 112 of file typeid.h.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page