PrevNextUpHome SophiaFramework UNIVERSE 5.3
va_ref
Template class which implements call-by-reference on variable-length argument function.
#include <SFCType.h.hpp>
class va_ref;

Example

class ExampleClass;  // user defined class
void example_func(va_ref<ExampleClass>, ...);  // forward declaration of variable-length argument function

...

// inside a function
  ExampleClass exampleObj;
  example_func(exampleObj);  // automatically wrapped by the va_ref class
..

Member

Constructor/Destructor
va_ref( T & param )
Constructor of va_ref class.
Public Functions
T & operator*( Void )
Retrieve the maintained object.
T * operator->( Void )
Get the pointer to the maintained object.

va_ref::va_ref
Constructor of va_ref class.
[ public ]
va_ref(
    T & param   // the object converted into reference
);

va_ref::operator->
Get the pointer to the maintained object.
[ public, const ]
T * operator->(Void);

va_ref::operator*
Retrieve the maintained object.
[ public, const ]
T & operator*(Void);