21 #include "SheafSystem/standard_dof_tuple_index.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/std_string.h" 30 const int STANDARD_DOF_TUPLE_INDEX_CT =
31 sheaf::STANDARD_DOF_TUPLE_INDEX_END - sheaf::STANDARD_DOF_TUPLE_INDEX_BEGIN;
40 (x == STANDARD_DOF_TUPLE_INDEX_END) ?
41 STANDARD_DOF_TUPLE_INDEX_BEGIN :
54 static const string names[STANDARD_DOF_TUPLE_INDEX_CT+1] =
56 "EMPTY_DOF_TUPLE_INDEX",
57 "NOT_A_STANDARD_DOF_TUPLE_INDEX" 60 const string* lresult_ptr = &names[STANDARD_DOF_TUPLE_INDEX_CT];
65 lresult_ptr = &names[lpt - STANDARD_DOF_TUPLE_INDEX_BEGIN];
68 const string& result = *lresult_ptr;
72 ensure(!result.empty());
86 i< STANDARD_DOF_TUPLE_INDEX_END;
110 EMPTY_DOF_TUPLE_INDEX,
111 NOT_A_STANDARD_DOF_TUPLE_INDEX
117 result = prims[xindex];
139 (STANDARD_DOF_TUPLE_INDEX_BEGIN <= xindex) && (xindex < STANDARD_DOF_TUPLE_INDEX_END);
SHEAF_DLL_SPEC standard_dof_tuple_index standard_dof_tuple_index_from_index(pod_index_type xindex)
The enumerator corresponding to primitive index xindex.
standard_dof_tuple_index
Ids for standard dof tuples.
SHEAF_DLL_SPEC standard_dof_tuple_index standard_dof_tuple_index_from_name(const std::string &xname)
The enumerator with name xname.
SHEAF_DLL_SPEC bool is_standard_dof_tuple_index(pod_index_type xindex)
True if xindex is a valid primitive index.
int_type pod_index_type
The plain old data index type.
SHEAF_DLL_SPEC const std::string & standard_dof_tuple_index_to_name(standard_dof_tuple_index xpt)
The name of the enumerator xpt.
SHEAF_DLL_SPEC namespace_member_index & operator++(namespace_member_index &x)
Prefix increment operator for namespace_member_index.