20 #ifndef TERNARY_INDEX_H 21 #define TERNARY_INDEX_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/unary_index.h" 31 #ifndef STD_IOSTREAM_H 32 #include "SheafSystem/std_iostream.h" 35 #ifndef ASSERT_CONTRACT_H 36 #include "SheafSystem/assert_contract.h" 140 ensure(result.
i = i + xother.
i);
141 ensure(result.
j = j + xother.
j);
142 ensure(result.
k = k + xother.
k);
158 define_old_variable(unary_index old_i = i);
159 define_old_variable(unary_index old_j = j);
160 define_old_variable(unary_index old_k = k);
168 ensure(i = old_i + xother.
i);
169 ensure(j = old_j + xother.
j);
170 ensure(k = old_k + xother.
k);
180 #ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN 187 #endif // ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN 192 #endif // ifndef TERNARY_INDEX_H A triple of indices (i,j, k).
unary_index j
The second index.
unary_index i
The first index.
ternary_index(unary_index xi, unary_index xj, unary_index xk)
Creates an instance with i == xi, j == xj, k == xk.
ternary_index()
Default Constructor; creates an instance with i == j == k == 0;.
ternary_index & operator+=(const ternary_index &xother)
Self-allocated sum.
unary_index k
The third index.
ternary_index operator+(const ternary_index &xother) const
Sum.
Namespace for the fiber_bundles component of the sheaf system.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &os, const binary_index &xbi)
Insert binary_index& xbi into ostream& os.