AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxData::AbstractScalar Class Reference

Abstract representation of a scalar variable. More...

#include <Scalar.h>

+ Inheritance diagram for agxData::AbstractScalar:

Public Member Functions

 AbstractScalar ()
 
 AbstractScalar (void *storage)
 
 AbstractScalar (const AbstractScalar &other, agx::IndexRange localRange)
 
const AbstractArray & asArray () const
 
AbstractArray & asArray ()
 
template<typename T >
Array< T > & asArray ()
 
template<typename T >
const Array< T > & asArray () const
 
const AbstractScalar & asScalar () const
 
AbstractScalar & asScalar ()
 
template<typename T >
Scalar< T > & asScalar ()
 
template<typename T >
const Scalar< T > & asScalar () const
 
template<typename T >
T & get ()
 
template<typename T >
const T & get () const
 
void * ptr ()
 
const void * ptr () const
 
void setStorage (void *storage)
 Set the memory area for the scalar. More...
 
size_t size () const
 

Protected Attributes

void * m_ptr
 

Detailed Description

Abstract representation of a scalar variable.

Definition at line 29 of file Scalar.h.

Constructor & Destructor Documentation

agxData::AbstractScalar::AbstractScalar ( )

Definition at line 103 of file Scalar.h.

agxData::AbstractScalar::AbstractScalar ( void *  storage)

Definition at line 106 of file Scalar.h.

agxData::AbstractScalar::AbstractScalar ( const AbstractScalar &  other,
agx::IndexRange  localRange 
)

Definition at line 109 of file Scalar.h.

Member Function Documentation

const Array< T > & agxData::Data::asArray ( ) const
inherited

Definition at line 617 of file Buffer.h.

Array< T > & agxData::Data::asArray ( )
inherited

Definition at line 616 of file Buffer.h.

template<typename T >
Array<T>& agxData::Data::asArray ( )
inherited
template<typename T >
const Array<T>& agxData::Data::asArray ( ) const
inherited
const Scalar< T > & agxData::Data::asScalar ( ) const
inherited

Definition at line 92 of file Scalar.h.

Scalar< T > & agxData::Data::asScalar ( )
inherited

Definition at line 91 of file Scalar.h.

template<typename T >
Scalar<T>& agxData::Data::asScalar ( )
inherited
template<typename T >
const Scalar<T>& agxData::Data::asScalar ( ) const
inherited
template<typename T >
T & agxData::AbstractScalar::get ( )
Returns
The data value

Definition at line 118 of file Scalar.h.

References agxAssert, agxData::getFormat(), and agxData::Data::m_ptr.

template<typename T >
const T & agxData::AbstractScalar::get ( ) const
Returns
The data value

Definition at line 129 of file Scalar.h.

References agxAssert, agxData::getFormat(), and agxData::Data::m_ptr.

void * agxData::Data::ptr ( )
inherited
Returns
A pointer to the raw data.

Definition at line 84 of file Data.h.

References agxData::Data::m_ptr.

Referenced by agxData::Value::get(), agxData::Value::isValid(), agxData::Value::ptr(), and agxData::Value::transform().

const void * agxData::Data::ptr ( ) const
inherited

Definition at line 85 of file Data.h.

References agxData::Data::m_ptr.

void agxData::AbstractScalar::setStorage ( void *  storage)

Set the memory area for the scalar.

Definition at line 140 of file Scalar.h.

References agxData::Data::m_ptr.

size_t agxData::AbstractScalar::size ( ) const
Returns
1 (Used for template programming)

Definition at line 112 of file Scalar.h.

Member Data Documentation


The documentation for this class was generated from the following file: