20 #ifndef PRIMITIVE_TYPE_H 21 #define PRIMITIVE_TYPE_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/std_climits.h" 32 #include "SheafSystem/pod_types.h" 51 PRIMITIVE_TYPE_BEGIN = 2,
69 UNSIGNED_LONG_LONG_INT,
78 NAMESPACE_RELATIVE_MEMBER_INDEX,
79 NAMESPACE_RELATIVE_SUBPOSET_INDEX,
86 NOT_A_PRIMITIVE_TYPE = INT_MAX
134 inline size_t align(
const size_t xoffset,
const size_t xalignment)
155 return ((xoffset + xalignment - 1)/xalignment)*xalignment;
170 signed char signed_char_primitive;
171 short int short_int_primitive;
173 long int long_int_primitive;
174 long long int long_long_int_primitive;
176 unsigned char unsigned_char_primitive;
177 unsigned short int unsigned_short_int_primitive;
178 unsigned int unsigned_int_primitive;
179 unsigned long int unsigned_long_int_primitive;
180 unsigned long long int unsigned_long_long_int_primitive;
182 float float_primitive;
183 double double_primitive;
184 long double long_double_primitive;
199 #endif // ifndef PRIMITIVE_TYPE_H
void * void_star
Synonym for void*.
primitive_type
Type ids for sheaf primitives.
Type of buffer large enough to hold any primitive type.
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
POD type associated with namespace_relative_subposet_index.
POD type for namespace_relative_member_index.
SHEAF_DLL_SPEC bool is_primitive_index(pod_index_type xindex)
True if xindex is a valid primitive index.
SHEAF_DLL_SPEC std::istream & operator>>(std::istream &is, dof_tuple_type &xdt)
Extract dof_tuple_type xdt from istream& is.
int_type pod_index_type
The plain old data index type.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &os, const dof_descriptor_array &p)
Insert dof_descriptor_array& p into ostream& os.
size_t align(const size_t xoffset, const size_t xalignment)
Smallest offset greater than or equal to xoffset that has alignment xalignment.
Namespace for the sheaves component of the sheaf system.
SHEAF_DLL_SPEC namespace_member_index & operator++(namespace_member_index &x)
Prefix increment operator for namespace_member_index.
int int_type
The preferred integer type.
char * c_string
Synonym for char*.