Templates -- Meow  1.1.2
不能,也不應該先編譯成obj-file的templates
meow::ObjDictionary< Key, Value > Class Template Reference

純粹把 std::map 包起來, 變成繼承自 ObjBase More...

#include "ObjDictionary.h"

Inheritance diagram for meow::ObjDictionary< Key, Value >:
meow::ObjBase

Public Member Functions

 ObjDictionary ()
 
 ObjDictionary (ObjDictionary const &d)
 
 ObjDictionary (std::map< Key, Value > const &d)
 
 ~ObjDictionary ()
 
ObjDictionarycopyFrom (ObjDictionary const &d)
 
ObjDictionaryreferenceFrom (ObjDictionary const &d)
 
size_t size () const
 
bool empty () const
 
void clear ()
 
std::map< Key, Value >
::const_iterator 
end () const
 
std::map< Key, Value >::iterator end ()
 
std::map< Key, Value >
::const_iterator 
find (Key const &k) const
 
std::map< Key, Value >::iterator find (Key const &k)
 
bool exist (Key const &k) const
 
void insert (Key const &k, Value const &v)
 
ObjDictionaryoperator= (ObjDictionary const &a)
 
Value & operator[] (Key const &k)
 
bool write (FILE *f, bool bin, unsigned int fg) const
 
bool read (FILE *f, bool bin, unsigned int fg)
 
ObjBasecreate () const
 
ObjBasecopyFrom (ObjBase const *b)
 
char const * ctype () const
 
std::string type () const
 
- Public Member Functions inherited from meow::ObjBase
virtual ~ObjBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from meow::ObjBase
static char const * ctypeBase ()
 
static std::string typeBase ()
 
- Protected Member Functions inherited from meow::ObjBase
 ObjBase ()
 

Detailed Description

template<class Key, class Value>
class meow::ObjDictionary< Key, Value >

純粹把 std::map 包起來, 變成繼承自 ObjBase

Author
cathook

Constructor & Destructor Documentation

template<class Key , class Value >
meow::ObjDictionary< Key, Value >::ObjDictionary ( )
inline
template<class Key , class Value >
meow::ObjDictionary< Key, Value >::ObjDictionary ( ObjDictionary< Key, Value > const &  d)
inline
template<class Key , class Value >
meow::ObjDictionary< Key, Value >::ObjDictionary ( std::map< Key, Value > const &  d)
inline
template<class Key , class Value >
meow::ObjDictionary< Key, Value >::~ObjDictionary ( )
inline

Member Function Documentation

template<class Key , class Value >
void meow::ObjDictionary< Key, Value >::clear ( )
inline
template<class Key , class Value >
ObjDictionary& meow::ObjDictionary< Key, Value >::copyFrom ( ObjDictionary< Key, Value > const &  d)
inline
template<class Key , class Value >
ObjBase* meow::ObjDictionary< Key, Value >::copyFrom ( ObjBase const *  b)
inlinevirtual

Reimplemented from meow::ObjBase.

template<class Key , class Value >
ObjBase* meow::ObjDictionary< Key, Value >::create ( ) const
inlinevirtual

Reimplemented from meow::ObjBase.

template<class Key , class Value >
char const* meow::ObjDictionary< Key, Value >::ctype ( ) const
inlinevirtual

Reimplemented from meow::ObjBase.

template<class Key , class Value >
bool meow::ObjDictionary< Key, Value >::empty ( ) const
inline
template<class Key , class Value >
std::map<Key, Value>::const_iterator meow::ObjDictionary< Key, Value >::end ( ) const
inline
template<class Key , class Value >
std::map<Key, Value>::iterator meow::ObjDictionary< Key, Value >::end ( )
inline
template<class Key , class Value >
bool meow::ObjDictionary< Key, Value >::exist ( Key const &  k) const
inline
template<class Key , class Value >
std::map<Key, Value>::const_iterator meow::ObjDictionary< Key, Value >::find ( Key const &  k) const
inline
template<class Key , class Value >
std::map<Key, Value>::iterator meow::ObjDictionary< Key, Value >::find ( Key const &  k)
inline
template<class Key , class Value >
void meow::ObjDictionary< Key, Value >::insert ( Key const &  k,
Value const &  v 
)
inline
template<class Key , class Value >
ObjDictionary& meow::ObjDictionary< Key, Value >::operator= ( ObjDictionary< Key, Value > const &  a)
inline
template<class Key , class Value >
Value& meow::ObjDictionary< Key, Value >::operator[] ( Key const &  k)
inline
template<class Key , class Value >
bool meow::ObjDictionary< Key, Value >::read ( FILE *  f,
bool  bin,
unsigned int  fg 
)
inlinevirtual

Reimplemented from meow::ObjBase.

template<class Key , class Value >
ObjDictionary& meow::ObjDictionary< Key, Value >::referenceFrom ( ObjDictionary< Key, Value > const &  d)
inline
template<class Key , class Value >
size_t meow::ObjDictionary< Key, Value >::size ( ) const
inline
template<class Key , class Value >
std::string meow::ObjDictionary< Key, Value >::type ( ) const
inlinevirtual

Reimplemented from meow::ObjBase.

template<class Key , class Value >
bool meow::ObjDictionary< Key, Value >::write ( FILE *  f,
bool  bin,
unsigned int  fg 
) const
inlinevirtual

Reimplemented from meow::ObjBase.


The documentation for this class was generated from the following file: