class Intermediate

Defined at line 101 of file ../../sdk/lib/fdio/namespace/local-vnode.h

Public Methods

void ~Intermediate ()

Defined at line 69 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

size_t num_children ()

Defined at line 24 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

zx::result<std::tuple<fbl::RefPtr<LocalVnode>, bool>> LookupOrInsert (fbl::String name, fit::function<zx::result<fbl::RefPtr<LocalVnode>> (ParentAndId)> builder)

Returns (child, false) if a child with |name| exists, otherwise creates a new child with

|name| using |builder| and returns (child, true). Returns the error if |builder| fails.

Defined at line 26 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

void RemoveEntry (LocalVnode * vn, uint64_t id)

Defined at line 46 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

void Intermediate (const Intermediate & )

Defined at line 103 of file ../../sdk/lib/fdio/namespace/local-vnode.h

void Intermediate (Intermediate && )

Defined at line 104 of file ../../sdk/lib/fdio/namespace/local-vnode.h

Intermediate & operator= (const Intermediate & )

Defined at line 105 of file ../../sdk/lib/fdio/namespace/local-vnode.h

Intermediate & operator= (Intermediate && )

Defined at line 106 of file ../../sdk/lib/fdio/namespace/local-vnode.h

void Intermediate ()

Defined at line 108 of file ../../sdk/lib/fdio/namespace/local-vnode.h

zx::result<std::string_view> Readdir (uint64_t * last_seen)

See |LocalVnode::Readdir|.

Defined at line 164 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

fbl::RefPtr<LocalVnode> Lookup (const fbl::String & name)

Returns a child if it has the name |name|.

Otherwise, returns nullptr.

Defined at line 54 of file ../../sdk/lib/fdio/namespace/local-vnode.cc

template <typename Fn>
zx_status_t ForAllEntries (Fn fn)

Invoke |Fn()| on all entries in this Intermediate node_type.

May be used as a const visitor-pattern for all entries.

Any status other than ZX_OK returned from |Fn()| will halt iteration

immediately and return.

Defined at line 176 of file ../../sdk/lib/fdio/namespace/local-vnode.cc