contentpackage.hh File Reference

#include "local.hh"
#include "dejavu.hh"

Go to the source code of this file.

Namespaces

namespace  RVL

Classes

class  RVL::ContentPackage< DataType, MetaType >
 A normal pairing of an array of data along with Metadata object. More...
class  RVL::PackageContainer< DataType, MetaType >
 A abstract DC construct, implementing an implicit product structure with ContentPackage components. More...
class  RVL::PackageContainerFactory< DataType, MetaType >
 An almost-concrete factory class for PackageContainers, lacking only one protected and one public method to be complete. More...
class  RVL::SingleDataContainer< Datatype, Metatype >
 SingleDataContainer is a wrapper for a single ContentPackage, and is a child rather than a template specialization of PackageContainer. More...
class  RVL::SingleDataContainerFactory< Datatype, Metatype >
 Factory class for SingleDataContainer. More...

Functions

template<typename MetaType>
size_t RVL::getDataSize (MetaType const &md)
 Helper function template to extract the size of a data array implicit in a MetaType object.
template<class MetaType>
size_t RVL::getMetaSize (MetaType const &md)
 Metadata types are not constant sized, so serialization requires a size function.
template<typename MetaType>
char * RVL::serialize (MetaType const &mt, size_t &len)
 works for any fixed size data, eg.
template<typename MetaType>
MetaType * RVL::deserialize (char *cbuf, size_t len)
 Assumes that serialized CP consists of two contiguous blocks: (1) serialized metadata, followed by (2) data array.
template<typename DataType, typename MetaType>
char * RVL::serialize (ContentPackage< DataType, MetaType > const &cp, size_t &len)
 serializes CP into two contiguous blocks: (1) serialized metadata, followed by (2) data array.
template<class MetaType>
ostream & RVL::writeMeta (MetaType const &md, ostream &e)
 Helper template for implementation of standard write method.
template<typename DataType, typename MetaType>
DataType * RVL::newData (MetaType &md)
 Helper template to allocate data memory - permits specialization in case eg.
template<typename DataType, typename MetaType>
void RVL::deleteData (DataType **d, MetaType **md)
 Helper template to delete data memory - paired with allocData.
template<typename Source, typename Target>
void RVL::copyCP (Source const &in, Target &out)
 Copy function for CPs.


Generated on 5 Jan 2017 for LocalRVL by  doxygen 1.4.7