template struct Poco::NamedTuple<T0, T1, T2, T3, T4, NullTypeList>
#include <NamedTuple.h>
template <
class T0,
class T1,
class T2,
class T3,
class T4
>
struct NamedTuple<T0, T1, T2, T3, T4, NullTypeList>: public Poco::Tuple
{
// typedefs
typedef Tuple<T0, T1, T2, T3, T4> TupleType;
typedef Tuple<T0, T1, T2, T3, T4>::Type Type;
typedef std::vector<std::string> NameVec;
typedef SharedPtr<NameVec> NameVecPtr;
// construction
NamedTuple();
NamedTuple(const NameVecPtr& rNames);
NamedTuple(
typename TypeWrapper<T0>::CONSTTYPE& t0,
typename TypeWrapper<T1>::CONSTTYPE& t1 = POCO_TYPEWRAPPER_DEFAULTVALUE(T1),
typename TypeWrapper<T2>::CONSTTYPE& t2 = POCO_TYPEWRAPPER_DEFAULTVALUE(T2),
typename TypeWrapper<T3>::CONSTTYPE& t3 = POCO_TYPEWRAPPER_DEFAULTVALUE(T3),
typename TypeWrapper<T4>::CONSTTYPE& t4 = POCO_TYPEWRAPPER_DEFAULTVALUE(T4)
);
NamedTuple(
const NameVecPtr& rNames,
typename TypeWrapper<T0>::CONSTTYPE& t0,
typename TypeWrapper<T1>::CONSTTYPE& t1 = POCO_TYPEWRAPPER_DEFAULTVALUE(T1),
typename TypeWrapper<T2>::CONSTTYPE& t2 = POCO_TYPEWRAPPER_DEFAULTVALUE(T2),
typename TypeWrapper<T3>::CONSTTYPE& t3 = POCO_TYPEWRAPPER_DEFAULTVALUE(T3),
typename TypeWrapper<T4>::CONSTTYPE& t4 = POCO_TYPEWRAPPER_DEFAULTVALUE(T4)
);
NamedTuple(
const std::string& n0,
typename TypeWrapper<T0>::CONSTTYPE& t0,
const std::string& n1 = "B",
typename TypeWrapper<T1>::CONSTTYPE& t1 = POCO_TYPEWRAPPER_DEFAULTVALUE(T1),
const std::string& n2 = "C",
typename TypeWrapper<T2>::CONSTTYPE& t2 = POCO_TYPEWRAPPER_DEFAULTVALUE(T2),
const std::string& n3 = "D",
typename TypeWrapper<T3>::CONSTTYPE& t3 = POCO_TYPEWRAPPER_DEFAULTVALUE(T3),
const std::string& n4 = "E",
typename TypeWrapper<T4>::CONSTTYPE& t4 = POCO_TYPEWRAPPER_DEFAULTVALUE(T4)
);
// methods
const DynamicAny
get(const std::string& name) const;
const DynamicAny
operator[](const std::string& name) const;
template <int N>
TypeGetter<N, Type>::ConstHeadType&
get() const;
template <int N>
TypeGetter<N, Type>::HeadType&
get();
template <int N>
void
set(typename TypeGetter<N, Type>::ConstHeadType& val);
const NameVecPtr&
names();
void
setName(
std::size_t index,
const std::string& name
);
const std::string&
getName(std::size_t index);
bool
operator==(const NamedTuple& other) const;
bool
operator!=(const NamedTuple& other) const;
bool
operator<(const NamedTuple& other) const;
};
Inherited Members
public:
// typedefs
typedef TypeListType<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>::HeadType Type;
// enums
enum TupleLengthType;
// methods
template <int N>
TypeGetter<N, Type>::ConstHeadType&
get() const;
template <int N>
TypeGetter<N, Type>::HeadType&
get();
template <int N>
void
set(typename TypeGetter<N, Type>::ConstHeadType& val);
bool
operator==(const Tuple& other) const;
bool
operator!=(const Tuple& other) const;
bool
operator<(const Tuple& other) const;