Data Structures | |
class | _character_operators |
At least with gcc, linking of stream operators was broken. More... | |
class | _stream_operators |
At least with gcc, linking of stream operators was broken. More... | |
class | array_pointer |
Generic smart array class. More... | |
class | array_reuse |
An array of reusable types. More... | |
class | ArrayReuse |
An array of reusable objects. More... | |
class | assoc_pointer |
A typed template for using a key association with typed objects. More... | |
class | atomic |
Generic atomic class for referencing atomic objects and static functions. More... | |
class | auto_object |
A general purpose smart pointer helper class. More... | |
class | auto_protect |
A mutex locked object smart pointer helper class. More... | |
class | autorelease |
Create a linked list of auto-releasable objects. More... | |
class | barrier |
A portable implimentation of "barrier" thread sychronization. More... | |
class | bitmap |
A class to access bit fields in external bitmaps. More... | |
class | Buffer |
A thread-safe buffer for serializing and streaming class data. More... | |
class | bufferof |
A templated typed class for buffering of objects. More... | |
class | BufferProtocol |
Common buffer protocol class. More... | |
class | bufpager |
Buffered pager for storing paged strings for character protocol. More... | |
class | CharacterProtocol |
Common character processing protocol. More... | |
class | charbuf |
A template to create a character array that can be manipulated as a string. More... | |
class | charmem |
class | chartext |
class | cidr |
A class to hold internet segment routing rules. More... | |
class | Cipher |
A generic data ciphering class. More... | |
class | Conditional |
The conditional is a common base for other thread synchronizing classes. More... | |
class | ConditionalAccess |
The conditional rw seperates scheduling for optizming behavior or rw locks. More... | |
class | ConditionalLock |
An optimized and convertable shared lock. More... | |
class | CountedObject |
A base class for reference counted objects. More... | |
class | counter |
Automatic integer counting class. More... | |
class | Date |
The Date class uses a julian date representation of the current year, month, and day.julian number based date class. More... | |
class | DateNumber |
A number class that manipulates a string buffer that is also a date.a number that is also a date string. More... | |
class | DateTime |
The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.Integer based time class. More... | |
class | DateTimeString |
A DateTime string class.a datetime class that returns strings. More... | |
class | DetachedThread |
A detached thread object that is stand-alone. More... | |
class | Digest |
A cryptographic digest class. More... | |
class | dir |
Convenience class for directories. More... | |
class | DirPager |
Directory pager is a paged string list for directory file names. More... | |
class | DLinkedObject |
A double-linked Object, used for certain kinds of lists. More... | |
class | dso |
Convenience class for library plugins. More... | |
class | exclusive_access |
A kind of smart pointer object to support exclusive locking protocol. More... | |
class | ExclusiveAccess |
An exclusive locking protocol interface base. More... | |
class | file |
Access standard files through character protocol. More... | |
class | filestream |
Streamable tcp connection between client and server. More... | |
class | fsys |
A container for generic and o/s portable threadsafe file system functions. More... | |
class | HMAC |
A cryptographic message authentication code class. More... | |
class | InputProtocol |
Used for processing input. More... | |
class | isotime |
class | JoinableThread |
A child thread object that may be joined by parent. More... | |
class | keyassoc |
A class to hold memory pointers referenced by string names. More... | |
class | keydata |
Data keys parsed from a keyfile. More... | |
class | keyfile |
Traditional keypair config file parsing class. More... | |
class | keylist |
A template for ordered index of typed name key mapped objects. More... | |
class | keymap |
A template class for a hash map. More... | |
class | keypager |
A template class for a hash pager. More... | |
class | keyrandom |
A template to create a random generated key of specified size. More... | |
class | keystring |
A template to create a string array that automatically erases. More... | |
class | linked_allocator |
Linked allocator template to gather linked objects. More... | |
class | linked_pointer |
A smart pointer template for iterating linked lists. More... | |
class | linked_pointer< sockaddr_struct > |
Linked pointer for address lists. More... | |
class | linked_value |
Template value class to embed data structure into a linked list. More... | |
class | LinkedAllocator |
Linked allocator helper for linked_allocator template. More... | |
class | LinkedList |
A double linked list object. More... | |
class | LinkedObject |
Common base class for all objects that can be formed into a linked list. More... | |
class | ListenSocket |
A bound socket used to listen for inbound socket connections. More... | |
class | listof |
class | locked_instance |
A templated smart pointer instance for lock protected objects. More... | |
class | locked_pointer |
Templated locked pointer for referencing locked objects of specific type. More... | |
class | locked_release |
Auto-pointer support class for locked objects. More... | |
class | LockedPointer |
An object pointer that uses mutex to assure thread-safe singleton use. More... | |
class | LockingProtocol |
Common locking protocol. More... | |
class | mapof |
class | mapped_array |
Template class to map typed vector into shared memory. More... | |
class | mapped_reuse |
Template class to map typed reusable objects into shared memory heap. More... | |
class | mapped_view |
Class to access a named mapped segment published from another process. More... | |
class | MappedMemory |
Construct or access a named section of memory. More... | |
class | MappedReuse |
Map a reusable allocator over a named shared memory segment. More... | |
class | memalloc |
A memory protocol pager for private heap manager. More... | |
class | MemoryProtocol |
class | MemoryRedirect |
A redirection base class for the memory protocol. More... | |
class | mempager |
A managed private heap for small allocations. More... | |
class | memstring |
A string class that uses a cstring buffer that is fixed in memory. More... | |
class | MemVector |
Vector with fixed size member list. More... | |
class | multimap |
Embed data objects into a multipap structured memory database. More... | |
class | MultiMap |
A multipath linked list where membership is managed in multiple lists. More... | |
class | Mutex |
Generic non-recursive exclusive lock class. More... | |
class | mutex_pointer |
Typed smart locked pointer class. More... | |
class | named_value |
Template value class to embed data structure into a named list. More... | |
class | NamedObject |
A linked object base class with members found by name. More... | |
class | NamedTree |
The named tree class is used to form a tree oriented list of associated objects. More... | |
class | Number |
A number manipulation class.number manipulation. More... | |
class | object_pointer |
Typed smart pointer class. More... | |
class | object_value |
Template for embedding a data structure into a reference counted object. More... | |
class | ObjectPager |
class | ObjectProtocol |
A common base class for all managed objects. More... | |
class | ObjectQueue |
A queue of double linked object. More... | |
class | ObjectStack |
class | objfifo |
Template for typesafe basic object fifo container. More... | |
class | objqueue |
Template for typesafe basic object queue container. More... | |
class | objstack |
Template for typesafe basic object stack container. More... | |
class | OrderedIndex |
An index container for maintaining an ordered list of objects. More... | |
class | OrderedObject |
A linked object base class for ordered objects. More... | |
class | paged_reuse |
A reusable private pool of reusable types. More... | |
class | pager |
Mempager managed type factory for pager pool objects. More... | |
class | PagerObject |
This is a base class for objects that may be created in pager pools. More... | |
class | PagerPool |
Pager pool base class for managed memory pools. More... | |
class | PagerReuse |
A mempager source of reusable objects. More... | |
class | PersistEngine |
Stream serialization of persistent classes. More... | |
class | PersistException |
class | PersistObject |
PersistObject. More... | |
class | pipestream |
Streamable tcp connection between client and server. More... | |
class | pointer |
Generic smart pointer class. More... | |
class | PrintProtocol |
Used for forming stream output. More... | |
class | Queue |
Manage a thread-safe queue of objects through reference pointers. More... | |
class | queueof |
A templated typed class for thread-safe queue of object pointers. More... | |
class | Random |
Cryptographically relevant random numbers. More... | |
class | RecursiveMutex |
Portable recursive exclusive lock. More... | |
class | ReusableAllocator |
Class for resource bound memory pools between threads. More... | |
class | ReusableObject |
Reusable objects for forming private heaps. More... | |
class | sarray |
Generate a typed sparse managed object array. More... | |
class | save_restore |
Save and restore global objects in function call stack frames. More... | |
class | secure |
Common secure socket support. More... | |
class | Semaphore |
A portable counting semaphore class. More... | |
class | SeqCounter |
Automatically return a sequence of untyped objects. More... | |
class | sequence |
A template to return a sequence of objects of a specified type. More... | |
class | shared_access |
A kind of smart pointer object to support shared locking protocol. More... | |
class | shared_instance |
A templated smart pointer instance for shared singleton typed objects. More... | |
class | shared_pointer |
Templated shared pointer for singleton shared objects of specific type. More... | |
class | shared_release |
Auto-pointer support class for shared singleton objects. More... | |
class | SharedAccess |
An exclusive locking access interface base. More... | |
class | SharedObject |
Shared singleton object. More... | |
class | SharedPointer |
The shared pointer is used to manage a singleton instance of shared object. More... | |
class | shell |
A utility class for generic shell operations. More... | |
class | Socket |
A generic socket base class. More... | |
class | SparseObjects |
A sparse array of managed objects. More... | |
class | SSLBuffer |
Secure socket buffer. More... | |
class | sstream |
Secure socket using std::iostream. More... | |
class | Stack |
Manage a thread-safe stack of objects through reference pointers. More... | |
class | stackof |
A templated typed class for thread-safe stack of object pointers. More... | |
class | strdup_t |
class | StreamBuffer |
Common stream buffer for std C++ i/o classes. More... | |
class | String |
A copy-on-write string class that operates by reference count. More... | |
class | stringbuf |
A string class that has a predefined string buffer. More... | |
class | StringPager |
String pager for storing lists of NULL terminated strings. More... | |
class | TCPBuffer |
A generic tcp socket class that offers i/o buffering. More... | |
class | TCPServer |
A generic tcp server class. More... | |
class | tcpstream |
Streamable tcp connection between client and server. More... | |
class | temp_array |
Manage temporary array stored on the heap. More... | |
class | temporary |
Manage temporary object stored on the heap. More... | |
class | Thread |
An abstract class for defining classes that operate as a thread. More... | |
class | ThreadLock |
A generic and portable implimentation of Read/Write locking. More... | |
class | Time |
The Time class uses a integer representation of the current time.Integer based time class. More... | |
class | TimedEvent |
Event notification to manage scheduled realtime threads. More... | |
class | Timer |
Timer class to use when scheduling realtime events. More... | |
class | TimerQueue |
A timer queue for timer events. More... | |
class | toggle |
Automatically toggle a bool on each reference. More... | |
class | treemap |
Embed data objects into a tree structured memory database. More... | |
class | TypeManager |
Type manager for persistence engine. More... | |
class | UnlockAccess |
Common unlock protocol for locking protocol interface classes. More... | |
class | UString |
A copy-on-write utf8 string class that operates by reference count. More... | |
class | utf8 |
A core class of ut8 encoded string functions. More... | |
class | utf8_pointer |
Pointer to utf8 encoded character data. More... | |
class | Vector |
A managed vector for generic object pointers. More... | |
class | vectorbuf |
Allocated vector list of a specified type. More... | |
class | vectorof |
A templated vector for a list of a specific Object subtype. More... | |
class | XMLParser |
XML streaming parser. More... | |
class | ZNumber |
A number manipulation class that maintains a zero lead filled string.zero filled number manipulation. More... | |
Typedefs | |
typedef ConditionalAccess | accesslock_t |
Convenience type for scheduling access. | |
typedef barrier | barrier_t |
Convenience type for using thread barriers. | |
typedef Cipher | cipher_t |
Convenience type for generic ciphers. | |
typedef ConditionalLock | condlock_t |
Convenience type for using conditional locks. | |
typedef counter | counter_t |
A convenience typecast for integer counters. | |
typedef Date | date_t |
Convenience type for using Date object. | |
typedef DateTime | datetime_t |
Convenience type for using DateTime object. | |
typedef DateTimeString | datetimestring_t |
Convenience type for using DateTimeString object. | |
typedef Digest | digest_t |
Convenience type for generic digests. | |
typedef dir | dir_t |
typedef DirPager | dirlist_t |
A convenience type for using DirPager directly. | |
typedef dso | dso_t |
typedef exclusive_access | exlock_t |
Convenience type to use for object referencing an exclusive object. | |
typedef Queue | fifo_t |
Convenience type for using thread-safe object fifo (queue). | |
typedef file | file_t |
Convience type for file. | |
typedef fsys | fsys_t |
Convience type for fsys. | |
typedef HMAC | hmac_t |
Convenience type for generic digests. | |
typedef LinkedObject * | LinkedIndex |
Convenience typedef for root pointers of single linked lists. | |
typedef void * | mem_t |
Convenience type for loader operations. | |
typedef Mutex | mutex_t |
Convenience type for using exclusive mutex locks. | |
typedef PersistObject *(*) | NewPersistObjectFunction (void) |
typedef Number | number_t |
A convenience type for number. | |
typedef OrderedIndex | objfifo_t |
Convenience type for a fifo of linked objects. | |
typedef ObjectQueue | objqueue_t |
Convenience type for a queue of linked objects. | |
typedef ObjectStack | objstack_t |
Convenience type for a stack of linked objects. | |
typedef RecursiveMutex | rexlock_t |
Convenience type for using recursive exclusive locks. | |
typedef ThreadLock | rwlock_t |
Convenience type for using read/write locks. | |
typedef Semaphore | semaphore_t |
Convenience type for using counting semaphores. | |
typedef shell | shell_t |
Convenience type to manage and pass shell objects. | |
typedef shared_access | shlock_t |
Convenience type to use for object referencing a shared object. | |
typedef Cipher::Key | skey_t |
Convenience type for generic cipher key. | |
typedef SSLBuffer | ssl_t |
Convenience type for secure socket. | |
typedef Stack | stack_t |
Convenience type for using thread-safe object stacks. | |
typedef String | string_t |
A convenience type for string. | |
typedef String::regex | stringex_t |
typedef StringPager | stringlist_t |
A convenience type for paged string lists. | |
typedef StringPager::member | stringlistitem_t |
A convenience type for paged string list items. | |
typedef unsigned short | strsize_t |
A convenience class for size of strings. | |
typedef TCPBuffer | tcp_t |
Convenience type for pure tcp sockets. | |
typedef TCPServer | tcpserv_t |
typedef TimedEvent | timedevent_t |
Convenience type for using timed events. | |
typedef Timer | timer_t |
A convenience type for timers. | |
typedef Time | tod_t |
Convenience type for using Time object. | |
typedef toggle | toggle_t |
A convenience typecast for auto-toggled bools. | |
typedef TimerQueue::event | TQEvent |
A convenience type for timer queue timer events. | |
typedef int16_t | ucs2_t |
16 bit unicode character code. | |
typedef int32_t | ucs4_t |
32 bit unicode character code. | |
typedef void * | unicode_t |
Resolves issues where wchar_t is not defined. | |
typedef UString | ustring_t |
Convenience type for utf8 encoded strings. | |
typedef utf8_pointer | utf8_t |
Convenience type for utf8_pointer strings. | |
typedef ZNumber | znumber_t |
A convenience type for znumber. | |
Functions | |
sockaddr * | _getaddrinfo (struct addrinfo *addrinfo) |
Helper function for linked_pointer<struct sockaddr>. | |
socket_t | _getaddrsock (struct addrinfo *addrinfo) |
Helper function for linked_pointer<struct sockaddr>. | |
addrinfo * | _nextaddrinfo (struct addrinfo *addrinfo) |
Helper function for linked_pointer<struct sockaddr>. | |
bool | _rw_reader_ (void *obj) |
bool | _rw_release_ (void *obj) |
bool | _rw_writer_ (void *obj) |
bool | _sync_protect_ (void *obj) |
bool | _sync_release_ (void *obj) |
char * | _TEXT (char *s) |
Invoke translation lookup if available. | |
template<typename T> | |
T | abs (T &value) |
Template for absolute value of a type. | |
void | access (condlock_t &lock) |
Convenience function for shared access to a conditional lock. | |
void | access (accesslock_t &lock) |
Convenience function to shared read schedule conditional access. | |
void | access (SharedAccess &object) |
Convenience function to access (lock) shared object through it's protocol. | |
void | acquire (mutex_t &mutex) |
Convenience function to acquire a mutex. | |
sockaddr * | addr (Socket::address &address) |
A convenience function to convert a socket address list into a socket address. | |
addrinfo * | addrinfo (Socket::address &address) |
A convenience function to convert a socket address list into an addrinfo. | |
void | commit (condlock_t &lock) |
Convenience function to commit and release an exclusively locked conditional lock. | |
void | commit (accesslock_t &lock) |
Convenience function to commit an exclusive access lock. | |
ObjectProtocol * | copy (ObjectProtocol *object) |
Convenience function to access object copy. | |
template<typename T> | |
void | copy_unsafe (T *target, T *source) |
Convenience function to copy class. | |
template<typename T> | |
T * | dup (T &object) |
Convenience function to duplicate object pointer to heap. | |
template<> | |
char * | dup< char > (char &object) |
template<typename T> | |
void | dupfree (T object) |
template<> | |
void | dupfree< char * > (char *object) |
template<> | |
void | dupfree< ucs2_t * > (ucs2_t *string) |
template<> | |
void | dupfree< ucs4_t * > (ucs4_t *string) |
template<> | |
void | dupfree< unicode_t > (unicode_t string) |
bool | eq (String &s1, char *s2) |
Compare two string objects if equal. | |
bool | eq (char *s1, char *s2, size_t size) |
Compare two null terminated strings if equal up to specified size. | |
bool | eq (char *s1, char *s2) |
Compare two null terminated strings if equal. | |
bool | eq (struct sockaddr_storage *s1, struct sockaddr_storage *s2) |
Compare two stored socket addresses to see if equal. | |
bool | eq (struct sockaddr *s1, struct sockaddr *s2) |
Compare two socket addresses to see if equal. | |
bool | eq_case (char *s1, char *s2, size_t size) |
Compare two null terminated strings if equal for a specified size ignoring case. | |
bool | eq_case (char *s1, char *s2) |
Compare two null terminated strings if equal ignoring case. | |
bool | eq_host (struct sockaddr *s1, struct sockaddr *s2) |
Compare two host addresses to see if equal. | |
bool | eq_subnet (struct sockaddr *s1, struct sockaddr *s2) |
bool | exclusive (rwlock_t &lock, timeout_t timeout=Timer::inf) |
Convenience function for exclusive write access to a read/write lock. | |
void | exclusive (condlock_t &lock) |
Convenience function to exclusively lock shared conditional lock. | |
void | exclusive (SharedAccess &object) |
Convenience function to exclusive lock shared object through it's protocol. | |
bool | ge (String &s1, char *s2) |
bool | gt (String &s1, char *s2) |
template<class T> | |
bool | is (T &object) |
Convenience function to validate object assuming it is castable to bool. | |
bool | is_device (char *path) |
bool | is_dir (char *path) |
bool | is_executable (char *path) |
bool | is_exists (char *path) |
bool | is_file (char *path) |
bool | is_link (char *path) |
bool | is_readable (char *path) |
bool | is_writable (char *path) |
template<typename T> | |
bool | isnull (T &object) |
Convenience function to test pointer object. | |
template<typename T> | |
bool | isnullp (T *object) |
Convenience function to test pointer-pointer object. | |
bool | le (String &s1, char *s2) |
template<typename T> | |
T &() | limit (T &value, T &low, T &high) |
Convenience macro to range restrict values. | |
void | lock (rexlock_t &lock) |
Convenience function to lock a shared recursive mutex lock. | |
void | lock (ExclusiveAccess &object) |
Convenience function to exclusively lock an object through it's protocol. | |
bool | lt (String &s1, char *s2) |
template<typename T> | |
T &() | max (T &o1, T &o2) |
Convenience function to return max of two objects. | |
template<typename T> | |
T &() | min (T &o1, T &o2) |
Convenience function to return min of two objects. | |
void | modify (condlock_t &lock) |
Convenience function to exclusively aquire a conditional lock. | |
void | modify (accesslock_t &lock) |
Convenience function to exclusively schedule conditional access. | |
bool | ne (String &s1, String &s2) |
bool | ne (char *s1, char *s2, size_t size) |
bool | ne (char *s1, char *s2) |
bool | ne_case (char *s1, char *s2) |
std::ostream & | operator<< (std::ostream &out, stringlist_t &list) |
std::ostream & | operator<< (std::ostream &out, string_t &str) |
std::ostream & | operator<< (std::ostream &out, PrintProtocol &format) |
CharacterProtocol & | operator<< (CharacterProtocol &p, double &value) |
CharacterProtocol & | operator<< (CharacterProtocol &p, long &value) |
CharacterProtocol & | operator<< (CharacterProtocol &p, StringPager &list) |
CharacterProtocol & | operator<< (CharacterProtocol &p, PrintProtocol &format) |
CharacterProtocol & | operator<< (CharacterProtocol &p, char &ch) |
CharacterProtocol & | operator<< (CharacterProtocol &p, char *s) |
std::istream & | operator>> (std::istream &in, stringlist_t &list) |
std::istream & | operator>> (std::istream &inp, string_t &str) |
std::istream & | operator>> (std::istream &inp, InputProtocol &format) |
CharacterProtocol & | operator>> (CharacterProtocol &p, double &value) |
CharacterProtocol & | operator>> (CharacterProtocol &p, long &value) |
CharacterProtocol & | operator>> (CharacterProtocol &p, StringPager &list) |
CharacterProtocol & | operator>> (CharacterProtocol &p, InputProtocol &format) |
CharacterProtocol & | operator>> (CharacterProtocol &p, String &str) |
CharacterProtocol & | operator>> (CharacterProtocol &p, char &ch) |
void | release (rexlock_t &lock) |
Convenience function to release a shared recursive mutex lock. | |
void | release (rwlock_t &lock) |
Convenience function to release a shared lock. | |
void | release (condlock_t &lock) |
Convenience function to release shared access to a conditional lock. | |
void | release (accesslock_t &lock) |
Convenience function to release an access lock. | |
void | release (mutex_t &mutex) |
Convenience function to release a mutex. | |
void | release (semaphore_t &semaphore) |
Convenience function to release a semaphore. | |
void | release (ObjectProtocol *object) |
Convenience function to access object release. | |
void | release (shlock_t &reference) |
Convenience function to release a reference to a shared lock. | |
void | release (exlock_t &reference) |
Convenience function to release a reference to an exclusive lock. | |
void | release (SharedAccess &object) |
Convenience function to unlock shared object through it's protocol. | |
template<typename T> | |
void | reset_unsafe (T &object) |
Convenience function to reset an existing object. | |
void | retain (ObjectProtocol *object) |
Convenience function to access object retention. | |
bool | share (rwlock_t &lock, timeout_t timeout=Timer::inf) |
Convenience function for shared read access to a read/write lock. | |
void | share (condlock_t &lock) |
Convenience function to restore shared access on a conditional lock. | |
void | share (SharedAccess &object) |
Convenience function to restore shared locking for object through it's protocol. | |
char * | shift (stringlist_t &list) |
void | start (DetachedThread *thread, int priority=0) |
Convenience function to start a detached thread. | |
void | start (JoinableThread *thread, int priority=0) |
Convenience function to start a joinable thread. | |
template<typename T> | |
void | store_unsafe (T &target, T *source) |
Convenience function to store object pointer into object. | |
String | str (CharacterProtocol &cp, strsize_t size) |
String | str (double value) |
String | str (unsigned long value) |
String | str (long value) |
String | str (unsigned short value) |
String | str (short value) |
String | str (String &string) |
String | str (char *string) |
String | str (Socket &so, strsize_t size) |
String | str (StringPager &list, char *prefix=((void *) 0), char *middle=((void *) 0), char *suffix=((void *) 0)) |
int | stricmp (char *string1, char *string2) |
Convenience function for case insensitive null terminated string compare. | |
int | strnicmp (char *string1, char *string2, size_t max) |
Convenience function for case insensitive null terminated string compare. | |
ucs4_t * | strudup (char *string) |
ucs2_t * | strwdup (char *string) |
template<typename T> | |
void | swap (T &o1, T &o2) |
Convenience function to swap objects. | |
template<> | |
void | swap< string_t > (string_t &s1, string_t &s2) |
long | tzoffset (struct timezone *tz=((void *) 0)) |
unicode_t | unidup (char *string) |
void | unlock (ExclusiveAccess &object) |
Convenience function to unlock an exclusive object through it's protocol. | |
void | unshift (stringlist_t &list, char *text) |
void | wait (semaphore_t &semaphore, timeout_t timeout=Timer::inf) |
Convenience function to wait on a semaphore. | |
void | wait (barrier_t &barrier) |
Convenience function to wait on a barrier. | |
template<typename T> | |
void | zero_unsafe (T &object) |
Convenience function to zero an object and restore type info. | |
void | zerofill (void *addr, size_t size) |
We are using a common namespace to easily separate ucommon from other libraries. This namespace usage is set to the package name and controlled by macros so future changes will be hidden from user applications so long as the namespace macros (UCOMMON_NAMESPACE, NAMESPACE_UCOMMON, END_NAMESPACE) are used in place of direct namespace declarations.
typedef int16_t ucommon::ucs2_t |
typedef int32_t ucommon::ucs4_t |
char* ucommon::_TEXT | ( | char * | s | ) | [inline] |
Invoke translation lookup if available.
This can also be used to mark text constants that need to be translated. It should not be used with pointer variables, which should instead call shell::text directly. The primary purpose is to allow extraction of text to be internationalized with xgettext "--keyword=_TEXT:1".
T ucommon::abs | ( | T & | value | ) | [inline] |
void ucommon::access | ( | condlock_t & | lock | ) | [inline] |
void ucommon::access | ( | accesslock_t & | lock | ) | [inline] |
void ucommon::access | ( | SharedAccess & | object | ) | [inline] |
Convenience function to access (lock) shared object through it's protocol.
object | to share lock. |
Definition at line 253 of file access.h.
References ucommon::SharedAccess::shared_lock().
Here is the call graph for this function:
void ucommon::acquire | ( | mutex_t & | mutex | ) | [inline] |
Convenience function to acquire a mutex.
mutex | to acquire. |
Definition at line 1891 of file thread.h.
References ucommon::Mutex::lock().
Here is the call graph for this function:
struct sockaddr* ucommon::addr | ( | Socket::address & | address | ) | [inline] |
A convenience function to convert a socket address list into a socket address.
address | list object. |
Definition at line 1796 of file socket.h.
References ucommon::Socket::address::get().
Here is the call graph for this function:
struct addrinfo* ucommon::addrinfo | ( | Socket::address & | address | ) | [inline] |
A convenience function to convert a socket address list into an addrinfo.
address | list object. |
Definition at line 1787 of file socket.h.
References ucommon::Socket::address::getList().
Here is the call graph for this function:
void ucommon::commit | ( | condlock_t & | lock | ) | [inline] |
void ucommon::commit | ( | accesslock_t & | lock | ) | [inline] |
ObjectProtocol* ucommon::copy | ( | ObjectProtocol * | object | ) | [inline] |
Convenience function to access object copy.
object | we are copying. |
Definition at line 479 of file object.h.
References ucommon::ObjectProtocol::copy().
Referenced by ucommon::charbuf< S >::charbuf(), ucommon::mapped_view< T >::copy(), ucommon::bufferof< T >::copy(), ucommon::bufferof< T >::get(), ucommon::OrderedIndex::operator=(), ucommon::OrderedIndex::OrderedIndex(), and ucommon::Socket::store().
Here is the call graph for this function:
void ucommon::copy_unsafe | ( | T * | target, | |
T * | source | |||
) | [inline] |
Convenience function to copy class.
target | to copy into. | |
source | to copy from. |
Definition at line 515 of file generics.h.
T* ucommon::dup | ( | T & | object | ) | [inline] |
Convenience function to duplicate object pointer to heap.
object | we are duping. |
Definition at line 478 of file generics.h.
Referenced by ucommon::locked_pointer< T >::dup(), ucommon::locked_pointer< T >::operator *(), ucommon::shared_pointer< T >::operator *(), ucommon::bufpager::operator *(), and ucommon::String::right().
bool ucommon::eq | ( | String & | s1, | |
char * | s2 | |||
) | [inline] |
Compare two string objects if equal.
The left string is an object, the right may be an object or converted to a const string. The compare virtual method of the left object is used, so we can do things like collation order or derived class specific sorting.
s1 | string to compare. | |
s2 | string to compare. |
Definition at line 1679 of file string.h.
References ucommon::String::compare().
Here is the call graph for this function:
bool ucommon::eq | ( | char * | s1, | |
char * | s2, | |||
size_t | size | |||
) | [inline] |
bool ucommon::eq | ( | char * | s1, | |
char * | s2 | |||
) | [inline] |
bool ucommon::eq | ( | struct sockaddr_storage * | s1, | |
struct sockaddr_storage * | s2 | |||
) | [inline] |
bool ucommon::eq | ( | struct sockaddr * | s1, | |
struct sockaddr * | s2 | |||
) | [inline] |
Compare two socket addresses to see if equal.
If the port is zero then this is the same as comparing host address alone.
s1 | socket address to compare. | |
s2 | socket address to compare. |
bool ucommon::eq_case | ( | char * | s1, | |
char * | s2, | |||
size_t | size | |||
) | [inline] |
Compare two null terminated strings if equal for a specified size ignoring case.
This is related to stricmp or gcc strcasecmp.
s1 | string to compare. | |
s2 | string to compare. | |
size | of string to compare. |
Definition at line 1718 of file string.h.
References eq_case().
Here is the call graph for this function:
bool ucommon::eq_case | ( | char * | s1, | |
char * | s2 | |||
) | [inline] |
Compare two null terminated strings if equal ignoring case.
This is related to stricmp or gcc strcasecmp.
s1 | string to compare. | |
s2 | string to compare. |
bool ucommon::eq_host | ( | struct sockaddr * | s1, | |
struct sockaddr * | s2 | |||
) | [inline] |
void ucommon::exclusive | ( | condlock_t & | lock | ) | [inline] |
void ucommon::exclusive | ( | SharedAccess & | object | ) | [inline] |
Convenience function to exclusive lock shared object through it's protocol.
object | to exclusive lock. |
Definition at line 267 of file access.h.
References ucommon::SharedAccess::exclusive().
Here is the call graph for this function:
bool ucommon::is | ( | T & | object | ) | [inline] |
Convenience function to validate object assuming it is castable to bool.
object | we are testing. |
Definition at line 449 of file generics.h.
bool ucommon::isnull | ( | T & | object | ) | [inline] |
Convenience function to test pointer object.
This solves issues where some compilers get confused between bool and pointer operators.
object | we are testing. |
Definition at line 459 of file generics.h.
bool ucommon::isnullp | ( | T * | object | ) | [inline] |
Convenience function to test pointer-pointer object.
This solves issues where some compilers get confused between bool and pointer operators.
object | we are testing. |
Definition at line 469 of file generics.h.
T&() ucommon::limit | ( | T & | value, | |
T & | low, | |||
T & | high | |||
) | [inline] |
Convenience macro to range restrict values.
value | to check. | |
low | value. | |
high | value. |
Definition at line 568 of file generics.h.
Referenced by ucommon::memalloc::max().
void ucommon::lock | ( | rexlock_t & | lock | ) | [inline] |
void ucommon::lock | ( | ExclusiveAccess & | object | ) | [inline] |
Convenience function to exclusively lock an object through it's protocol.
object | to lock. |
Definition at line 239 of file access.h.
References ucommon::ExclusiveAccess::exclusive_lock().
Referenced by access(), commit(), exclusive(), lock(), modify(), ucommon::shared_access::operator bool(), ucommon::exclusive_access::operator bool(), ucommon::shared_access::operator!(), ucommon::exclusive_access::operator!(), release(), and share().
Here is the call graph for this function:
T&() ucommon::max | ( | T & | v1, | |
T & | v2 | |||
) | [inline] |
Convenience function to return max of two objects.
o1 | to check. | |
o2 | to check. |
Definition at line 543 of file generics.h.
T&() ucommon::min | ( | T & | v1, | |
T & | v2 | |||
) | [inline] |
Convenience function to return min of two objects.
o1 | to check. | |
o2 | to check. |
Definition at line 555 of file generics.h.
void ucommon::modify | ( | condlock_t & | lock | ) | [inline] |
void ucommon::modify | ( | accesslock_t & | lock | ) | [inline] |
void ucommon::release | ( | rexlock_t & | lock | ) | [inline] |
void ucommon::release | ( | rwlock_t & | lock | ) | [inline] |
void ucommon::release | ( | condlock_t & | lock | ) | [inline] |
void ucommon::release | ( | accesslock_t & | lock | ) | [inline] |
void ucommon::release | ( | mutex_t & | mutex | ) | [inline] |
Convenience function to release a mutex.
mutex | to release. |
Definition at line 1898 of file thread.h.
References ucommon::Mutex::release().
Here is the call graph for this function:
void ucommon::release | ( | semaphore_t & | semaphore | ) | [inline] |
Convenience function to release a semaphore.
semaphore | to release. |
Definition at line 1884 of file thread.h.
References ucommon::Semaphore::release().
Here is the call graph for this function:
void ucommon::release | ( | ObjectProtocol * | object | ) | [inline] |
Convenience function to access object release.
object | we are releasing. |
Definition at line 472 of file object.h.
References ucommon::ObjectProtocol::release().
Here is the call graph for this function:
void ucommon::release | ( | shlock_t & | reference | ) | [inline] |
Convenience function to release a reference to a shared lock.
reference | to object referencing shared locked object. |
Definition at line 298 of file access.h.
References ucommon::shared_access::release().
Here is the call graph for this function:
void ucommon::release | ( | exlock_t & | reference | ) | [inline] |
Convenience function to release a reference to an exclusive lock.
reference | to object referencing exclusive locked object. |
Definition at line 291 of file access.h.
References ucommon::exclusive_access::release().
Here is the call graph for this function:
void ucommon::release | ( | SharedAccess & | object | ) | [inline] |
Convenience function to unlock shared object through it's protocol.
object | to unlock. |
Definition at line 260 of file access.h.
References ucommon::SharedAccess::release_share().
Referenced by _rw_release_(), _sync_release_(), ucommon::Semaphore::operator--(), ucommon::ObjectProtocol::operator--(), ucommon::paged_reuse< T >::release(), ucommon::array_reuse< T >::release(), ucommon::mapped_reuse< T >::release(), ucommon::linked_allocator< T >::release(), ucommon::array_pointer< T >::set(), ucommon::pointer< T >::set(), ucommon::array_pointer< T >::~array_pointer(), and ucommon::pointer< T >::~pointer().
Here is the call graph for this function:
void ucommon::reset_unsafe | ( | T & | object | ) | [inline] |
Convenience function to reset an existing object.
object | type to reset. |
Definition at line 498 of file generics.h.
void ucommon::retain | ( | ObjectProtocol * | object | ) | [inline] |
Convenience function to access object retention.
object | we are retaining. |
Definition at line 465 of file object.h.
References ucommon::ObjectProtocol::retain().
Referenced by ucommon::ObjectProtocol::operator++().
Here is the call graph for this function:
void ucommon::share | ( | condlock_t & | lock | ) | [inline] |
void ucommon::share | ( | SharedAccess & | object | ) | [inline] |
Convenience function to restore shared locking for object through it's protocol.
object | to restore shared locking. |
Definition at line 274 of file access.h.
References ucommon::SharedAccess::share().
Referenced by ucommon::shared_pointer< T >::dup().
Here is the call graph for this function:
void ucommon::start | ( | DetachedThread * | thread, | |
int | priority = 0 | |||
) | [inline] |
Convenience function to start a detached thread.
thread | to start. | |
priority | of thread. |
Definition at line 1822 of file thread.h.
References ucommon::DetachedThread::start().
Here is the call graph for this function:
void ucommon::start | ( | JoinableThread * | thread, | |
int | priority = 0 | |||
) | [inline] |
Convenience function to start a joinable thread.
thread | to start. | |
priority | of thread. |
Definition at line 1814 of file thread.h.
References ucommon::JoinableThread::start().
Referenced by ucommon::JoinableThread::background().
Here is the call graph for this function:
void ucommon::store_unsafe | ( | T & | target, | |
T * | source | |||
) | [inline] |
Convenience function to store object pointer into object.
target | to copy into. | |
source | to copy from. |
Definition at line 524 of file generics.h.
int ucommon::stricmp | ( | char * | string1, | |
char * | string2 | |||
) | [inline] |
int ucommon::strnicmp | ( | char * | string1, | |
char * | string2, | |||
size_t | max | |||
) | [inline] |
void ucommon::swap | ( | T & | o1, | |
T & | o2 | |||
) | [inline] |
Convenience function to swap objects.
o1 | to swap. | |
o2 | to swap. |
Definition at line 533 of file generics.h.
References cpr_memswap().
Here is the call graph for this function:
void ucommon::unlock | ( | ExclusiveAccess & | object | ) | [inline] |
Convenience function to unlock an exclusive object through it's protocol.
object | to unlock. |
Definition at line 246 of file access.h.
References ucommon::ExclusiveAccess::release_exclusive().
Here is the call graph for this function:
void ucommon::wait | ( | semaphore_t & | semaphore, | |
timeout_t | timeout = Timer::inf | |||
) | [inline] |
Convenience function to wait on a semaphore.
semaphore | to wait on. | |
timeout | to wait for. |
Definition at line 1877 of file thread.h.
References ucommon::Semaphore::wait().
Here is the call graph for this function:
void ucommon::wait | ( | barrier_t & | barrier | ) | [inline] |
Convenience function to wait on a barrier.
barrier | to wait. |
Definition at line 1869 of file thread.h.
References ucommon::barrier::wait().
Referenced by ucommon::ListenSocket::wait().
Here is the call graph for this function:
void ucommon::zero_unsafe | ( | T & | object | ) | [inline] |
Convenience function to zero an object and restore type info.
object | to zero in memory. |
Definition at line 506 of file generics.h.