4template <
class valuetype>
8 copycolumnnames(false) {
11template <
class valuetype>
15 copycolumnnames(
c.copycolumnnames) {
18template <
class valuetype>
24 copycolumnnames=
c.copycolumnnames;
29template <
class valuetype>
34template <
class valuetype>
40template <
class valuetype>
43 return getRowCount()*getColumnCount();
46template <
class valuetype>
52template <
class valuetype>
55 return copycolumnnames;
58template <
class valuetype>
61 return write(&stdoutput);
64template <
class valuetype>
67 return writeJson(out,
true);
70template<
class valuetype >
73 return writeJson(&stdoutput,
true);
76template<
class valuetype >
79 return writeJson(&stdoutput,indent);
82template<
class valuetype >
85 return writeJson(out,
true);
88template<
class valuetype >
95 ((indent)?incOrErr(&
retval,out->
write(
"\n ",2),2):
true) &&
97 ((indent)?incOrErr(&
retval,out->
write(
' '),1):
true) &&
100 for (uint64_t
i=0;
i<getColumnCount() &&
retval>-1;
i++) {
102 ((indent)?incOrErr(&
retval,
103 out->
write(
"\n ",3),3):
true) &&
104 incOrErr(&
retval,this->writeJsonValue(out,getColumnName(
i)));
107 ((indent)?incOrErr(&
retval,out->
write(
"\n ",2),2):
true) &&
109 ((indent)?incOrErr(&
retval,out->
write(
"\n ",2),2):
true) &&
111 ((indent)?incOrErr(&
retval,out->
write(
' '),1):
true) &&
114 for (uint64_t
i=0;
i<getRowCount() &&
retval>-1;
i++) {
117 ((indent)?incOrErr(&
retval,
118 out->
write(
"\n ",3),3):
true) &&
121 for (uint64_t
j=0;
j<getColumnCount() &&
retval>-1;
j++) {
123 ((indent)?incOrErr(&
retval,
124 out->
write(
"\n ",4),4):
true) &&
129 ((indent)?incOrErr(&
retval,
130 out->
write(
"\n ",3),3):
true) &&
134 ((indent)?incOrErr(&
retval,out->
write(
"\n ",2),2):
true) &&
136 ((indent)?incOrErr(&
retval,out->
write(
'\n'),1):
true);
138 ((indent)?incOrErr(&
retval,out->
write(
'\n'),1):
true);
avltreenode(valuetype value)
Definition avltreeinlines.h:555
valuetype getValue()
Definition avltreeinlines.h:578
Definition collection.h:11
collection & operator=(collection &c)
Definition collectioninlines.h:30
virtual ssize_t write(const byte_t *string, size_t size)=0
Definition tablecollection.h:35
virtual ~tablecollection()
Definition tablecollectioninlines.h:31
virtual bool getCopyColumnNames()
Definition tablecollectioninlines.h:54
tablecollection & operator=(tablecollection &c)
Definition tablecollectioninlines.h:21
virtual const char * getType()
Definition tablecollectioninlines.h:36
virtual uint64_t getCount()
Definition tablecollectioninlines.h:42
virtual ssize_t writeJson()
Definition tablecollectioninlines.h:72
virtual void setCopyColumnNames(bool copy)
Definition tablecollectioninlines.h:48
tablecollection()
Definition tablecollectioninlines.h:6
virtual ssize_t write()
Definition tablecollectioninlines.h:60