// To make things more safe, allow users of an object to register at it. The users need to be derived // from sdr::ObjectUser to get a call. The users do not need to call RemoveObjectUser() at the page // when they get called from ObjectInDestruction().
namespace sdr
{ class ObjectUser
{ public: // this method is called from the destructor of the referenced page. // do all necessary action to forget the page. It is not necessary to call // RemovePageUser(), that is done from the destructor. virtualvoid ObjectInDestruction(const SdrObject& rObject) = 0;
protected:
~ObjectUser() {}
};
// typedef for ObjectUserVector typedef ::std::vector< ObjectUser* > ObjectUserVector;
} // end of namespace sdr
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.