GATE
Loading...
Searching...
No Matches
gate_variant_t Interface Reference

Reference-counted wrapper object carrying a instance of a set of supported types. More...

#include <wrappers.h>

Inheritance diagram for gate_variant_t:
gate_wrapper_t gate_memoryblock_t gate_object_t

Public Member Functions

gate_result_t set_content (void const *ptr_content, gate_size_t size, void const *ptr_type)
 Returns a language-native type identifier.
 
- Public Member Functions inherited from gate_wrapper_t
void const * get_type ()
 Returns a language-native type identifier.
 
gate_bool_t is_type (void const *compare_with)
 returns true if embedded type equals given native type identifier
 
- Public Member Functions inherited from gate_memoryblock_t
gate_size_t get_size ()
 Returns the size of the allocated memory block.
 
void * get_content ()
 Returns a pointer to the begin of the memory data block.
 
- Public Member Functions inherited from gate_object_t
char const * get_interface_name ()
 Returns on object's interface path name.
 
void release ()
 Decrease object's reference counter, releases the object when count reaches zero.
 
int retain ()
 Increase object's reference counter.
 

Detailed Description

Reference-counted wrapper object carrying a instance of a set of supported types.

Member Function Documentation

◆ set_content()

gate_result_t set_content ( void const * ptr_content,
gate_size_t size,
void const * ptr_type )

Returns a language-native type identifier.

Parameters
[in]ptr_contentPointer to type content data to be inserted into variant carrier object
[in]sizeLength of content data in bytes
[in]ptr_typePointer to type object identifying the object class
Returns
GATE_RESULT_* result code

The documentation for this interface was generated from the following file: