64 q.ptr =
dynamic_cast<Q*
>(ptr);
66 QDPIO::cerr <<
"Dynamic cast failed in Handle::cast()" <<std::endl;
67 QDPIO::cerr <<
"You are trying to cast to a class you cannot cast to" << std::endl;
78 template<
typename Q>
friend class Handle;
Primary include file for CHROMA library code.
Class for counted reference semantics.
Handle< Q > cast()
RGE's addition. A cast function to morph the actual type.
T & operator*() const
Access the value to which the pointer refers.
Handle(T *p=0)
Initialize pointer with existing pointer.
Handle & operator=(const Handle &p)
Assignment (unshare old and share new value)
~Handle()
Destructor (delete value if this was the last owner)
Handle(const Handle &p)
Copy pointer (one more owner)
Asqtad Staggered-Dirac operator.
LinOpSysSolverMGProtoClover::Q Q
LinOpSysSolverMGProtoClover::T T