Rudiments
Public Member Functions | List of all members
scalarcollection< valuetype > Class Template Referenceabstract

Inherits collection.

Inherited by scalar< valuetype >.

Public Member Functions

virtual const char * getType ()
 
virtual uint64_t getCount ()
 
virtual void setValue (valuetype v)=0
 
virtual valuetype getValue ()=0
 
virtual valuetype & getReference ()=0
 
virtual ssize_t write ()
 
virtual ssize_t write (output *out)
 
virtual ssize_t writeJson ()
 
virtual ssize_t writeJson (bool indent)
 
virtual ssize_t writeJson (output *out)
 
virtual ssize_t writeJson (output *out, bool indent)
 
- Public Member Functions inherited from collection
 collection ()
 
 collection (collection &c)
 
collectionoperator= (collection &c)
 
virtual ~collection ()
 
comparatorgetComparator ()
 
void setComparator (comparator *newcomp)
 
virtual bool isReadOnly ()
 
virtual bool isBlockBased ()
 
virtual uint64_t getBlockSize ()
 
virtual bool isSequentialAccess ()
 
virtual void setManageValues (bool manage)
 
virtual bool getManageValues ()
 
virtual void setManageArrayValues (bool manage)
 
virtual bool getManageArrayValues ()
 
virtual void setManageKeys (bool manage)
 
virtual bool getManageKeys ()
 
virtual void setManageArrayKeys (bool manage)
 
virtual bool getManageArrayKeys ()
 
virtual bool clear ()=0
 
- Public Member Functions inherited from object
virtual ~object ()
 

Detailed Description

template<class valuetype>
class scalarcollection< valuetype >

The scalarcollection class is the parent class for all rudiments scalar collections.

Member Function Documentation

◆ getCount()

template<class valuetype >
uint64_t scalarcollection< valuetype >::getCount
inlinevirtual

Returns 1.

Implements collection.

◆ getReference()

template<class valuetype >
virtual valuetype& scalarcollection< valuetype >::getReference ( )
pure virtual

Returns a reference to the value stored in this instance.

Implemented in scalar< valuetype >.

◆ getType()

template<class valuetype >
const char * scalarcollection< valuetype >::getType
inlinevirtual

Returns "scalar".

Implements collection.

◆ getValue()

template<class valuetype >
virtual valuetype scalarcollection< valuetype >::getValue ( )
pure virtual

Returns the value stored in this instance. Returns NULL or 0 if no value has been stored.

Implemented in scalar< valuetype >.

◆ setValue()

template<class valuetype >
virtual void scalarcollection< valuetype >::setValue ( valuetype  v)
pure virtual

Sets the value stored in this instance to "v".

Implemented in scalar< valuetype >.

◆ write() [1/2]

template<class valuetype >
ssize_t scalarcollection< valuetype >::write
inlinevirtual

Writes a representation of the scalarcollection to standard output.

Implements collection.

◆ write() [2/2]

template<class valuetype >
ssize_t scalarcollection< valuetype >::write ( output out)
inlinevirtual

Writes a representation of the scalarcollection to "out".

Implements collection.

◆ writeJson() [1/4]

template<class valuetype >
ssize_t scalarcollection< valuetype >::writeJson
inlinevirtual

Writes a JSON representation of the scalarcollection to standard output.

Implements collection.

◆ writeJson() [2/4]

template<class valuetype >
ssize_t scalarcollection< valuetype >::writeJson ( bool  indent)
inlinevirtual

Writes a JSON representation of the scalarcollection to standard output.

If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.

Implements collection.

◆ writeJson() [3/4]

template<class valuetype >
ssize_t scalarcollection< valuetype >::writeJson ( output out)
inlinevirtual

Writes a JSON representation of the scalarcollection to "out".

Implements collection.

◆ writeJson() [4/4]

template<class valuetype >
ssize_t scalarcollection< valuetype >::writeJson ( output out,
bool  indent 
)
inlinevirtual

Writes a JSON representation of the scalarcollection to "out".

If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.

Implements collection.