BusBoy
2
|
A sequential list of arbitrary metadata elements. More...
#include <MetadataList.h>
Public Member Functions | |
MetadataList () | |
void | addElement (const CloneableMetadataElement &element) |
Add an element. More... | |
void | addElement (MetadataElement *element) |
Add an element. More... | |
MetadataElement * | getElement (size_t index) const |
Returns a pointer to this object's internal copy of the element. More... | |
size_t | getSize () const |
MetadataElement::Type | getMetadataElementType () const |
bool | operator== (const MetadataList &list) const |
bool | operator== (const MetadataElement &element) const |
bool | operator!= (const MetadataList &list) const |
bool | operator!= (const MetadataElement &element) const |
~MetadataList () | |
Public Member Functions inherited from BUSBOY::MetadataElement | |
template<typename T > | |
const T * | castElement (const MetadataElement *element, Type type) |
template<typename T > | |
T * | castElement (MetadataElement *element, Type type) |
template<typename T > | |
const T & | castElement (const MetadataElement &element, Type type) |
template<typename T > | |
T & | castElement (MetadataElement &element, Type type) |
Static Public Member Functions | |
static const MetadataList * | castToList (const MetadataElement *element) |
static MetadataList * | castToList (MetadataElement *element) |
static const MetadataList & | castToList (const MetadataElement &element) |
static MetadataList & | castToList (MetadataElement &element) |
Static Public Member Functions inherited from BUSBOY::MetadataElement | |
static Type | enumFromString (std::string strType) |
Parses the string equivalent of the enum. More... | |
static std::string | enumToString (Type type) |
Returns the string equivalent of the enum. More... | |
Additional Inherited Members | |
Public Types inherited from BUSBOY::MetadataElement | |
enum | Type { FIELD, ARRAY, LIST, MAP, KEY } |
Static Protected Member Functions inherited from BUSBOY::MetadataElement | |
template<typename T > | |
static const T * | castElement (const MetadataElement *element, Type type) |
template<typename T > | |
static T * | castElement (MetadataElement *element, Type type) |
template<typename T > | |
static const T & | castElement (const MetadataElement &element, Type type) |
template<typename T > | |
static T & | castElement (MetadataElement &element, Type type) |
A sequential list of arbitrary metadata elements.
BUSBOY::MetadataList::MetadataList | ( | ) |
BUSBOY::MetadataList::~MetadataList | ( | ) |
void BUSBOY::MetadataList::addElement | ( | const CloneableMetadataElement & | element | ) |
Add an element.
This class makes its own copy of the element. The element may be disposed of after the call returns
void BUSBOY::MetadataList::addElement | ( | MetadataElement * | element | ) |
Add an element.
The element must be allocated on the heap with new. This class takes ownership of the element and is responsible for deleting it.
|
static |
|
static |
|
static |
|
static |
MetadataElement * BUSBOY::MetadataList::getElement | ( | size_t | index | ) | const |
Returns a pointer to this object's internal copy of the element.
|
virtual |
Implements BUSBOY::MetadataElement.
size_t BUSBOY::MetadataList::getSize | ( | ) | const |
bool BUSBOY::MetadataList::operator!= | ( | const MetadataList & | list | ) | const |
|
virtual |
Implements BUSBOY::MetadataElement.
bool BUSBOY::MetadataList::operator== | ( | const MetadataList & | list | ) | const |
|
virtual |
Implements BUSBOY::MetadataElement.
Copyright 2014 Google Inc. All rights reserved.