From 0d0566253e4a25e5e7064c8eb5ba7e654c071632 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 4 Sep 1996 20:23:59 +0000 Subject: [PATCH] added operator -> --- src/cas/generic/casPVIIL.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/cas/generic/casPVIIL.h b/src/cas/generic/casPVIIL.h index 21e53ab07..bd5702fd1 100644 --- a/src/cas/generic/casPVIIL.h +++ b/src/cas/generic/casPVIIL.h @@ -29,6 +29,9 @@ * * History * $Log$ + * Revision 1.4 1996/07/01 19:56:13 jhill + * one last update prior to first release + * * Revision 1.3 1996/06/26 21:18:58 jhill * now matches gdd api revisions * @@ -47,6 +50,26 @@ #include + +// +// casPVI::interfaceObjectPointer() +// +// casPVI must always be a base for casPV +// (the constructor assert fails if this isnt the case) +// +inline casPV *casPVI::interfaceObjectPointer() const +{ + return &this->pv; +} + +// +// casPVI::operator -> () +// +casPV * casPVI::operator -> () const +{ + return interfaceObjectPointer(); +} + // // casPVI::lock() // @@ -88,8 +111,7 @@ inline void casPVI::removeChannel(casPVListChan &chan) // inline aitBool casPVI::okToBeginNewIO() const { - if (this->nIOAttached >= (*this)->maxSimultAsyncOps()) - { + if (this->nIOAttached >= (*this)->maxSimultAsyncOps()) { return aitFalse; } else { @@ -178,7 +200,6 @@ inline void casPVI::postEvent (const casEventMask &select, gdd &event) } } - #endif // casPVIIL_h