#include <jaula_value_array.h>
Inheritance diagram for JAULA::Value_Array:


Public Types | |
| typedef std::list< Value * > | dataType |
| Data type for value contents. | |
Public Member Functions | |
| void | addItem (Value const &item) |
| Appends one item to the array. | |
| virtual void | clear (void) |
| Empties the contents of an instance. | |
| virtual bool | empty (void) const |
| True if the instance is empty. | |
| dataType const & | getData (void) const |
| Retrieves the array of values contained by the instance. | |
| virtual void | repr (std::ostream &ostr) const |
| Represents the instance in a stream. | |
| virtual void | set (Value const &origin) throw (Bad_Data_Type) |
| Copies the contents of one instance into anothe. | |
| void | set (dataType const &data) |
| Establishes the contents of the instance. | |
| virtual size_t | size (void) const |
| Number of elements contained. | |
| Value_Array (dataType const &data) | |
| Data Constructor. | |
| Value_Array (void) | |
| Default Constructor. | |
| virtual | ~Value_Array () |
| Destructor. | |
Private Attributes | |
| dataType | data_ |
| Container to hold the value itself. | |
| typedef std::list<Value *> JAULA::Value_Array::dataType |
Data type for value contents.
| JAULA::Value_Array::Value_Array | ( | void | ) |
Default Constructor.
| JAULA::Value_Array::Value_Array | ( | dataType const & | data | ) |
Data Constructor.
| data | Reference to the data to be copied |
| JAULA::Value_Array::~Value_Array | ( | ) | [virtual] |
Destructor.
| void JAULA::Value_Array::addItem | ( | Value const & | item | ) |
Appends one item to the array.
| item | Item to be appended |
| void JAULA::Value_Array::clear | ( | void | ) | [virtual] |
Empties the contents of an instance.
Implements JAULA::Value_Complex.
| bool JAULA::Value_Array::empty | ( | void | ) | const [virtual] |
True if the instance is empty.
Implements JAULA::Value_Complex.
| Value_Array::dataType const & JAULA::Value_Array::getData | ( | void | ) | const |
Retrieves the array of values contained by the instance.
| void JAULA::Value_Array::repr | ( | std::ostream & | ostr | ) | const [virtual] |
Represents the instance in a stream.
| ostr | Stream where the instance is to be represented. |
Implements JAULA::Value.
| void JAULA::Value_Array::set | ( | Value const & | origin | ) | throw (Bad_Data_Type) [virtual] |
Copies the contents of one instance into anothe.
| origin | Reference to the value to be copied. |
| Bad_Data_Type | This exception is launched in case that origin and destination value types are different. |
Reimplemented from JAULA::Value.
| void JAULA::Value_Array::set | ( | dataType const & | data | ) |
Establishes the contents of the instance.
| data | Array to assign to the instance |
| size_t JAULA::Value_Array::size | ( | void | ) | const [virtual] |
Number of elements contained.
Implements JAULA::Value_Complex.
dataType JAULA::Value_Array::data_ [private] |
Container to hold the value itself.
Copyright (c) 2007 Kombo Morongo.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".