11 #ifndef __PCP_CPP_TYPES_HPP__ 12 #define __PCP_CPP_TYPES_HPP__ 18 PCP_CPP_BEGIN_NAMESPACE
30 template <
typename Type>
inline atom_type_type
type();
33 template <>
inline atom_type_type
type<int8_t> () {
return PM_TYPE_32; }
34 template <>
inline atom_type_type
type<int16_t> () {
return PM_TYPE_32; }
35 template <>
inline atom_type_type
type<int32_t> () {
return PM_TYPE_32; }
36 template <>
inline atom_type_type
type<int64_t> () {
return PM_TYPE_64; }
37 template <>
inline atom_type_type
type<uint8_t> () {
return PM_TYPE_U32; }
43 template <>
inline atom_type_type
type<float> () {
return PM_TYPE_FLOAT; }
44 template <>
inline atom_type_type
type<double>() {
return PM_TYPE_DOUBLE; }
47 template <>
inline atom_type_type type<char *> () {
return PM_TYPE_STRING; }
48 template <>
inline atom_type_type type<std::string> () {
return PM_TYPE_STRING; }
unsigned int instance_id_type
https://github.com/pcolby/pcp-pmda-cpp/issues/11
uint_fast8_t semantic_type
PM_SEM_* (0 - 4)
uint_fast8_t atom_type_type
PM_TYPE_* (0 - 9)
Sets up common PMDA++ library macros.
atom_type_type type< uint8_t >()
Template specialisation for uint8_t.
atom_type_type type< int8_t >()
Template specialisation for int8_t.
atom_type_type type< int32_t >()
Template specialisation for int32_t.
atom_type_type type< int16_t >()
Template specialisation for int16_t.
uint_fast16_t item_id_type
__pmID_int::item (10-bits)
atom_type_type type< float >()
Template specialisation for float.
atom_type_type type< double >()
Template specialisation for double.
atom_type_type type< uint16_t >()
Template specialisation for uint16_t.
atom_type_type type< uint64_t >()
Template specialisation for uint64_t.
atom_type_type type< uint32_t >()
Template specialisation for uint32_t.
atom_type_type type< int64_t >()
Template specialisation for int64_t.
atom_type_type type()
Get the PM_TYPE_* constant for a given C++ type.
uint_fast16_t domain_id_type
__pmID_int::cluster (9-bits); pmdaIndom::it_indom
uint_fast16_t cluster_id_type
__pmID_int::cluster (12-bits)