AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxData::Scalar< T > Class Template Reference

Templated scalar. More...

#include <Data.h>

+ Inheritance diagram for agxData::Scalar< T >:

Public Types

typedef T Type
 

Public Member Functions

 Scalar (const T &value=T())
 
 Scalar (void *storage)
 
 Scalar (const Scalar< T > &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
 
T & get ()
 
const T & get () const
 
 operator const T & () const
 
 operator T & ()
 
Scalar< T > & operator= (const Scalar< T > &value)
 
Scalar< T > & operator= (const T &value)
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
void * ptr ()
 
const void * ptr () const
 
void setStorage (void *storage)
 Set the memory area for the scalar. More...
 
size_t size () const
 

Static Public Attributes

static const bool IsScalar = true
 

Protected Attributes

void * m_ptr
 

Detailed Description

template<typename T>
class agxData::Scalar< T >

Templated scalar.

Definition at line 30 of file Data.h.

Member Typedef Documentation

template<typename T>
typedef T agxData::Scalar< T >::Type

Definition at line 58 of file Scalar.h.

Constructor & Destructor Documentation

template<typename T >
agxData::Scalar< T >::Scalar ( const T &  value = T())

Definition at line 145 of file Scalar.h.

template<typename T >
agxData::Scalar< T >::Scalar ( void *  storage)

Definition at line 148 of file Scalar.h.

template<typename T >
agxData::Scalar< T >::Scalar ( const Scalar< T > &  other,
agx::IndexRange  localRange 
)

Definition at line 151 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::Scalar< T >::get ( )
Returns
The data value

Definition at line 156 of file Scalar.h.

template<typename T >
const T & agxData::Scalar< T >::get ( ) const

Definition at line 159 of file Scalar.h.

template<typename T >
agxData::Scalar< T >::operator const T & ( ) const

Definition at line 171 of file Scalar.h.

template<typename T >
agxData::Scalar< T >::operator T & ( )

Definition at line 168 of file Scalar.h.

template<typename T >
Scalar< T > & agxData::Scalar< T >::operator= ( const Scalar< T > &  value)

Definition at line 174 of file Scalar.h.

References agxData::Data::m_ptr.

template<typename T >
Scalar< T > & agxData::Scalar< T >::operator= ( const T &  value)

Definition at line 177 of file Scalar.h.

template<typename T >
T & agxData::Scalar< T >::operator[] ( size_t  index)
Returns
The data value (Used for template programming)

Definition at line 162 of file Scalar.h.

template<typename T >
const T & agxData::Scalar< T >::operator[] ( size_t  index) const

Definition at line 165 of file Scalar.h.

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

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
inherited
Returns
1 (Used for template programming)

Definition at line 112 of file Scalar.h.

Member Data Documentation

template<typename T>
const bool agxData::Scalar< T >::IsScalar = true
static

Definition at line 59 of file Scalar.h.


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