Library: Foundation
Package: Core
Header: Poco/NamedTuple.h
Inheritance
Direct Base Classes: Tuple < T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39 >
All Base Classes: Tuple < T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39 >
Member Summary
Member Functions: get, getName, names, operator !=, operator <, operator ==, operator [], set, setName
Types
NameVec
typedef std::vector < std::string > NameVec;
NameVecPtr
typedef SharedPtr < NameVec > NameVecPtr;
TupleType
typedef Tuple < T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39 > TupleType;
Type
typedef typename Tuple < T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39 >::Type Type;
Constructors
NamedTuple
NamedTuple();
NamedTuple
NamedTuple(
const NameVecPtr & rNames
);
NamedTuple
NamedTuple(
typename TypeWrapper < T0 >::CONSTTYPE & t0,
typename TypeWrapper < T1 >::CONSTTYPE & t1 = typename TypeWrapper < T1 >::TYPE (),
typename TypeWrapper < T2 >::CONSTTYPE & t2 = typename TypeWrapper < T2 >::TYPE (),
typename TypeWrapper < T3 >::CONSTTYPE & t3 = typename TypeWrapper < T3 >::TYPE (),
typename TypeWrapper < T4 >::CONSTTYPE & t4 = typename TypeWrapper < T4 >::TYPE (),
typename TypeWrapper < T5 >::CONSTTYPE & t5 = typename TypeWrapper < T5 >::TYPE (),
typename TypeWrapper < T6 >::CONSTTYPE & t6 = typename TypeWrapper < T6 >::TYPE (),
typename TypeWrapper < T7 >::CONSTTYPE & t7 = typename TypeWrapper < T7 >::TYPE (),
typename TypeWrapper < T8 >::CONSTTYPE & t8 = typename TypeWrapper < T8 >::TYPE (),
typename TypeWrapper < T9 >::CONSTTYPE & t9 = typename TypeWrapper < T9 >::TYPE (),
typename TypeWrapper < T10 >::CONSTTYPE & t10 = typename TypeWrapper < T10 >::TYPE (),
typename TypeWrapper < T11 >::CONSTTYPE & t11 = typename TypeWrapper < T11 >::TYPE (),
typename TypeWrapper < T12 >::CONSTTYPE & t12 = typename TypeWrapper < T12 >::TYPE (),
typename TypeWrapper < T13 >::CONSTTYPE & t13 = typename TypeWrapper < T13 >::TYPE (),
typename TypeWrapper < T14 >::CONSTTYPE & t14 = typename TypeWrapper < T14 >::TYPE (),
typename TypeWrapper < T15 >::CONSTTYPE & t15 = typename TypeWrapper < T15 >::TYPE (),
typename TypeWrapper < T16 >::CONSTTYPE & t16 = typename TypeWrapper < T16 >::TYPE (),
typename TypeWrapper < T17 >::CONSTTYPE & t17 = typename TypeWrapper < T17 >::TYPE (),
typename TypeWrapper < T18 >::CONSTTYPE & t18 = typename TypeWrapper < T18 >::TYPE (),
typename TypeWrapper < T19 >::CONSTTYPE & t19 = typename TypeWrapper < T19 >::TYPE (),
typename TypeWrapper < T20 >::CONSTTYPE & t20 = typename TypeWrapper < T20 >::TYPE (),
typename TypeWrapper < T21 >::CONSTTYPE & t21 = typename TypeWrapper < T21 >::TYPE (),
typename TypeWrapper < T22 >::CONSTTYPE & t22 = typename TypeWrapper < T22 >::TYPE (),
typename TypeWrapper < T23 >::CONSTTYPE & t23 = typename TypeWrapper < T23 >::TYPE (),
typename TypeWrapper < T24 >::CONSTTYPE & t24 = typename TypeWrapper < T24 >::TYPE (),
typename TypeWrapper < T25 >::CONSTTYPE & t25 = typename TypeWrapper < T25 >::TYPE (),
typename TypeWrapper < T26 >::CONSTTYPE & t26 = typename TypeWrapper < T26 >::TYPE (),
typename TypeWrapper < T27 >::CONSTTYPE & t27 = typename TypeWrapper < T27 >::TYPE (),
typename TypeWrapper < T28 >::CONSTTYPE & t28 = typename TypeWrapper < T28 >::TYPE (),
typename TypeWrapper < T29 >::CONSTTYPE & t29 = typename TypeWrapper < T29 >::TYPE (),
typename TypeWrapper < T30 >::CONSTTYPE & t30 = typename TypeWrapper < T30 >::TYPE (),
typename TypeWrapper < T31 >::CONSTTYPE & t31 = typename TypeWrapper < T31 >::TYPE (),
typename TypeWrapper < T32 >::CONSTTYPE & t32 = typename TypeWrapper < T32 >::TYPE (),
typename TypeWrapper < T33 >::CONSTTYPE & t33 = typename TypeWrapper < T33 >::TYPE (),
typename TypeWrapper < T34 >::CONSTTYPE & t34 = typename TypeWrapper < T34 >::TYPE (),
typename TypeWrapper < T35 >::CONSTTYPE & t35 = typename TypeWrapper < T35 >::TYPE (),
typename TypeWrapper < T36 >::CONSTTYPE & t36 = typename TypeWrapper < T36 >::TYPE (),
typename TypeWrapper < T37 >::CONSTTYPE & t37 = typename TypeWrapper < T37 >::TYPE (),
typename TypeWrapper < T38 >::CONSTTYPE & t38 = typename TypeWrapper < T38 >::TYPE (),
typename TypeWrapper < T39 >::CONSTTYPE & t39 = typename TypeWrapper < T39 >::TYPE ()
);
NamedTuple
NamedTuple(
const NameVecPtr & rNames,
typename TypeWrapper < T0 >::CONSTTYPE & t0,
typename TypeWrapper < T1 >::CONSTTYPE & t1 = typename TypeWrapper < T1 >::TYPE (),
typename TypeWrapper < T2 >::CONSTTYPE & t2 = typename TypeWrapper < T2 >::TYPE (),
typename TypeWrapper < T3 >::CONSTTYPE & t3 = typename TypeWrapper < T3 >::TYPE (),
typename TypeWrapper < T4 >::CONSTTYPE & t4 = typename TypeWrapper < T4 >::TYPE (),
typename TypeWrapper < T5 >::CONSTTYPE & t5 = typename TypeWrapper < T5 >::TYPE (),
typename TypeWrapper < T6 >::CONSTTYPE & t6 = typename TypeWrapper < T6 >::TYPE (),
typename TypeWrapper < T7 >::CONSTTYPE & t7 = typename TypeWrapper < T7 >::TYPE (),
typename TypeWrapper < T8 >::CONSTTYPE & t8 = typename TypeWrapper < T8 >::TYPE (),
typename TypeWrapper < T9 >::CONSTTYPE & t9 = typename TypeWrapper < T9 >::TYPE (),
typename TypeWrapper < T10 >::CONSTTYPE & t10 = typename TypeWrapper < T10 >::TYPE (),
typename TypeWrapper < T11 >::CONSTTYPE & t11 = typename TypeWrapper < T11 >::TYPE (),
typename TypeWrapper < T12 >::CONSTTYPE & t12 = typename TypeWrapper < T12 >::TYPE (),
typename TypeWrapper < T13 >::CONSTTYPE & t13 = typename TypeWrapper < T13 >::TYPE (),
typename TypeWrapper < T14 >::CONSTTYPE & t14 = typename TypeWrapper < T14 >::TYPE (),
typename TypeWrapper < T15 >::CONSTTYPE & t15 = typename TypeWrapper < T15 >::TYPE (),
typename TypeWrapper < T16 >::CONSTTYPE & t16 = typename TypeWrapper < T16 >::TYPE (),
typename TypeWrapper < T17 >::CONSTTYPE & t17 = typename TypeWrapper < T17 >::TYPE (),
typename TypeWrapper < T18 >::CONSTTYPE & t18 = typename TypeWrapper < T18 >::TYPE (),
typename TypeWrapper < T19 >::CONSTTYPE & t19 = typename TypeWrapper < T19 >::TYPE (),
typename TypeWrapper < T0 >::CONSTTYPE & t20 = typename TypeWrapper < T20 >::TYPE (),
typename TypeWrapper < T1 >::CONSTTYPE & t21 = typename TypeWrapper < T21 >::TYPE (),
typename TypeWrapper < T2 >::CONSTTYPE & t22 = typename TypeWrapper < T22 >::TYPE (),
typename TypeWrapper < T3 >::CONSTTYPE & t23 = typename TypeWrapper < T23 >::TYPE (),
typename TypeWrapper < T4 >::CONSTTYPE & t24 = typename TypeWrapper < T24 >::TYPE (),
typename TypeWrapper < T5 >::CONSTTYPE & t25 = typename TypeWrapper < T25 >::TYPE (),
typename TypeWrapper < T6 >::CONSTTYPE & t26 = typename TypeWrapper < T26 >::TYPE (),
typename TypeWrapper < T7 >::CONSTTYPE & t27 = typename TypeWrapper < T27 >::TYPE (),
typename TypeWrapper < T8 >::CONSTTYPE & t28 = typename TypeWrapper < T28 >::TYPE (),
typename TypeWrapper < T9 >::CONSTTYPE & t29 = typename TypeWrapper < T29 >::TYPE (),
typename TypeWrapper < T10 >::CONSTTYPE & t30 = typename TypeWrapper < T30 >::TYPE (),
typename TypeWrapper < T11 >::CONSTTYPE & t31 = typename TypeWrapper < T31 >::TYPE (),
typename TypeWrapper < T12 >::CONSTTYPE & t32 = typename TypeWrapper < T32 >::TYPE (),
typename TypeWrapper < T13 >::CONSTTYPE & t33 = typename TypeWrapper < T33 >::TYPE (),
typename TypeWrapper < T14 >::CONSTTYPE & t34 = typename TypeWrapper < T34 >::TYPE (),
typename TypeWrapper < T15 >::CONSTTYPE & t35 = typename TypeWrapper < T35 >::TYPE (),
typename TypeWrapper < T16 >::CONSTTYPE & t36 = typename TypeWrapper < T36 >::TYPE (),
typename TypeWrapper < T17 >::CONSTTYPE & t37 = typename TypeWrapper < T37 >::TYPE (),
typename TypeWrapper < T18 >::CONSTTYPE & t38 = typename TypeWrapper < T38 >::TYPE (),
typename TypeWrapper < T19 >::CONSTTYPE & t39 = typename TypeWrapper < T39 >::TYPE ()
);
NamedTuple
NamedTuple(
const std::string & n0,
typename TypeWrapper < T0 >::CONSTTYPE & t0,
const std::string & n1 = "B",
typename TypeWrapper < T1 >::CONSTTYPE & t1 = typename TypeWrapper < T1 >::TYPE (),
const std::string & n2 = "C",
typename TypeWrapper < T2 >::CONSTTYPE & t2 = typename TypeWrapper < T2 >::TYPE (),
const std::string & n3 = "D",
typename TypeWrapper < T3 >::CONSTTYPE & t3 = typename TypeWrapper < T3 >::TYPE (),
const std::string & n4 = "E",
typename TypeWrapper < T4 >::CONSTTYPE & t4 = typename TypeWrapper < T4 >::TYPE (),
const std::string & n5 = "F",
typename TypeWrapper < T5 >::CONSTTYPE & t5 = typename TypeWrapper < T5 >::TYPE (),
const std::string & n6 = "G",
typename TypeWrapper < T6 >::CONSTTYPE & t6 = typename TypeWrapper < T6 >::TYPE (),
const std::string & n7 = "H",
typename TypeWrapper < T7 >::CONSTTYPE & t7 = typename TypeWrapper < T7 >::TYPE (),
const std::string & n8 = "I",
typename TypeWrapper < T8 >::CONSTTYPE & t8 = typename TypeWrapper < T8 >::TYPE (),
const std::string & n9 = "J",
typename TypeWrapper < T9 >::CONSTTYPE & t9 = typename TypeWrapper < T9 >::TYPE (),
const std::string & n10 = "K",
typename TypeWrapper < T10 >::CONSTTYPE & t10 = typename TypeWrapper < T10 >::TYPE (),
const std::string & n11 = "L",
typename TypeWrapper < T11 >::CONSTTYPE & t11 = typename TypeWrapper < T11 >::TYPE (),
const std::string & n12 = "M",
typename TypeWrapper < T12 >::CONSTTYPE & t12 = typename TypeWrapper < T12 >::TYPE (),
const std::string & n13 = "N",
typename TypeWrapper < T13 >::CONSTTYPE & t13 = typename TypeWrapper < T13 >::TYPE (),
const std::string & n14 = "O",
typename TypeWrapper < T14 >::CONSTTYPE & t14 = typename TypeWrapper < T14 >::TYPE (),
const std::string & n15 = "P",
typename TypeWrapper < T15 >::CONSTTYPE & t15 = typename TypeWrapper < T15 >::TYPE (),
const std::string & n16 = "Q",
typename TypeWrapper < T16 >::CONSTTYPE & t16 = typename TypeWrapper < T16 >::TYPE (),
const std::string & n17 = "R",
typename TypeWrapper < T17 >::CONSTTYPE & t17 = typename TypeWrapper < T17 >::TYPE (),
const std::string & n18 = "S",
typename TypeWrapper < T18 >::CONSTTYPE & t18 = typename TypeWrapper < T18 >::TYPE (),
const std::string & n19 = "T",
typename TypeWrapper < T19 >::CONSTTYPE & t19 = typename TypeWrapper < T19 >::TYPE (),
const std::string & n20 = "U",
typename TypeWrapper < T20 >::CONSTTYPE & t20 = typename TypeWrapper < T20 >::TYPE (),
const std::string & n21 = "V",
typename TypeWrapper < T21 >::CONSTTYPE & t21 = typename TypeWrapper < T21 >::TYPE (),
const std::string & n22 = "W",
typename TypeWrapper < T22 >::CONSTTYPE & t22 = typename TypeWrapper < T22 >::TYPE (),
const std::string & n23 = "X",
typename TypeWrapper < T23 >::CONSTTYPE & t23 = typename TypeWrapper < T23 >::TYPE (),
const std::string & n24 = "Y",
typename TypeWrapper < T24 >::CONSTTYPE & t24 = typename TypeWrapper < T24 >::TYPE (),
const std::string & n25 = "Z",
typename TypeWrapper < T25 >::CONSTTYPE & t25 = typename TypeWrapper < T25 >::TYPE (),
const std::string & n26 = "A1",
typename TypeWrapper < T26 >::CONSTTYPE & t26 = typename TypeWrapper < T26 >::TYPE (),
const std::string & n27 = "B1",
typename TypeWrapper < T27 >::CONSTTYPE & t27 = typename TypeWrapper < T27 >::TYPE (),
const std::string & n28 = "C1",
typename TypeWrapper < T28 >::CONSTTYPE & t28 = typename TypeWrapper < T28 >::TYPE (),
const std::string & n29 = "D1",
typename TypeWrapper < T29 >::CONSTTYPE & t29 = typename TypeWrapper < T29 >::TYPE (),
const std::string & n30 = "E1",
typename TypeWrapper < T30 >::CONSTTYPE & t30 = typename TypeWrapper < T30 >::TYPE (),
const std::string & n31 = "F1",
typename TypeWrapper < T31 >::CONSTTYPE & t31 = typename TypeWrapper < T31 >::TYPE (),
const std::string & n32 = "G1",
typename TypeWrapper < T32 >::CONSTTYPE & t32 = typename TypeWrapper < T32 >::TYPE (),
const std::string & n33 = "H1",
typename TypeWrapper < T33 >::CONSTTYPE & t33 = typename TypeWrapper < T33 >::TYPE (),
const std::string & n34 = "I1",
typename TypeWrapper < T34 >::CONSTTYPE & t34 = typename TypeWrapper < T34 >::TYPE (),
const std::string & n35 = "J1",
typename TypeWrapper < T35 >::CONSTTYPE & t35 = typename TypeWrapper < T35 >::TYPE (),
const std::string & n36 = "K1",
typename TypeWrapper < T36 >::CONSTTYPE & t36 = typename TypeWrapper < T36 >::TYPE (),
const std::string & n37 = "L1",
typename TypeWrapper < T37 >::CONSTTYPE & t37 = typename TypeWrapper < T37 >::TYPE (),
const std::string & n38 = "M1",
typename TypeWrapper < T38 >::CONSTTYPE & t38 = typename TypeWrapper < T38 >::TYPE (),
const std::string & n39 = "N1",
typename TypeWrapper < T39 >::CONSTTYPE & t39 = typename TypeWrapper < T39 >::TYPE ()
);
Member Functions
get
const Dynamic::Var get(
const std::string & name
) const;
get
template < int N > typename TypeGetter < N, Type >::ConstHeadType & get() const;
get
template < int N > typename TypeGetter < N, Type >::HeadType & get();
getName
const std::string & getName(
std::size_t index
);
names
const NameVecPtr & names();
operator !=
bool operator != (
const NamedTuple & other
) const;
operator <
bool operator < (
const NamedTuple & other
) const;
operator ==
bool operator == (
const NamedTuple & other
) const;
operator []
const Dynamic::Var operator[] (
const std::string & name
) const;
set
template < int N > void set(
typename TypeGetter < N, Type >::ConstHeadType & val
);
setName
void setName(
std::size_t index,
const std::string & name
);