This is Unofficial EPICS BASE Doxygen Site
TypeFunc.cpp File Reference
#include <cstddef>
#include <cstdlib>
#include <string>
#include <cstdio>
#include <pv/pvIntrospect.h>
#include <pv/epicsException.h>
#include <pv/sharedVector.h>
#include "dbDefs.h"
+ Include dependency graph for TypeFunc.cpp:

Go to the source code of this file.

Namespaces

 epics
 TODO only here because of the Lockable.
 
 epics::pvData
 pvData
 
 epics::pvData::TypeFunc
 Convenience functions for Type.
 
 epics::pvData::ScalarTypeFunc
 Convenience functions for ScalarType.
 

Macros

#define epicsExportSharedSymbols
 
#define OP(ENUM, TYPE)   case ENUM: return sizeof(TYPE)
 
#define OP(ENUM, TYPE)   case ENUM: return static_shared_vector_cast<void>(shared_vector<TYPE>(len))
 

Functions

const char * epics::pvData::TypeFunc::name (Type t)
 
std::ostream & epics::pvData::operator<< (std::ostream &o, const Type &type)
 
bool epics::pvData::ScalarTypeFunc::isInteger (ScalarType type)
 
bool epics::pvData::ScalarTypeFunc::isUInteger (ScalarType type)
 
bool epics::pvData::ScalarTypeFunc::isNumeric (ScalarType type)
 
bool epics::pvData::ScalarTypeFunc::isPrimitive (ScalarType type)
 
ScalarType epics::pvData::ScalarTypeFunc::getScalarType (const string &pvalue)
 
const char * epics::pvData::ScalarTypeFunc::name (ScalarType t)
 
size_t epics::pvData::ScalarTypeFunc::elementSize (ScalarType id)
 gives sizeof(T) where T depends on the scalar type id. More...
 
shared_vector< void > epics::pvData::ScalarTypeFunc::allocArray (ScalarType id, size_t len)
 Allocate an untyped array based on ScalarType. More...
 
std::ostream & epics::pvData::operator<< (std::ostream &o, const ScalarType &scalarType)
 

Macro Definition Documentation

#define epicsExportSharedSymbols
Author
mrk

Definition at line 14 of file TypeFunc.cpp.

#define OP (   ENUM,
  TYPE 
)    case ENUM: return sizeof(TYPE)
#define OP (   ENUM,
  TYPE 
)    case ENUM: return static_shared_vector_cast<void>(shared_vector<TYPE>(len))