cee::ug::DataPartSymmetricTensor Class Reference

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 SymmetricTensorvalue (size_t index) const
 Returns the result value for the given index. More...
 
SymmetricTensorvalue (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...
 
- Public Member Functions inherited from cee::RefCountedObject
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...
 
Inheritance diagram for cee::ug::DataPartSymmetricTensor:
cee::RefCountedObject

Detailed Description

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

See also
DataPart
DataResultSymmetricTensor

Constructor & Destructor Documentation

cee::ug::DataPartSymmetricTensor::DataPartSymmetricTensor ( )

Constructs an empty object.

Member Function Documentation

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.

Warning
The specified index must be a valid index. Either call one of the setValues() methods or call resize() prior to calling this method.
See also
resize()
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.

Warning
The specified index must be a valid index. Either call one of the setValues() methods or call resize() prior to calling this method.
See also
resize()
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.