Gnash
0.8.11dev
|
A class to contain transferable arguments for a fn_call. More...
#include <as_function.h>
Public Types | |
typedef std::vector< T >::size_type | size_type |
typedef std::vector< T > | container_type |
typedef T | value_type |
Public Member Functions | |
FunctionArgs ()=default | |
FunctionArgs (FunctionArgs &&other)=default | |
FunctionArgs (const FunctionArgs &other)=default | |
The copy constructor copies all the arguments. More... | |
FunctionArgs & | operator+= (T t) |
FunctionArgs & | operator, (T t) |
template<typename U > | |
FunctionArgs & | operator, (U &&u) |
template<typename U > | |
FunctionArgs & | operator+= (U &&u) |
void | setReachable () const |
Mark any reachable resources. More... | |
void | swap (std::vector< T > &to) |
size_type | size () const |
A class to contain transferable arguments for a fn_call.
The operators += and , are implemented for intuitive syntax: FunctionArgs<as_value> args; args += 0.0, "string", NaN. This may have unexpected side effects if it is used in unexpected ways, so stick to using such lists, or use operator += repeatedly. The arguments can be moved to another container, and this happens when the FunctionArgs object is passed to fn_call. It will still be valid afterwards, but will contain no arguments.
typedef std::vector<T> gnash::FunctionArgs< T >::container_type |
typedef std::vector<T>::size_type gnash::FunctionArgs< T >::size_type |
typedef T gnash::FunctionArgs< T >::value_type |
|
default |
|
default |
|
default |
The copy constructor copies all the arguments.
|
inline |
|
inline |
References gnash::key::u.
|
inline |
|
inline |
References gnash::key::u.
|
inline |
Mark any reachable resources.
This is only for cases where the lifetime of a FunctionArgs object extends beyond a function call.
References gnash::renderer::opengl::for_each(), and gnash::as_value::setReachable().
Referenced by gnash::Timer::markReachableResources().
|
inline |
|
inline |