![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience functions for ScalarType. More...
Functions | |
bool | isInteger (ScalarType type) |
bool | isUInteger (ScalarType type) |
bool | isNumeric (ScalarType type) |
bool | isPrimitive (ScalarType type) |
ScalarType | getScalarType (const string &pvalue) |
const char * | name (ScalarType t) |
size_t | elementSize (ScalarType id) |
gives sizeof(T) where T depends on the scalar type id. More... | |
shared_vector< void > | allocArray (ScalarType id, size_t len) |
Allocate an untyped array based on ScalarType. More... | |
template<ScalarType ID> | |
shared_vector< typename ScalarTypeTraits< ID >::type > | allocArray (size_t len) |
Allocate an untyped array based on ScalarType. More... | |
epicsShareExtern ScalarType | getScalarType (std::string const &value) |
Convenience functions for ScalarType.
epicsShareFunc shared_vector< void > epics::pvData::ScalarTypeFunc::allocArray | ( | ScalarType | id, |
size_t | len | ||
) |
Allocate an untyped array based on ScalarType.
Definition at line 104 of file TypeFunc.cpp.
|
inline |
Allocate an untyped array based on ScalarType.
Definition at line 955 of file sharedVector.h.
epicsShareExtern size_t epics::pvData::ScalarTypeFunc::elementSize | ( | ScalarType | id | ) |
gives sizeof(T) where T depends on the scalar type id.
Definition at line 82 of file TypeFunc.cpp.
ScalarType epics::pvData::ScalarTypeFunc::getScalarType | ( | const string & | pvalue | ) |
Definition at line 69 of file TypeFunc.cpp.
epicsShareExtern ScalarType epics::pvData::ScalarTypeFunc::getScalarType | ( | std::string const & | value | ) |
Get the scalarType for value.
value | The name of the scalar type. |
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isInteger | ( | ScalarType | scalarType | ) |
Is the type an integer, i.e. is it one of byte,...ulong
scalarType | The type. |
Definition at line 43 of file TypeFunc.cpp.
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isNumeric | ( | ScalarType | scalarType | ) |
Is the type numeric, i.e. is it one of byte,...,double
scalarType | The type. |
Definition at line 53 of file TypeFunc.cpp.
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isPrimitive | ( | ScalarType | scalarType | ) |
Is the type primitive, i.e. not string
scalarType | The type. |
Definition at line 58 of file TypeFunc.cpp.
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isUInteger | ( | ScalarType | scalarType | ) |
Is the type an unsigned integer, i.e. is it one of ubyte,...ulong
scalarType | The type. |
Definition at line 48 of file TypeFunc.cpp.
epicsShareExtern const char * epics::pvData::ScalarTypeFunc::name | ( | ScalarType | scalarType | ) |
Get a name for the scalarType.
scalarType | The type. |
Definition at line 76 of file TypeFunc.cpp.