A SERVICE OF

logo

190
Appendix A: Cosmo Basic Types
The editDone() method allows you to signal when you have nished manipulating the
csMField object so that, for example, you can allow its values to take effect.
short getOffset() const;
short getStride() const;
void setCount(int n);
int getCount();
void setSize(int n);
int getSize();
void editDone();
csAtomField
csAtomField is a single-valued composite eld type. A single value eld can be
something as simple as an integer or a csVec4f.
csAtomField<Val>(csContainer *p, short i, Val *stor);
csArrayField
csArrayField is a multiple-valued array eld type. It is commonly used as the type for
array class elds.
csArrayField<ValType, ValRef>(csContainer *p, short i,
csGenArray<ValType, ValRef> *stor);
The classs set() and get() methods provide the means of setting and returning these
values.
void set(int i, ValRef t);
void get(int i, ValType& t);
ValRef get(int i);
void set(const csGenArray<ValType, ValRef> &l);
void setRange(int i, int count, const ValType vals[]);
void getRange(int i, int count, ValType vals[]);
void fillRange(int i, int count, ValRef val);
ValRef operator[](int i);