21 #include "SheafSystem/standard_member_index.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/std_string.h" 30 const int STANDARD_MEMBER_INDEX_CT =
31 sheaf::STANDARD_MEMBER_INDEX_END - sheaf::STANDARD_MEMBER_INDEX_BEGIN;
40 (x == STANDARD_MEMBER_INDEX_END) ?
41 STANDARD_MEMBER_INDEX_BEGIN :
54 static const string names[STANDARD_MEMBER_INDEX_CT+1] =
58 "NOT_A_STANDARD_MEMBER_INDEX" 61 const string* lresult_ptr = &names[STANDARD_MEMBER_INDEX_CT];
66 lresult_ptr = &names[lpt - STANDARD_MEMBER_INDEX_BEGIN];
69 const string& result = *lresult_ptr;
73 ensure(!result.empty());
87 i< STANDARD_MEMBER_INDEX_END;
113 NOT_A_STANDARD_MEMBER_INDEX
119 result = prims[xindex];
141 (STANDARD_MEMBER_INDEX_BEGIN <= xindex) && (xindex < STANDARD_MEMBER_INDEX_END);
standard_member_index
Ids for standard poset members.
SHEAF_DLL_SPEC standard_member_index standard_member_index_from_index(pod_index_type xindex)
The enumerator corresponding to primitive index xindex.
SHEAF_DLL_SPEC standard_member_index standard_member_index_from_name(const std::string &xname)
The enumerator with name xname.
SHEAF_DLL_SPEC bool is_standard_member_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 namespace_member_index & operator++(namespace_member_index &x)
Prefix increment operator for namespace_member_index.
SHEAF_DLL_SPEC const std::string & standard_member_index_to_name(standard_member_index xpt)
The name of the enumerator xpt.