190
Appendix A: Cosmo Basic Types
The editDone() method allows you to signal when you have finished 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 field type. A single value field 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 field type. It is commonly used as the type for
array class fields.
csArrayField<ValType, ValRef>(csContainer *p, short i,
csGenArray<ValType, ValRef> *stor);
The class’s 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);