Symmetric tensor result values for a part. More...
Public Member Functions | |
DataPartSymmetricTensor () | |
Constructs an empty object. More... | |
size_t | count () const |
Returns the number of result values. More... | |
const SymmetricTensor & | value (size_t index) const |
Returns the result value for the given index. More... | |
SymmetricTensor & | value (size_t index) |
Returns the result value for the given index. More... | |
const double * | rawValuePointer () const |
Returns a raw pointer to the value array. More... | |
double * | rawValuePointer () |
Returns a modifiable raw pointer to the value array. More... | |
void | resize (size_t count) |
Sets the number of values in the object. Count is the number of symmetric tensors. More... | |
void | setValue (size_t index, const SymmetricTensor &value) |
Sets the value at the given index. More... | |
void | setValueUndefined (size_t index) |
Sets an undefined value at the given index. More... | |
void | setValues (const std::vector< SymmetricTensor > &values) |
Sets the vector values from a std::vector of SymmetricTensors. More... | |
void | setValues (const double values[], size_t symmetricTensorCount) |
Sets the vector values from an array of doubles. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Symmetric tensor result values for a part.
A symmetric tensor result is a set of 6 values for each item. The values are specified as xx, yy, zz, xy, yz, zx
cee::ug::DataPartSymmetricTensor::DataPartSymmetricTensor | ( | ) |
Constructs an empty object.
size_t cee::ug::DataPartSymmetricTensor::count | ( | ) | const |
Returns the number of result values.
const double * cee::ug::DataPartSymmetricTensor::rawValuePointer | ( | ) | const |
Returns a raw pointer to the value array.
double * cee::ug::DataPartSymmetricTensor::rawValuePointer | ( | ) |
Returns a modifiable raw pointer to the value array.
void cee::ug::DataPartSymmetricTensor::resize | ( | size_t | count | ) |
Sets the number of values in the object. Count is the number of symmetric tensors.
The current values in the object will be kept up to the given count (if shrinking).
void cee::ug::DataPartSymmetricTensor::setValue | ( | size_t | index, |
const SymmetricTensor & | value | ||
) |
Sets the value at the given index.
void cee::ug::DataPartSymmetricTensor::setValues | ( | const std::vector< SymmetricTensor > & | values | ) |
Sets the vector values from a std::vector of SymmetricTensors.
void cee::ug::DataPartSymmetricTensor::setValues | ( | const double | values[], |
size_t | symmetricTensorCount | ||
) |
Sets the vector values from an array of doubles.
The array must be at least symmetricTensorCount*6 items long, as symmetricTensorCount is the number of result values, not the number of floats in the array.
void cee::ug::DataPartSymmetricTensor::setValueUndefined | ( | size_t | index | ) |
Sets an undefined value at the given index.
const SymmetricTensor & cee::ug::DataPartSymmetricTensor::value | ( | size_t | index | ) | const |
Returns the result value for the given index.
SymmetricTensor & cee::ug::DataPartSymmetricTensor::value | ( | size_t | index | ) |
Returns the result value for the given index.