Open CASCADE Technology
7.1.0.beta
|
Tool class providing typical operations on the array. It allows for interoperability between STD vector and NCollection vector. More...
#include <BVH_Types.hxx>
Public Types | |
typedef BVH::ArrayType< T, N >::Type | BVH_ArrayNt |
Static Public Member Functions | |
static const BVH::VectorType< T, N >::Type & | Value (const BVH_ArrayNt &theArray, const Standard_Integer theIndex) |
Returns a const reference to the element with the given index. More... | |
static BVH::VectorType< T, N >::Type & | ChangeValue (BVH_ArrayNt &theArray, const Standard_Integer theIndex) |
Returns a reference to the element with the given index. More... | |
static void | Append (BVH_ArrayNt &theArray, const typename BVH::VectorType< T, N >::Type &theElement) |
Adds the new element at the end of the array. More... | |
static Standard_Integer | Size (const BVH_ArrayNt &theArray) |
Returns the number of elements in the given array. More... | |
static void | Clear (BVH_ArrayNt &theArray) |
Removes all elements from the given array. More... | |
static void | Reserve (BVH_ArrayNt &theArray, const Standard_Integer theCount) |
Requests that the array capacity be at least enough to contain given number of elements. This function has no effect in case of NCollection based array. More... | |
Tool class providing typical operations on the array. It allows for interoperability between STD vector and NCollection vector.
T | Numeric data type |
N | Component number |
typedef BVH::ArrayType<T, N>::Type BVH::Array< T, N >::BVH_ArrayNt |
|
inlinestatic |
Adds the new element at the end of the array.
|
inlinestatic |
Returns a reference to the element with the given index.
|
inlinestatic |
Removes all elements from the given array.
|
inlinestatic |
Requests that the array capacity be at least enough to contain given number of elements. This function has no effect in case of NCollection based array.
|
inlinestatic |
Returns the number of elements in the given array.
|
inlinestatic |
Returns a const reference to the element with the given index.