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

Meta property object. More...

#include <meta.hpp>

Public Member Functions

 prop () noexcept
 Default constructor.
 
any key () const noexcept
 Returns the stored key. More...
 
any value () const noexcept
 Returns the stored value. More...
 
 operator bool () const noexcept
 Returns true if a meta object is valid, false otherwise. More...
 
bool operator== (const prop &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 property object.

A meta property is an opaque container for a key/value pair.
Properties are associated with any other meta object to enrich it.

Definition at line 756 of file meta.hpp.

Member Function Documentation

◆ key()

any meta::prop::key ( ) const
inlinenoexcept

Returns the stored key.

Returns
A meta any containing the key stored with the given property.

Definition at line 774 of file meta.hpp.

◆ operator bool()

meta::prop::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 790 of file meta.hpp.

◆ operator==()

bool meta::prop::operator== ( const prop 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 800 of file meta.hpp.

◆ value()

any meta::prop::value ( ) const
inlinenoexcept

Returns the stored value.

Returns
A meta any containing the value stored with the given property.

Definition at line 782 of file meta.hpp.


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