| Valid range | [a.begin(),a.end()) is a valid range.
+Table 4. Invariants | Valid range | [a.begin(),a.end()) is a valid range.
| | Range size | a.size() == std::distance(a.begin(),a.end());.
| | Completeness |
Iteration through the range
@@ -357,10 +357,10 @@ operators, a half open range [5,10) can be specified as follows:
The following describes the
index_range interface.
-Table 5. Notation | i | An object of type index_range. | | idx,idx1,idx2,idx3 | Objects of type index. |
Table 6. Associated Types | Type | Description |
|---|
| index | This is a signed integral type. It is used to
+Table 5. Notation | i | An object of type index_range. | | idx,idx1,idx2,idx3 | Objects of type index. |
Table 6. Associated Types | Type | Description |
|---|
| index | This is a signed integral type. It is used to
specify the start, finish, and stride values. | | size_type | This is an unsigned integral type. It is used to
report the size of the range an index_range
-represents. |
Table 7. Valid Expressions | Expression | Return type | Semantics |
|---|
| index_range(idx1,idx2,idx3) | index_range | This constructs an index_range
+represents. |
Table 7. Valid Expressions | Expression | Return type | Semantics |
|---|
| index_range(idx1,idx2,idx3) | index_range | This constructs an index_range
representing the interval [idx1,idx2)
with stride idx3. | | index_range(idx1,idx2) | index_range | This constructs an index_range
representing the interval [idx1,idx2)
@@ -397,9 +397,9 @@ of i up by idx. It is equivale
parameters. Chained calls to operator[] store
range and dimension information used to
instantiate a new view into a MultiArray.
-Table 8. Notation | Dims,Ranges | Unsigned integral values. | | x | An object of type
+Table 8. Notation | Dims,Ranges | Unsigned integral values. | | x | An object of type
template gen_type<Dims,Ranges>::type. | | i | An object of type
-index_range. | | idx | Objects of type index. |
Table 9. Associated Types | Type | Description |
|---|
| index | This is a signed integral type. It is used to
+index_range. | | idx | Objects of type index. |
Table 9. Associated Types | Type | Description |
|---|
| index | This is a signed integral type. It is used to
specify degenerate dimensions. | | size_type | This is an unsigned integral type. It is used to
report the size of the range an index_range
represents. | | template gen_type::<Dims,Ranges>::type | This type generator names the result of
@@ -409,7 +409,7 @@ represents. | | template gen_type::<Dims,Ran
degenerate ranges specified (i.e. calls to
operator[](index)). Note that
index_gen and
-gen_type<0,0>::type are the same type. |
Table 10. Valid Expressions | Expression | Return type | Semantics |
|---|
| index_gen() | gen_type<0,0>::type | This constructs an index_gen
+gen_type<0,0>::type are the same type. |
Table 10. Valid Expressions | Expression | Return type | Semantics |
|---|
| index_gen() | gen_type<0,0>::type | This constructs an index_gen
object. This object can then be used to generate tuples of
index_range values. | | x[i] | gen_type<Dims+1,Ranges+1>::type | Returns a new object containing all previous
index_range objects in addition to
@@ -421,7 +421,7 @@ range, index_range(idx,idx). Note that this is NOT
equivalent to x[index_range(idx,idx)]., which will
return an object of type
gen_type<Dims+1,Ranges+1>::type.
- |
- multi_array
- multi_array_ref
- const_multi_array_ref
- template array_view<Dims>::type
- template const_array_view<Dims>::type
- template subarray<Dims>::type
- template const_subarray<Dims>::type
|
- multi_array
- multi_array_ref
- const_multi_array_ref
- template array_view<Dims>::type
- template const_array_view<Dims>::type
- template subarray<Dims>::type
- template const_subarray<Dims>::type
Boost.MultiArray defines an array class,
multi_array, and two adapter classes,
multi_array_ref and
@@ -1117,7 +1117,7 @@ operator[](index idx) const; This function returns a new
extent_range objects in addition to
extent_range(0,idx). This function gives the array
constructors a similar syntax to traditional C multidimensional array
-declaration. For syntactic convenience, Boost.MultiArray defines two
+declaration. For syntactic convenience, Boost.MultiArray defines two
global objects as part of its
interface. These objects play the role of object generators;
expressions involving them create other objects of interest.
|
|
|
|