nexuslua
Loading...
Searching...
No Matches
nexuslua::PluginRegistry::Iterator Struct Reference

enable iteration over plugins using an instance of PluginsOnline More...

#include <plugin_registry.hpp>

Public Types

using iterator_category = std::input_iterator_tag
using difference_type = std::ptrdiff_t
using value_type = std::shared_ptr<Agent>
using pointer
 Type of the iterator's pointer-like object.

Public Member Functions

 Iterator (pointer ptr)
 Construct a new Iterator object.
value_type operator* () const
 dereference operator
pointer operator-> ()
 arrow operator
Iteratoroperator++ ()
 prefix increment
const Iterator operator++ (int)
 postfix increment

Friends

bool operator== (const Iterator &a, const Iterator &b)
 equality comparison operator
bool operator!= (const Iterator &a, const Iterator &b)
 inequality comparison operator

Detailed Description

enable iteration over plugins using an instance of PluginsOnline

Member Typedef Documentation

◆ difference_type

◆ iterator_category

◆ pointer

Initial value:
struct
{
Impl* impl;
std::size_t pos;
}

Type of the iterator's pointer-like object.

◆ value_type

Constructor & Destructor Documentation

◆ Iterator()

nexuslua::PluginRegistry::Iterator::Iterator ( pointer ptr)
inlineexplicit

Construct a new Iterator object.

Parameters
ptrA pointer-like object of type pointer representing the iterator's position.

Member Function Documentation

◆ operator*()

value_type nexuslua::PluginRegistry::Iterator::operator* ( ) const

dereference operator

Returns
the value pointed to by the iterator

◆ operator++() [1/2]

Iterator & nexuslua::PluginRegistry::Iterator::operator++ ( )
inline

prefix increment

◆ operator++() [2/2]

const Iterator nexuslua::PluginRegistry::Iterator::operator++ ( int )
inline

postfix increment

◆ operator->()

pointer nexuslua::PluginRegistry::Iterator::operator-> ( )
inline

arrow operator

Returns
the iterator’s pointer-like object

◆ operator!=

bool operator!= ( const Iterator & a,
const Iterator & b )
friend

inequality comparison operator

◆ operator==

bool operator== ( const Iterator & a,
const Iterator & b )
friend

equality comparison operator


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