-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdynamic-list-builder.h
More file actions
32 lines (23 loc) · 1.02 KB
/
dynamic-list-builder.h
File metadata and controls
32 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CAPNP_PHP_DYNAMIC_LIST_BUILDER_H
#define CAPNP_PHP_DYNAMIC_LIST_BUILDER_H
#include <phpcpp.h>
#include <capnp/dynamic.h>
namespace capnp_php {
class DynamicListBuilder : public Php::Base, public Php::Countable,
public Php::ArrayAccess, public Php::Traversable {
private:
Php::Object messageBuilder;
capnp::DynamicList::Builder builder;
public:
DynamicListBuilder(capnp::DynamicList::Builder builder,
Php::Object messageBuilder);
Php::Value getByIndex(int64_t index);
virtual long count() override;
virtual bool offsetExists(const Php::Value &key) override;
virtual Php::Value offsetGet(const Php::Value &key) override;
virtual void offsetSet(const Php::Value &key, const Php::Value &value) override;
virtual void offsetUnset(const Php::Value &key) override;
virtual Php::Iterator *getIterator() override;
};
}
#endif /* CAPNP_PHP_DYNAMIC_LIST_BUILDER_H */