| EvolvingObjects
   
    | 
Represents a JSON array. More...
#include <Array.h>
 
  
 | Classes | |
| struct | BaseAlgorithm | 
| Functor which determines how to retrieve the real value contained in a eoserial::Entity at a given place.  More... | |
| struct | UnpackAlgorithm | 
| BaseAlgorithm for retrieving primitive variables.  More... | |
| struct | UnpackObjectAlgorithm | 
| BaseAlgorithm for retrieving eoserial::Persistent objects.  More... | |
| Public Member Functions | |
| void | push_back (const eoserial::Printable *obj) | 
| Adds the serializable object as a JSON object. | |
| void | push_back (eoserial::Entity *json) | 
| Proxy for vector::push_back. | |
| virtual std::ostream & | print (std::ostream &out) const | 
| Prints the JSON array into the given stream. | |
| ~Array () | |
| Dtor. | |
| template<class Container , template< class T > class UnpackAlgorithm> | |
| void | deserialize (Container &array) | 
| General algorithm for array deserialization. | |
| Protected Types | |
| typedef std::vector < eoserial::Entity * > | ArrayChildren | 
Represents a JSON array.
Wrapper for an array, so as to be used as a JSON object.
| void eoserial::Array::push_back | ( | const eoserial::Printable * | obj | ) |  [inline] | 
Adds the serializable object as a JSON object.
| obj | Object which implemnets JsonSerializable. | 
Definition at line 68 of file Array.h.
References eoserial::Printable::pack().
Referenced by eoserial::MakeAlgorithm< T >::operator()(), eoserial::SerializablePushAlgorithm< T >::operator()(), eoserial::Parser::parseRight(), and push_back().
| std::ostream & eoserial::Array::print | ( | std::ostream & | out | ) | const  [virtual] | 
| void eoserial::Array::deserialize | ( | Container & | array | ) |  [inline] | 
General algorithm for array deserialization.
Applies the BaseAlgorithm to each contained variable in the eoserial::Array.