MBDyn-1.7.3
|
#include <gradient.h>
Classes | |
struct | Data |
Public Types | |
typedef RangeVectorBase< T, 0 > ::scalar_type | scalar_type |
typedef RangeVectorBase< T, 0 > ::vector_type | vector_type |
![]() | |
typedef T | vector_type |
typedef T | scalar_type |
Static Public Member Functions | |
static index_type | iGetMaxSize () |
static index_type | iGetMaxSizeVector () |
static bool | bUseDynamicMem () |
![]() | |
static index_type | iRoundStartIndexVector (index_type iStart) |
static index_type | iRoundEndIndexVector (index_type iEnd) |
Static Public Attributes | |
static const index_type | iVectorSize = RangeVectorBase<T, 0>::iVectorSize |
static const index_type | iMaxSize = IntegerTypeTraits<index_type>::iMaxValue / sizeof(scalar_type) |
static const index_type | iMaxSizeVector = iMaxSize / iVectorSize |
![]() | |
static const int | iVectorSize |
Private Types | |
enum | MemFlags { RESIZE, RESERVE } |
Private Member Functions | |
index_type | iGetCapacity () const |
index_type | iGetCapacityVector () const |
template<typename T2 , index_type N_SIZE2> | |
void | Copy (const RangeVector< T2, N_SIZE2 > &v) |
void | Copy (const RangeVector &v) |
void | Initialize (index_type iStart, index_type iEnd, const scalar_type &dVal) |
scalar_type * | begin () |
scalar_type * | end () |
const scalar_type * | begin () const |
const scalar_type * | end () const |
vector_type * | beginVec () |
vector_type * | endVec () |
const vector_type * | beginVec () const |
const vector_type * | endVec () const |
void | ReserveMem (index_type iStartNew, index_type iEndNew, MemFlags eFlags=RESIZE) |
void | FreeMem () |
Static Private Member Functions | |
static Data * | pNullData () |
Private Attributes | |
Data * | pData |
Static Private Attributes | |
static const Data | sNullData = {0} |
Definition at line 645 of file gradient.h.
typedef RangeVectorBase<T, 0>::scalar_type grad::RangeVector< T, 0 >::scalar_type |
Definition at line 648 of file gradient.h.
typedef RangeVectorBase<T, 0>::vector_type grad::RangeVector< T, 0 >::vector_type |
Definition at line 649 of file gradient.h.
|
private |
Enumerator | |
---|---|
RESIZE | |
RESERVE |
Definition at line 899 of file gradient.h.
|
inline |
|
inline |
Definition at line 660 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::Copy(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), and grad::RangeVector< T, N_SIZE >::iGetStartIndex().
|
inline |
Definition at line 669 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::Copy(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), and grad::RangeVector< T, N_SIZE >::iGetStartIndex().
|
inlineexplicit |
Definition at line 677 of file gradient.h.
References GRADIENT_ASSERT, and grad::RangeVector< T, N_SIZE >::Initialize().
|
inline |
|
inlineprivate |
Definition at line 905 of file gradient.h.
|
inlineprivate |
Definition at line 913 of file gradient.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 929 of file gradient.h.
|
inlinestatic |
Definition at line 848 of file gradient.h.
|
inlineprivate |
Definition at line 880 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::GetValue(), grad::RangeVector< T, N_SIZE >::iGetEndIndex(), grad::RangeVector< T, N_SIZE >::iGetStartIndex(), and grad::RangeVector< T, N_SIZE >::SetValue().
|
inlineprivate |
Definition at line 886 of file gradient.h.
References grad::array_copy().
|
inlineprivate |
Definition at line 909 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iGetSize().
|
inlineprivate |
Definition at line 917 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iGetSize().
|
inlineprivate |
Definition at line 925 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iGetSizeVector().
|
inlineprivate |
Definition at line 933 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iGetSizeVector().
|
inlineprivate |
Definition at line 969 of file gradient.h.
References grad::GradientAllocator< T >::deallocate_aligned().
|
inline |
Definition at line 814 of file gradient.h.
References GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), grad::RangeVector< T, N_SIZE >::iGetMaxSize(), grad::RangeVector< T, N_SIZE >::iGetStartIndex(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), grad::RangeVector< T, N_SIZE >::iVectorSize, and grad::RangeVectorTraits< T >::Zero().
|
inline |
Definition at line 831 of file gradient.h.
References GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndexVector(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), grad::RangeVector< T, N_SIZE >::iMaxSizeVector, and grad::RangeVectorTraits< T >::Zero().
|
inlineprivate |
Definition at line 869 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iVectorSize.
|
inlineprivate |
Definition at line 874 of file gradient.h.
|
inline |
Definition at line 791 of file gradient.h.
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 812 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::iMaxSizeVector.
|
inline |
Definition at line 807 of file gradient.h.
|
inline |
Definition at line 803 of file gradient.h.
|
inline |
Definition at line 787 of file gradient.h.
|
inline |
|
inlineprivate |
Definition at line 890 of file gradient.h.
References grad::array_fill(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), and grad::RangeVector< T, N_SIZE >::Reset().
|
inline |
Definition at line 691 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::Copy(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), and grad::RangeVector< T, N_SIZE >::iGetStartIndex().
|
inline |
Definition at line 703 of file gradient.h.
References grad::RangeVector< T, N_SIZE >::Copy(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), and grad::RangeVector< T, N_SIZE >::iGetStartIndex().
|
inlinestaticprivate |
|
inline |
Definition at line 762 of file gradient.h.
References GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetSizeVector(), and grad::RangeVector< T, N_SIZE >::Reserve().
|
inlineprivate |
Definition at line 937 of file gradient.h.
References grad::GradientAllocator< T >::allocate_aligned(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iEndVec, grad::RangeVectorBase< T, N_SIZE >::iRoundEndIndexVector(), grad::RangeVectorBase< T, N_SIZE >::iRoundStartIndexVector(), and grad::RangeVector< T, N_SIZE >::iStartVec.
Referenced by ResizePreserve().
|
inline |
Definition at line 754 of file gradient.h.
References grad::array_fill(), and GRADIENT_ASSERT.
Referenced by ResizePreserve().
|
inline |
Definition at line 723 of file gradient.h.
References grad::array_copy(), grad::array_fill(), beginVec(), GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iEndVec, grad::RangeVector< T, N_SIZE >::iGetEndIndexVector(), iGetEndIndexVector(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), iGetStartIndexVector(), grad::RangeVectorBase< T, N_SIZE >::iRoundEndIndexVector(), grad::RangeVectorBase< T, N_SIZE >::iRoundStartIndexVector(), pData, ReserveMem(), and Reset().
|
inline |
Definition at line 714 of file gradient.h.
References GRADIENT_ASSERT, and grad::RangeVector< T, N_SIZE >::Initialize().
|
inline |
Definition at line 823 of file gradient.h.
References GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndex(), grad::RangeVector< T, N_SIZE >::iGetMaxSize(), grad::RangeVector< T, N_SIZE >::iGetStartIndex(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), and grad::RangeVector< T, N_SIZE >::iVectorSize.
|
inline |
Definition at line 840 of file gradient.h.
References GRADIENT_ASSERT, grad::RangeVector< T, N_SIZE >::iGetEndIndexVector(), grad::RangeVector< T, N_SIZE >::iGetStartIndexVector(), and grad::RangeVector< T, N_SIZE >::iMaxSizeVector.
|
static |
Definition at line 651 of file gradient.h.
|
static |
Definition at line 653 of file gradient.h.
|
static |
Definition at line 647 of file gradient.h.
|
private |
Definition at line 1011 of file gradient.h.
Referenced by ResizePreserve().
|
staticprivate |
Definition at line 1012 of file gradient.h.