AGXDynamics  2.31.1.0
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

◆ AbstractScalar() [1/3]

agxData::AbstractScalar::AbstractScalar ( )

Definition at line 103 of file Scalar.h.

◆ AbstractScalar() [2/3]

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

Definition at line 106 of file Scalar.h.

◆ AbstractScalar() [3/3]

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

Definition at line 109 of file Scalar.h.

Member Function Documentation

◆ asArray() [1/4]

const AbstractArray & agxData::Data::asArray ( ) const
inherited

Definition at line 617 of file Buffer.h.

◆ asArray() [2/4]

AbstractArray & agxData::Data::asArray ( )
inherited

Definition at line 616 of file Buffer.h.

◆ asArray() [3/4]

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

Definition at line 620 of file Buffer.h.

◆ asArray() [4/4]

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

Definition at line 623 of file Buffer.h.

◆ asScalar() [1/4]

const AbstractScalar & agxData::Data::asScalar ( ) const
inherited

Definition at line 92 of file Scalar.h.

◆ asScalar() [2/4]

AbstractScalar & agxData::Data::asScalar ( )
inherited

Definition at line 91 of file Scalar.h.

◆ asScalar() [3/4]

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

Definition at line 95 of file Scalar.h.

◆ asScalar() [4/4]

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

Definition at line 98 of file Scalar.h.

◆ get() [1/2]

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.

◆ get() [2/2]

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.

◆ ptr() [1/2]

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.

◆ ptr() [2/2]

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

Definition at line 85 of file Data.h.

References agxData::Data::m_ptr.

◆ setStorage()

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()

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

Definition at line 112 of file Scalar.h.

Member Data Documentation

◆ m_ptr


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