34 #ifndef DRAIN_REFERENCE_T
35 #define DRAIN_REFERENCE_T
38 #include "VariableBase.h"
69 typedef std::pair<const char *,const drain::ReferenceT<T> > init_pair_t;
137 catch (
const std::exception & e){
139 Logger(__FILE__, __LINE__, __FUNCTION__).
error(
"unsupported type: ",
typeid(F).name(),
" msg:", e.what());
161 this->elementCount = count;
169 throw std::runtime_error(std::string(__FILE__) + __FUNCTION__ +
": void type unsupported");
175 ReferenceT & link(Castable &x){
206 void init(
const S & src){
207 std::cerr << __FILE__ <<
' ' << __LINE__ <<
':' << __FUNCTION__ <<
" " << src << std::endl;
220 void init(
void *p,
const std::type_info &t,
size_t count=1){
221 this->link(p, t, count);
239 void ReferenceT<VariableBase>::init(
const S & src){
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition: Log.h:308
Logger & error(const TT &... args)
Echoes.
Definition: Log.h:412
Logger & fail(const TT &... args)
Possible error, but execution can continue. Special type of Logger::warn().
Definition: Log.h:449
Intermediate class supporting link() in various forms.
Definition: ReferenceT.h:63
ReferenceT & link(VariableT< VariableInitializer< VariableBase > > &x)
Linkage for a Variable - produces a warning, because internal variable has dynamic type.
Definition: ReferenceT.h:118
ReferenceT & link(void *p, const std::type_info &t, size_t count=1)
Set pointer to p, of given type.
Definition: ReferenceT.h:159
ReferenceT & link(F &p)
Set pointer to &p.
Definition: ReferenceT.h:133
virtual bool isLinkable() const
Tells if the internal pointer can point to an external variable.
Definition: ReferenceT.h:76
ReferenceT & link(F *p)
Set pointer to &p.
Definition: ReferenceT.h:152
ReferenceT & link(VariableT< VariableInitializer< ReferenceT< VariableBase > > > &x)
Linkage for a FlexibleVariable.
Definition: ReferenceT.h:102
void init(D &dst)
Copy constructor handler - important.
Definition: ReferenceT.h:199
ReferenceT & link(VariableT< ReferenceT< Castable > > &x)
Linkage for Reference, above all for copy constructor.
Definition: ReferenceT.h:95
Definition: VariableBase.h:246
VariableT is a final class applied through typedefs Variable, Reference and FlexibleVariable.
Definition: VariableT.h:87
Definition: DataSelector.cpp:1277