20 #ifndef PRIMITIVE_ATTRIBUTES_H 21 #define PRIMITIVE_ATTRIBUTES_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 27 #ifndef PRIMITIVE_TYPE_H 28 #include "SheafSystem/primitive_type.h" 60 return prototype(xid).
id();
68 return prototype(xid).
size();
84 return prototype(xid).
name();
92 return prototype(xid).
aliases();
124 return prototype(xid);
163 template <
typename T>
208 const std::string&
name()
const 226 return *_hdf_type_name;
242 return _default_value;
270 const std::string* _name;
275 const std::string* _aliases;
280 const std::string* _hdf_type_name;
304 #endif // ifndef PRIMITIVE_ATTRIBUTES_H static primitive_descriptor descriptor(pod_index_type xid)
Primitive descriptor for the primitive type with id xid.
size_type alignment() const
The alignment for the primitive type associated with this.
size_type size() const
The size of the primitive type associated with this.
static primitive_type id(pod_index_type xid)
Converts pod_index_type xid to primitive_type.
static const std::string & hdf_type_name(pod_index_type xid)
The name in the hdf file of primitive type with id xid.
static primitive_buffer_type default_value(pod_index_type xid)
The default value for the primitive type associated with this.
primitive_type
Type ids for sheaf primitives.
Type of buffer large enough to hold any primitive type.
int hdf_type() const
The hdf type of the primitive type associated with this.
static const std::string & aliases(pod_index_type xid)
Other names for the primitive type with id xid.
const std::string & aliases() const
Other names for the primitive type associated with this.
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
static primitive_type id(const std::string &xname)
Type id of the primitive type with name or alias xname.
Abstract object wrapper for an instance of a primitive type.
static int hdf_type(pod_index_type xid)
The hdf type of primitive type with id xid.
static size_type alignment(pod_index_type xid)
Alignment of the primitive type with id xid.
static const std::string & name(pod_index_type xid)
The name of primitive type with id xid.
int_type pod_index_type
The plain old data index type.
primitive_type id() const
The id for the primitive type associated with this.
Namespace for the sheaves component of the sheaf system.
primitive_buffer_type default_value() const
The default value for the primitive type associated with this.
static size_type size(pod_index_type xid)
Size of the primitive type with id xid.
An auto_block with a no-initialization initialization policy.
const std::string & hdf_type_name() const
The name in the hdf file of the primitive type associated with this.
const std::string & name() const
The name of the primitive type associated with this.