Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
MCollectible
Inherited By:
None.
Purpose:
Provides a simple reference to the presenter state instance. If the referenced presenter state is persistent, this reference is valid across multiple sessions of the document. The reference can be used to look up the presenter state.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive from this class.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TPresenterStateReference (const TModelPresenterState &)
- TPresenterStateReference (const TPresenterStateReference &)
- TPresenterStateReference ()
Interface Category:
API.
Purpose:
- Constructs a reference for a specific presenter state.
- Copy constructor.
- Default constructor.
Calling Context:
- Call this function directly.
- Call this function directly.
- Called by the stream-in operators and to create an undefined reference.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TPresenterStateReference ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
bool IsReferenceFor (const TModelPresenterState &) const
Interface Category:
API.
Purpose:
Determines whether this reference is for a specific presenter state.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if this reference is for the presenter state.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
bool IsDefined () const
Interface Category:
API.
Purpose:
Determines whether this reference is defined to refer to a presenter state.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if this reference is defined to refer to a presenter state.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
operator TDocumentReference () const
Interface Category:
API.
Purpose:
Converts this reference to a document reference.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns a reference to the document containing the presenter state this reference refers to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TPresenterStateReference & operator =(const TPresenterStateReference &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
Returns a const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
bool operator ==(const TPresenterStateReference &) const
Interface Category:
API.
Purpose:
Compares two reference objects for equality. The references are equal if they refer to the same presenter state. Two undefined references are not equal.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if the references are for the same presenter state.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
bool operator != (const TPresenterStateReference &) const
Interface Category:
API.
Purpose:
Compares two references for inequality. The references are not equal if they do not refer to the same presenter state, or if either or both are undefined.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if the references are not to the same presenter state.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator >>=(TStream & towhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & towhere -The stream to which the object streams itself out.
Return Value:
Returns a reference to the stream the object streams itself out to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator <<= (TStream & fromwhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromwhere -The stream from which the object streams itself in.
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long Hash () const
Interface Category:
API.
Purpose:
Speeds comparison.
Calling Context:
Called by collections when comparing objects.
Parameters:
Return Value:
Returns the integer hash value.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.