VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtNLengthRealVector Class Reference

Description: DtNLengthRealVector is a named, readable/writable vector of integers of arbitrary length. More...

Inheritance diagram for DtNLengthRealVector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtNLengthRealVector ()
 default constructor
 DtNLengthRealVector (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 real constructor
 DtNLengthRealVector (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 DtNLengthRealVector (const DtNLengthRealVector &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
const DtNLengthRealVectoroperator= (const DtNLengthRealVector &orig)
 assign to DtNLengthRealVector... assigns value only
virtual ~DtNLengthRealVector ()
virtual DtNLengthRealVectorclone (DtReaderWriterRegistry *parentRegistry=0) const
virtual void setVectorLength (int length)
 NB: Setting the vector length reallocates the memory for the object, thereby destroying any existing data.
virtual int vectorLength () const
virtual DtReal & operator[] (const int i)
virtual DtReal value (const int i) const
virtual void putData (FILE *fp, int indentLevel=0)
 Deriving class overrides these to get/put class specific data.
virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
virtual void copyVector (const DtNLengthRealVector &vector)
virtual const char * readerWriterType () const
 Used to supply a string type that this reader writer type is.

Protected Attributes

DtReal * myReals
int myVectorLength

Detailed Description

Description: DtNLengthRealVector is a named, readable/writable vector of integers of arbitrary length.


Constructor & Destructor Documentation

default constructor

DtNLengthRealVector::DtNLengthRealVector ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL 
)

real constructor

DtNLengthRealVector::DtNLengthRealVector ( const DtSymbolString name,
DtReaderWriterRegistry parentRegistry = NULL 
)

copy constructor


Member Function Documentation

const DtNLengthRealVector& DtNLengthRealVector::operator= ( const DtNLengthRealVector orig)

assign to DtNLengthRealVector... assigns value only

virtual DtNLengthRealVector* DtNLengthRealVector::clone ( DtReaderWriterRegistry parentRegistry = 0) const [virtual]
virtual void DtNLengthRealVector::setVectorLength ( int  length) [virtual]

NB: Setting the vector length reallocates the memory for the object, thereby destroying any existing data.

virtual int DtNLengthRealVector::vectorLength ( ) const [virtual]
virtual DtReal& DtNLengthRealVector::operator[] ( const int  i) [virtual]
virtual DtReal DtNLengthRealVector::value ( const int  i) const [virtual]
virtual void DtNLengthRealVector::putData ( FILE *  fp,
int  indentLevel = 0 
) [virtual]

Deriving class overrides these to get/put class specific data.

Reimplemented from DtReaderWriter.

virtual DtlObjPtr DtNLengthRealVector::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [virtual]
virtual void DtNLengthRealVector::copyVector ( const DtNLengthRealVector vector) [virtual]
virtual const char* DtNLengthRealVector::readerWriterType ( ) const [virtual]

Used to supply a string type that this reader writer type is.

This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create

Reimplemented from DtReaderWriter.


Member Data Documentation

DtReal* DtNLengthRealVector::myReals [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)