Rudiments
arraycollection.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_ARRAYCOLLECTION_H
5#define RUDIMENTS_ARRAYCOLLECTION_H
6
7#include <rudiments/collection.h>
8#include <rudiments/output.h>
9
12template <class valuetype>
14 public:
16 virtual const char *getType();
17
20 virtual valuetype &operator[](uint64_t index)=0;
21
24 virtual ssize_t write();
25
27 virtual ssize_t write(output *out);
28
31 virtual ssize_t writeJson();
32
39 virtual ssize_t writeJson(bool indent);
40
43 virtual ssize_t writeJson(output *out);
44
51 virtual ssize_t writeJson(output *out, bool indent);
52};
53
54#include <rudiments/private/arraycollectioninlines.h>
55
56#endif
Definition arraycollection.h:13
virtual ssize_t write()
Definition arraycollectioninlines.h:14
virtual const char * getType()
Definition arraycollectioninlines.h:8
virtual ssize_t writeJson()
Definition arraycollectioninlines.h:26
virtual valuetype & operator[](uint64_t index)=0
Definition collection.h:11
Definition output.h:11