|
|
|
|||||
|
why struct inherit class
struct EvictorEntry : public Ice::LocalObject {
Ice::ObjectPtr servant; Ice::LocalObjectPtr userCookie; EvictorQueue::iterator pos; int useCount; }; struct EvictorEntry inherit Ice::LocalObject why? |
|
||||||
|
Quote:
|
|
|||||
|
on ICE-1.5.1.pdf page 496
class EvictorBase : public Ice::ServantLocator { public: // ... private: struct EvictorEntry; typedef IceUtil::Handle<EvictorEntry> EvictorEntryPtr; typedef std::map<Ice::Identity, EvictorEntryPtr> EvictorMap; typedef std::list<EvictorMap::iterator> EvictorQueue; struct EvictorEntry : public Ice::LocalObject { Ice::ObjectPtr servant; Ice::LocalObjectPtr userCookie; EvictorQueue::iterator pos; int useCount; }; struct EvictorCookie : public Ice::LocalObject { EvictorEntryPtr entry; }; typedef IceUtil::Handle<EvictorCookie> EvictorCookiePtr; EvictorMap _map; EvictorQueue _queue; Ice::Int _size; IceUtil::Mutex _mutex; void evictServants(); }; |
|
||||||
|
This is C++ code, not Slice code or code generated from Slice code. In C++, structs can inherit from classes. Please see your C++ documentation for details.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| About return struct | billwillman | Help Center | 7 | 10-16-2006 03:39 AM |
| Problem with classes in struct | kovacm | Help Center | 9 | 10-06-2005 02:49 AM |
| is there any way to use my own struct in slice? | pi1ot | Help Center | 1 | 02-21-2005 12:35 AM |
| csc compiler error amd inherit accross namespaces | DeepDiver | Bug Reports | 2 | 12-01-2004 10:42 PM |
| May slice struct contain class? | minifat | Help Center | 1 | 08-09-2004 10:16 PM |