1 #ifndef __JEEP__JSTREAMTOOLKIT__
2 #define __JEEP__JSTREAMTOOLKIT__
16 namespace JPP {
using namespace JEEP; }
28 inline std::istream&
readObject(std::istream& in, T&
object)
42 inline std::ostream&
writeObject(std::ostream& out,
const T&
object)
63 return out << prefix <<
object << postfix;
74 template<
class JFirst_t,
class JSecond_t>
91 template<
class JFirst_t,
class JSecond_t>
111 template<
class JFirst_t,
class JSecond_t>
134 template<
class JElement_t,
class JAllocator_t>
137 for (JElement_t element;
readObject(in, element); ) {
138 object.push_back(element);
152 template<
class JElement_t,
class JAllocator_t>
173 template<
class JElement_t,
class JAllocator_t>
194 template<
class JElement_t,
class JAllocator_t>
197 for (JElement_t element;
readObject(in, element); ) {
198 object.push_back(element);
212 template<
class JElement_t,
class JAllocator_t>
233 template<
class JElement_t,
class JAllocator_t>
254 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
257 for (JElement_t element;
readObject(in, element); ) {
262 object.erase (
result.first);
263 object.insert(element);
278 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
299 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
320 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
323 for (JElement_t element;
readObject(in, element); ) {
324 object.insert(element);
338 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
359 template<
class JElement_t,
class JComparator_t,
class JAllocator_t>
380 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
388 result.first->second = element.second;
403 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
424 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
445 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
449 object.insert(element);
463 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
484 template<
class JKey_t,
class JValue_t,
class JComparator_t,
class JAllocator_t>
505 template<
class JElement_t, std::
size_t N>
508 for (
size_t i = 0; i != N; ++i) {
523 template<
class JElement_t, std::
size_t N>
526 for (
size_t i = 0; i != N; ++i) {
544 template<
class JElement_t, std::
size_t N>
550 for (
size_t i = 0; i != N; ++i) {
585 while (++i != __end) {
Forward declarations of STD containers.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
General puprpose classes and methods.
std::ostream & writeObject(std::ostream &out, const T &object)
Stream output of object.
std::istream & readObject(std::istream &in, std::array< JElement_t, N > &object)
Template specialisation of method readObject() for std::array.
std::ostream & writeArray(std::ostream &out, const char *left, const char *right, const char *sep, T __begin, T __end)
Write array of objects.
std::ostream & writeObject(std::ostream &out, const char *prefix, const std::array< JElement_t, N > &object, const char postfix)
Template specialisation of method writeObject() for std::array.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).