00001 // Copyright (C) 2001, Compaq Computer Corporation 00002 // 00003 // This file is part of Vesta. 00004 // 00005 // Vesta is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public 00007 // License as published by the Free Software Foundation; either 00008 // version 2.1 of the License, or (at your option) any later version. 00009 // 00010 // Vesta is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with Vesta; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 00019 // Last modified on Thu Aug 1 10:39:40 EDT 2002 by kcschalk@shr.intel.com 00020 // modified on Tue Nov 13 12:38:26 EST 2001 by ken@xorian.net 00021 // modified on Thu Feb 2 09:24:25 PST 1995 by levin 00022 00023 #ifndef _int_seq_private 00024 #define _int_seq_private 00025 00026 00027 class int_seq_impl { 00028 // For efficiency, the SRPC implementation is allowed to reach inside. 00029 friend class SRPC; 00030 friend class SRPC_impl; 00031 public: 00032 // Because of type-system breaches needed for storage management, the 00033 // actual data is not defined as part of the class, but rather as a 00034 // separately allocated piece of storage of type "rep". 00035 enum stg_type { grow, full, manual }; 00036 struct header { 00037 stg_type storage; 00038 int len; // sequence length 00039 int maxlen; // maximum length 00040 }; 00041 struct rep { // representation overlaid on *p 00042 header h; 00043 Basics::int32 base; // sequence[0], ... 00044 }; 00045 00046 static rep *allocate_buffer(int len_hint = 10); 00047 00048 }; 00049 00050 #endif /* _int_seq_private */