meta  1.4.9
Public Member Functions | Friends | List of all members
meta::conv Class Reference

Meta conversion function object. More...

#include <meta.hpp>

Public Member Functions

 conv () noexcept
 Default constructor.
 
meta::type parent () const noexcept
 Returns the meta type to which a meta conversion function belongs. More...
 
meta::type type () const noexcept
 Returns the meta type of a given meta conversion function. More...
 
any convert (const void *instance) const noexcept
 Converts an instance to a given type. More...
 
 operator bool () const noexcept
 Returns true if a meta object is valid, false otherwise. More...
 
bool operator== (const conv &other) const noexcept
 Checks if two meta objects refer to the same node. More...
 

Friends

template<typename >
class factory
 A meta factory is allowed to create meta objects.
 

Detailed Description

Meta conversion function object.

A meta conversion function is an opaque container for a conversion function to be used to convert a given instance to another type.

Definition at line 901 of file meta.hpp.

Member Function Documentation

◆ convert()

any meta::conv::convert ( const void *  instance) const
inlinenoexcept

Converts an instance to a given type.

Parameters
instanceThe instance to convert.
Returns
An opaque pointer to the instance to convert.

Definition at line 932 of file meta.hpp.

◆ operator bool()

meta::conv::operator bool ( ) const
inlineexplicitnoexcept

Returns true if a meta object is valid, false otherwise.

Returns
True if the meta object is valid, false otherwise.

Definition at line 940 of file meta.hpp.

◆ operator==()

bool meta::conv::operator== ( const conv other) const
inlinenoexcept

Checks if two meta objects refer to the same node.

Parameters
otherThe meta object with which to compare.
Returns
True if the two meta objects refer to the same node, false otherwise.

Definition at line 950 of file meta.hpp.

◆ parent()

meta::type meta::conv::parent ( ) const
inlinenoexcept

Returns the meta type to which a meta conversion function belongs.

Returns
The meta type to which the meta conversion function belongs.

Definition at line 1970 of file meta.hpp.

◆ type()

meta::type meta::conv::type ( ) const
inlinenoexcept

Returns the meta type of a given meta conversion function.

Returns
The meta type of the meta conversion function.

Definition at line 1975 of file meta.hpp.


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