GL Studio C++ Runtime API
|
#include <util.h>
Public Member Functions | |
GlsMultiVal () | |
GlsMultiVal (const GlsMultiVal &src) | |
GlsMultiVal (const T1 &val1, const T2 &val2=T2(), const T3 &val3=T3(), const T4 &val4=T4(), const T5 &val5=T5(), const T6 &val6=T6(), const T7 &val7=T7(), const T8 &val8=T8(), const T9 &val9=T9(), const T10 &val10=T10()) | |
virtual bool | operator== (const GlsMultiVal &val) const |
virtual bool | operator!= (const GlsMultiVal &val) const |
virtual void | StreamOut (ostreamType &outstr) const override |
virtual void | StreamIn (istreamType &instr) override |
virtual void | StreamOut (ostreamType &outstr) const =0 |
virtual void | StreamIn (istreamType &instr)=0 |
Additional Inherited Members | |
Public Types inherited from GlsMultiValBase | |
typedef std::ostream | ostreamType |
Typedef shorthand for std::ostream. | |
typedef std::istream | istreamType |
Typedef shorthand for std::istream. | |
GlsMultiVal is used to effectivly create a structure containing up to 10 values of varying types. An instance of the class is capable of streaming itself to and from a text stream. The individual values will be separated by spaces when written and read from the stream. The types have to follow some rules:
|
inline |
Default constructor. The _val member types must have default constructors.
|
inline |
Copy constructor. This GlsMultiVal will copy values from the src GlsMultiVal.
src | GlsMultiVal object to use for initialization. |
|
inline |
Full constructor. Creates a GlsMultiVal object with the provided data.
val1 | First value to use for intialization of type T1. |
val2 | Second value to use for intialization of type T2. |
val3 | Third value to use for intialization of type T3. |
val4 | Fourth value to use for intialization of type T4. |
val5 | Fifth value to use for intialization of type T5. |
val6 | Sixth value to use for intialization of type T6. |
val7 | Seventh value to use for intialization of type T7. |
val8 | Eighth value to use for intialization of type T8. |
val9 | Ninth value to use for intialization of type T9. |
val10 | Tenth value to use for intialization of type T10. |
|
inlinevirtual |
Inequality operator
val | The object to compare against. |
|
inlinevirtual |
Equality operator
val | The object to compare against. |
|
inlineoverridevirtual |
Uses the provided istream object to populate the current GlsMultiVal object.
instr | This is the stream object used by the GlsMultiVal instance to populate itself. |
Implements GlsMultiValBase.
|
inlineoverridevirtual |
This function serializes itself into the provided stream object.
outstr | This is the object used by the GlsMultiVal class to serialize itself onto. |
Implements GlsMultiValBase.