SGRawValuePointer Class Template Reference

#include <props.hxx>

Inherits SGRawValue< T >.

List of all members.


Detailed Description

template<class T>
class SGRawValuePointer< T >

This is the most efficient way to tie an external value, but also the most dangerous, because there is no way for the supplier to perform bounds checking and derived calculations except by polling the variable to see if it has changed. There is no default constructor, because this class would be meaningless without a pointer.

Definition at line 226 of file props.hxx.


Public Member Functions

virtual SGRawValue< T > * clone () const
 Create a copy of this raw value.
virtual T getValue () const
 Get the underlying value.
virtual bool setValue (T value)
 Set the underlying value.
 SGRawValuePointer (T *ptr)
 Explicit pointer constructor.
virtual ~SGRawValuePointer ()
 Destructor.

Constructor & Destructor Documentation

SGRawValuePointer ( T *  ptr  )  [inline]

Create a new raw value bound to the value of the variable referenced by the pointer.

Parameters:
ptr The pointer to the variable to which this raw value will be bound.

Definition at line 239 of file props.hxx.


Member Function Documentation

virtual SGRawValue<T>* clone (  )  const [inline, virtual]

The copy will use the same external pointer as the original.

Implements SGRawValue.

Definition at line 267 of file props.hxx.

virtual T getValue (  )  const [inline, virtual]

This method will dereference the pointer and return the variable's value.

Implements SGRawValue.

Definition at line 252 of file props.hxx.

virtual bool setValue ( value  )  [inline, virtual]

This method will dereference the pointer and change the variable's value.

Implements SGRawValue.

Definition at line 260 of file props.hxx.


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

Generated on Tue May 26 00:55:08 2009 for JSBSim Flight Dynamics Model by  doxygen 1.5.5