ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc.. Fossies Dox: ucommon-7.0.0.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 25 #ifndef _UCOMMON_ARRAYREF_H_ 26 #define _UCOMMON_ARRAYREF_H_ 28 #ifndef _UCOMMON_CPR_H_ 32 #ifndef _UCOMMON_ATOMIC_H_ 36 #ifndef _UCOMMON_PROTOCOLS_H_ 40 #ifndef _UCOMMON_OBJECT_H_ 44 #ifndef _UCOMMON_TYPEREF_H_ 48 #ifndef _UCOMMON_THREAD_H_ 57 typedef enum {ARRAY,
STACK, QUEUE, FALLBACK} arraytype_t;
73 void assign(
size_t index, Counted *
object);
75 Counted *remove(
size_t index);
81 inline Counted **get(
void) {
82 return reinterpret_cast<Counted **>(((
caddr_t)(
this)) +
sizeof(
Array));
88 ArrayRef(arraytype_t mode,
size_t size);
93 void assign(
size_t index,
TypeRef& t);
97 void reset(Counted *
object);
99 Counted *get(
size_t index);
101 bool is(
size_t index);
103 static Array *create(arraytype_t type,
size_t size);
106 void push(
const TypeRef&
object);
117 void resize(
size_t size);
119 void realloc(
size_t size);
typeref< T > operator()(size_t index)
typeref< T > pull(timeout_t timeout)
typeref< T > operator()(size_t index)
queueref(const queueref ©)
typeref< T > operator()(size_t index)
void put(typeref< T > &target, size_t index)
stackref & operator<<(T t)
void set(Counted *object)
bool push(const typeref< T > &source, timeout_t timeout)
typeref< T > at(size_t index)
void push(const TypeRef &object)
void push(const typeref< T > &source)
arrayref & operator=(T t)
typeref< T > operator[](size_t index)
stackref & operator>>(typeref< T > &target)
void assign(size_t index, TypeRef &t)
typeref< T > at(size_t index)
void pull(TypeRef &object)
static void put(TypeRef &target, Counted *object)
queueref(size_t size, bool fallback=false)
arrayref & operator=(typeref< T > &t)
typeref< T > operator[](size_t index)
arrayref< Type::Bytes > bytearray_t
queueref & operator>>(typeref< T > &target)
queueref & operator=(const queueref ©)
void operator()(size_t index, T t)
arrayref(size_t size, T t)
typeref< T > pull(timeout_t timeout)
void value(size_t index, typeref< T > &t)
typeref< T > at(size_t index)
typeref< T > operator[](size_t index)
Counted * get(size_t index)
static shell::numericopt timeout('t', "--timeout", _TEXT("optional keyboard input timeout"), "seconds", 0)
stackref & operator<<(const typeref< T > &source)
void push(const typeref< T > &source)
arrayref & operator=(const arrayref ©)
arrayref< Type::Chars > stringarray_t
void reset(TypeRef &object)
typeref< T > value(size_t index)
stackref & operator=(const stackref ©)
arrayref(size_t size, typeref< T > &t)
stackref(const stackref ©)
queueref & operator<<(T t)
queueref & operator<<(const typeref< T > &source)
const struct sockaddr * addr(Socket::address &address)
arrayref(const arrayref ©)
bool push(const typeref< T > &source, timeout_t timeout)
void operator()(size_t index, typeref< T > &t)