19 #ifndef BINARY_INDEX_H 20 #define BINARY_INDEX_H 22 #ifndef SHEAF_DLL_SPEC_H 23 #include "SheafSystem/sheaf_dll_spec.h" 27 #include "SheafSystem/unary_index.h" 30 #ifndef STD_IOSTREAM_H 31 #include "SheafSystem/std_iostream.h" 34 #ifndef ASSERT_CONTRACT_H 35 #include "SheafSystem/assert_contract.h" 130 ensure(result.
i = i + xother.
i);
131 ensure(result.
j = j + xother.
j);
147 define_old_variable(unary_index old_i = i);
148 define_old_variable(unary_index old_j = j);
155 ensure(i = old_i + xother.
i);
156 ensure(j = old_j + xother.
j);
166 #ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN 174 #endif // ifndef DOXYGEN_1_5_4_SKIP_UNKNOWN 179 #endif // ifndef BINARY_INDEX_H
binary_index operator+(const binary_index &xother) const
Sum.
binary_index(unary_index xi, unary_index xj)
Creates an instance with i == xi, j == xj.
unary_index i
The first index.
unary_index j
The second index.
binary_index & operator+=(const binary_index &xother)
Self-allocated sum.
Namespace for the fiber_bundles component of the sheaf system.
binary_index()
Default Constructor; creates an instance with i == j == 0;.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &os, const binary_index &xbi)
Insert binary_index& xbi into ostream& os.