Go to the documentation of this file.
   84     int mask = (1<<start_index);
 
   85     for ( 
int i=0; i < nb_values; i++ )
 
   87         value[ i+start_index ] = values[i];
 
  106     for ( 
int i = 0; i < nb_values; i++ )
 
  110         int vi = start_index+i; 
 
  111         nb_fields = sscanf( str, 
" %lf%n", &(
value[ vi ]), &n );
 
  113         if ( nb_fields != 1 )
 
  122         while ( *str == 
',' )
 
  134     return value[ index ];
 
  173     return (
valid & (1<<index)) != 0;
 
  
cSimpleVector()
Default constructor: init members to zero.
#define USING_NAMESPACE_SDH
double value[eNUMBER_OF_ELEMENTS]
double & operator[](unsigned int index)
index operator, return a reference to the index-th element of this
void FromString(int nb_values, int start_index, char const *str)
init nb_values starting from index start_index from comma separated values in str
double & y(void)
Interpret object as x/y/z vector: return x = the first element, if that is valid.
Derived exception class for low-level simple vector related exceptions.
This file contains interface and implementation of class #SDH::cDBG, a class for colorfull debug mess...
Class for short, fixed maximum length text messages.
@ eNUMBER_OF_ELEMENTS
number of elements in vector
double & x(void)
Interpret object as x/y/z vector: return x = the first element, if that is valid.
Interface of class #SDH::cSimpleVector.
double & z(void)
Interpret object as x/y/z vector: return x = the first element, if that is valid.
int valid
bit mask which values in value are valid
bool Valid(unsigned int index) const
Return true if vector element index is valid (has been accessed at least once)
sdhlibrary_cpp
Author(s): Dirk Osswald 
autogenerated on Wed Mar 2 2022 01:00:58