1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident "%Z%%M% %I% %E% SMI"
5 #ifndef XcharMap_DEF_INCLUDED
6 #define XcharMap_DEF_INCLUDED 1
11 namespace SP_NAMESPACE
{
15 SharedXcharMap
<T
>::SharedXcharMap()
20 SharedXcharMap
<T
>::SharedXcharMap(T defaultValue
)
22 for (size_t i
= 0; i
< sizeof(v
)/sizeof(v
[0]); i
++)
27 XcharMap
<T
>::XcharMap()
33 XcharMap
<T
>::XcharMap(T defaultValue
)
34 : sharedMap_(new SharedXcharMap
<T
>(defaultValue
))
36 ptr_
= sharedMap_
->ptr();
40 void XcharMap
<T
>::setRange(Char min
, Char max
, T val
)
45 } while (min
++ != max
);
53 #endif /* not XcharMap_DEF_INCLUDED */