00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __ALIST_H__
00018 #define __ALIST_H__
00019
00020 #include <list>
00021 #include "../serialize/Serialize.h"
00022
00023 namespace oasys {
00024
00025
00030 template<typename _Key, typename _Value>
00031 class AList : public oasys::SerializableObject {
00032 typedef std::list<_Key, _Value> List;
00033
00034 public:
00039 bool exists(const _Key& k) const;
00040
00046 bool get(const _Key& k, _Value* v) const;
00047
00052 void add(const _Key& k, _Value v);
00053
00057 const _Value& operator[](const _Key& k) const;
00058
00059
00060 void process(oasys::SerializeAction* action);
00061
00062 private:
00063 List list_;
00064 };
00065
00066
00067 template<typename _Key, typename _Value>
00068 bool AList<_Key, _Value>::exists(const _Key& k) const
00069 {
00070 return true;
00071 }
00072
00073
00074 template<typename _Key, typename _Value>
00075 bool AList<_Key, _Value>::get(const _Key& k, _Value* v) const
00076 {
00077 return true;
00078 }
00079
00080
00081 template<typename _Key, typename _Value>
00082 void AList<_Key, _Value>::add(const _Key& k, _Value v)
00083 {
00084 }
00085
00086
00087 template<typename _Key, typename _Value>
00088 const _Value& AList<_Key, _Value>::operator[](const _Key& k) const
00089 {
00090 }
00091
00092
00093 template<typename _Key, typename _Value>
00094 void AList<_Key, _Value>::process(oasys::SerializeAction* action)
00095 {
00096 return _Value();
00097 }
00098
00099 }
00100
00101 #endif