COSNAMING_BINDINGITERATOR(3erl)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

✨ NAME ✨

CosNaming_BindingIterator β€” bestie, this is the interface that supports iteration over a name binding list. no cap. πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

okay so, this interface lets a client iterate over the Bindinglist it has been initiated with. that's the whole vibe. πŸ’…

The type NameComponent used below is defined as:

-record('CosNaming_NameComponent', {id, kind=""}).

id and kind are strings. ✨

The type Binding used below is defined as:

-record('CosNaming_Binding', {binding_name, binding_type}).

binding_name is a Name = [NameComponent] and binding_type is an enum which has the values nobject and ncontext. πŸ¦‹

Both these records are defined in the file CosNaming.hrl, and it is included with:

-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
literally just include it and you're set, iykyk 🫢

πŸ‘‘ EXPORTS πŸ‘‘

🌟 next_one(BindinIterator) -> Return

Types:

BindingIterator = #objref
Return = {bool(), Binding}

This operation returns the next binding and a boolean. The boolean is set to true if the binding is valid, otherwise false. And if that boolean is false? there are no more bindings to retrieve, bestie, that's it, we're done. 😭

🌈 next_n(BindinIterator, HowMany) -> Return

Types:

BindingIterator = #objref
HowMany = int()
BindingList = [Binding]
Return = {bool(), BindingList}

This operation returns a binding list with at most HowMany bindings. If there are no more bindings it returns false, otherwise true. slay. πŸ”₯

πŸ’œ destroy(BindingIterator) -> Return

Types:

BindingIterator = #objref
Return = ok

This operation destroys the binding iterator. poof, gone, main character exit. πŸ’€


so yeah, that's the whole page, page name CosNaming_...ingIterator(3), and it's an Erlang Module Definition, in case the (3) didn't already give that away πŸ’…

this lil masterpiece came from Ericsson AB, running orber 5.2.2 β€” obsessed, honestly. stay iterating, bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from