Go to the documentation of this file. 1 #ifndef __JTOOLS__JSELECTOR__
2 #define __JTOOLS__JSELECTOR__
38 template<
class JBase_t>
60 template<
class JDerived_t,
class JBase_t>
95 virtual std::istream&
read(std::istream& in)
97 JDerived_t* p = this->
load(in);
115 virtual std::ostream&
write(std::ostream& out)
const
127 template<
class JBase_t>
150 template<
class JDerived_t>
164 template<
class JDerived_t>
175 template<
class JDerived_t>
187 template<
class JDerived_t>
199 template<
class JDerived_t>
212 template<
class JDerived_t>
227 template<
class JDerived_t>
246 return element.
get()->read(in);
262 return element.
get()->write(out);
274 template<
class JKey_t,
class JBase_t>
276 public std::map<JKey_t, JAutoElement<JBase_t> >
301 template<
class JDerived_t>
313 template<
class JDerived_t>
327 template<
class JDerived_t>
357 return i != this->end() && i->second.is_valid() && i->second.get()->is_valid();
382 if (i != this->end() && i->second.is_valid() && i->second.get()->is_valid())
383 return *(i->second.get()->get());
412 if (in >> selector.
key) {
416 if (i != selector.end() && i->second.
is_valid())
419 in.setstate(std::ios_base::failbit);
439 if (i != selector.end() && i->second.
is_valid()) {
440 return out << selector.
key <<
' ' << *(i->second);
virtual JClass_t * get() const
Get pointer.
Auxiliary class for a type holder.
JArgument< T >::argument_type argument_type
Exception for null pointer operation.
Interface for ASCII output using standard streams.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual void reset()
Reset pointer.
const bool isDefined() const
Get status of parameter.
The template JSharedPointer class can be used to share a pointer to an object.
bool is_valid() const
Check validity of pointer.