jaula API Reference version 1.4.0
JAULA::Value_Complex Class Reference

Base class for handling complex values. More...

#include <jaula_value_complex.h>

Inheritance diagram for JAULA::Value_Complex:
JAULA::Value JAULA::Value_Array JAULA::Value_Object

Public Member Functions

virtual void clear (void)=0
 Empties the contents of an instance.
virtual bool empty (void) const =0
 True if the instance is empty.
virtual size_t size (void) const =0
 Number of elements contained.
virtual ~Value_Complex ()
 Destructor.

Protected Member Functions

 Value_Complex (ValueType Type)
 Constructor.

Detailed Description

Base class for handling complex values.

This class defines an abstract base class for JSON complex values (values which are an aggregation of other values)
Author:
Kombo Morongo <morongo666@gmail.com>

Constructor & Destructor Documentation

JAULA::Value_Complex::~Value_Complex ( ) [virtual]

Destructor.

JAULA::Value_Complex::Value_Complex ( ValueType  Type) [protected]

Constructor.

Parameters:
TypeType of value to be contained by the instance
Description
This method construct a new instance by specifying its type.
Note:
A ValueType for the instance is immutable during all the life cycle, this is the only method that permits specifying the value type.

Member Function Documentation

virtual void JAULA::Value_Complex::clear ( void  ) [pure virtual]

Empties the contents of an instance.

Description
Erases all the instance content.

Implemented in JAULA::Value_Array, and JAULA::Value_Object.

virtual bool JAULA::Value_Complex::empty ( void  ) const [pure virtual]

True if the instance is empty.

Returns:
true if there are no single elements contained by the instance and false otherwise.

Implemented in JAULA::Value_Array, and JAULA::Value_Object.

virtual size_t JAULA::Value_Complex::size ( void  ) const [pure virtual]

Number of elements contained.

Returns:
the number of single elements contained by the instance.

Implemented in JAULA::Value_Array, and JAULA::Value_Object.


The documentation for this class was generated from the following files: