20 #include "SheafSystem/primitive_type.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/error_message.h" 24 #include "SheafSystem/primitive_attributes.h" 25 #include "SheafSystem/std_iomanip.h" 31 const int PRIMITIVE_TYPE_CT = sheaf::PRIMITIVE_TYPE_END - sheaf::PRIMITIVE_TYPE_BEGIN;
51 x = (x == PRIMITIVE_TYPE_END) ? PRIMITIVE_TYPE_BEGIN :
primitive_type(x+1);
66 result = (PRIMITIVE_TYPE_BEGIN <= xindex) && (xindex < PRIMITIVE_TYPE_END);
85 os << primitive_attributes::name(xpt);
107 xpt = primitive_attributes::id(ltmp);
132 os << setw(4) << xpd.size
133 << setw(4) << xpd.alignment
134 << setw(4) << xpd.index
135 <<
" " << primitive_attributes::name(xpd.index);
primitive_type
Type ids for sheaf primitives.
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.
SHEAF_DLL_SPEC namespace_member_index & operator++(namespace_member_index &x)
Prefix increment operator for namespace_member_index.