Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::ArrayBase::ConversionTo< PO > Struct Template Reference

This conversion policy accepts entries of the specified template type, and will try to create new instances of that type constructed from any values which are passed. More...

#include <plistCollections.h>

Inheritance diagram for plist::ArrayBase::ConversionTo< PO >:

Detailed Description

template<typename PO>
struct plist::ArrayBase::ConversionTo< PO >

This conversion policy accepts entries of the specified template type, and will try to create new instances of that type constructed from any values which are passed.

Use of this conversion policy requires that the template parameter is not abstract, as the policy will be trying to create new instances directly from the specified type.

Definition at line 1014 of file plistCollections.h.

List of all members.

Public Member Functions

template<typename T >
void addValue (const T &val, const std::string &comment="")
 insert a new entry to the end of the vector, and corresponding comment; expects val to be either a primitive type, like int, float, etc., or one of the variable-sized Collection's, like Array, control of (de)allocation will be assumed by the Array
virtual void addValue (const std::string &val, const std::string &comment="")
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (char val[], const std::string &comment="")
 "specialization" (actually just another override) for handling character arrays as strings
virtual void addValue (const char val[], const std::string &comment="")
 "specialization" (actually just another override) for handling character arrays as strings
void addValue (long val, const std::string &comment="")
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
void addValue (unsigned long val, const std::string &comment="")
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
void addValue (double val, const std::string &comment="")
 generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
template<typename T >
void addValue (size_t index, const T &val, const std::string &comment="")
 inserts new entry at the specified index, which must be less than or equal to the current array size, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (size_t index, const std::string &val, const std::string &comment="")
 generic addition of value at a specified position
virtual void addValue (size_t index, char val[], const std::string &comment="")
 "specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
virtual void addValue (size_t index, const char val[], const std::string &comment="")
 "specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
void addValue (size_t index, long val, const std::string &comment="")
 generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
void addValue (size_t index, unsigned long val, const std::string &comment="")
 generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array
void addValue (size_t index, double val, const std::string &comment="")
 generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Member Function Documentation

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
double  val,
const std::string &  comment = "" 
)

generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1043 of file plistCollections.h.

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
unsigned long  val,
const std::string &  comment = "" 
)

generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1041 of file plistCollections.h.

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
long  val,
const std::string &  comment = "" 
)

generic addition of value at specified position, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1039 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
const char  val[],
const std::string &  comment = "" 
) [virtual]

"specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1037 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
char  val[],
const std::string &  comment = "" 
) [virtual]

"specialization" (actually just another override) for handling character arrays as strings, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1035 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
const std::string &  ,
const std::string &  comment = "" 
) [virtual]

generic addition of value at a specified position

Implements plist::ArrayBase::StringConversion.

Definition at line 1033 of file plistCollections.h.

template<typename PO >
template<typename T >
void plist::ArrayBase::ConversionTo< PO >::addValue ( size_t  index,
const T &  val,
const std::string &  comment = "" 
)

inserts new entry at the specified index, which must be less than or equal to the current array size, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1032 of file plistCollections.h.

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( double  val,
const std::string &  comment = "" 
)

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1028 of file plistCollections.h.

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( unsigned long  val,
const std::string &  comment = "" 
)

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1026 of file plistCollections.h.

template<typename PO >
void plist::ArrayBase::ConversionTo< PO >::addValue ( long  val,
const std::string &  comment = "" 
)

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Definition at line 1024 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( const char  val[],
const std::string &  comment = "" 
) [virtual]

"specialization" (actually just another override) for handling character arrays as strings

Definition at line 1022 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( char  val[],
const std::string &  comment = "" 
) [virtual]

"specialization" (actually just another override) for handling character arrays as strings

Definition at line 1020 of file plistCollections.h.

template<typename PO >
virtual void plist::ArrayBase::ConversionTo< PO >::addValue ( const std::string &  val,
const std::string &  comment = "" 
) [virtual]

generic addition of value at end of collection, control of (de)allocation of corresponding Primitive instance will be assumed by the Array

Implements plist::ArrayBase::StringConversion.

Definition at line 1018 of file plistCollections.h.

template<typename PO >
template<typename T >
void plist::ArrayBase::ConversionTo< PO >::addValue ( const T &  val,
const std::string &  comment = "" 
)

insert a new entry to the end of the vector, and corresponding comment; expects val to be either a primitive type, like int, float, etc., or one of the variable-sized Collection's, like Array, control of (de)allocation will be assumed by the Array

Definition at line 1017 of file plistCollections.h.


The documentation for this struct was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3