Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::util Namespace Reference
[various helper functions]


struct  TrEq
struct  GetMKey
struct  __SrandInit


typedef std::pair< std::string,
std::string > 
typedef std::list< nvpairpairlist_t
typedef std::map< std::string,
boost::shared_ptr< void > > 
typedef std::map< std::string,
std::string > 
typedef std::multimap
< std::string, std::string > 


unsigned long getRandomLong ()
std::string getRandomString (int len)
template<class T >
std::auto_ptr< std::vector
< std::string > > 
getMapKeyNames (const std::map< std::string, T > &map)
template<class T >
std::auto_ptr< std::vector
< std::string > > 
getMapKeyNames (const std::multimap< std::string, T > &map)
template<typename K , typename V >
std::auto_ptr< std::vector< V > > getMapValues (const std::multimap< K, V > &map, const K &name)


static __SrandInit __srtandInit

Detailed Description

Private utility functions

Typedef Documentation

typedef std::map<std::string,boost::shared_ptr<void> > container::util::attr_t

Definition at line 48 of file util.h.

typedef std::multimap<std::string,std::string> container::util::mparam_t

Definition at line 50 of file util.h.

typedef std::pair<std::string, std::string> container::util::nvpair

Definition at line 46 of file util.h.

typedef std::list<nvpair> container::util::pairlist_t

Definition at line 47 of file util.h.

typedef std::map<std::string,std::string> container::util::param_t

Definition at line 49 of file util.h.

Function Documentation

template<class T >
std::auto_ptr< std::vector<std::string> > container::util::getMapKeyNames ( const std::map< std::string, T > &  map  )  [inline]

Definition at line 55 of file util.h.

template<typename K , typename V >
std::auto_ptr< std::vector<V> > container::util::getMapValues ( const std::multimap< K, V > &  map,
const K &  name 
) [inline]

unsigned long container::util::getRandomLong (  ) 

Definition at line 42 of file util.cpp.

Referenced by getRandomString().

std::string container::util::getRandomString ( int  len  ) 

len desired length of string. May return more
Base64-encoded string of at least len length

Definition at line 54 of file util.cpp.

References getRandomLong().

Referenced by container::serverconfig::AppContext::newSession().

Here is the call graph for this function:

Variable Documentation

Definition at line 37 of file util.cpp.

SourceForge.net Logo