Typedefs | |
typedef BArchivable *(* | instantiation_func) (BMessage *) |
Internal definition of a function that can instantiate objects that have been created with the BArchivable API. More... | |
Functions | |
status_t | add_system_beep_event (const char *eventName, uint32 flags=0) |
Adds an event to the media server. More... | |
int32 | atomic_add (int32 *value, int32 addValue) |
Atomically add the value of addValue to value. More... | |
int64 | atomic_add64 (int64 *value, int64 addValue) |
Atomically add the value of addValue to value. More... | |
int32 | atomic_and (int32 *value, int32 andValue) |
Atomically perform a bitwise AND operation of andValue to the variable andValue. More... | |
int64 | atomic_and64 (int64 *value, int64 andValue) |
Atomically perform a bitwise AND operation of andValue to the variable andValue. More... | |
int32 | atomic_get (int32 *value) |
Atomically return the value of value . More... | |
int64 | atomic_get64 (int64 *value) |
Atomically return the value of value . More... | |
int32 | atomic_get_and_set (int32 *value, int32 newValue) |
Atomically set the variable value to newvalue and return the old value. More... | |
int64 | atomic_get_and_set64 (int64 *value, int64 newValue) |
Atomically set the variable value to newvalue and return the old value. More... | |
int32 | atomic_or (int32 *value, int32 orValue) |
Atomically perform a bitwise OR operation of orValue to the variable andValue. More... | |
int64 | atomic_or64 (int64 *value, int64 orValue) |
Atomically perform a bitwise OR operation of orValue to the variable andValue. More... | |
void | atomic_set (int32 *value, int32 newValue) |
Atomically set the variable value to newvalue. More... | |
void | atomic_set64 (int64 *value, int64 newValue) |
Atomically set the variable value to newvalue. More... | |
int32 | atomic_test_and_set (int32 *value, int32 newValue, int32 testAgainst) |
Atomically set the variable value to newValue if the current value is testAgainst. More... | |
int64 | atomic_test_and_set64 (int64 *value, int64 newValue, int64 testAgainst) |
Atomically set the variable value to newValue if the current value is testAgainst. More... | |
status_t | beep () |
Invoke the standard system beep to alert users. More... | |
int | Compare (const BString &a, const BString &b) |
Lexicographically compare two strings. More... | |
int | Compare (const BString *a, const BString *b) |
Lexicographically compare two strings. More... | |
instantiation_func | find_instantiation_func (const char *className, const char *signature) |
Internal function that searches for the instantiation func with a specific signature. Use instantiate_object() instead. More... | |
instantiation_func | find_instantiation_func (const char *className) |
Internal function that searches for the instantiation func of a specific class. Use instantiate_object() instead. More... | |
instantiation_func | find_instantiation_func (BMessage *archive) |
Internal function that searches for the instantiation func that works on the specified archive. Use instantiate_object() instead. More... | |
int | ICompare (const BString &a, const BString &b) |
Lexicographically compare two strings case-insensitively. More... | |
int | ICompare (const BString *a, const BString *b) |
Lexicographically compare two strings case-insensitively. More... | |
BArchivable * | instantiate_object (BMessage *from, image_id *id) |
Instantiate an archived object with the object being defined in a different application or library. More... | |
BArchivable * | instantiate_object (BMessage *from) |
Instantiate an archived object. More... | |
bool | operator!= (const char *a, const BString &b) |
Lexicographically compare if a is not equal to given BString b. More... | |
bool | operator< (const char *a, const BString &b) |
Lexicographically compare if a is less than the given BString b. More... | |
bool | operator<= (const char *a, const BString &b) |
Lexicographically compare if a is less than or equal to a given BString b. More... | |
bool | operator== (const char *a, const BString &b) |
Lexicographically compare if a is equal to a given BString b. More... | |
bool | operator> (const char *a, const BString &b) |
Lexicographically compare if a is greater than a given BString b. More... | |
bool | operator>= (const char *a, const BString &b) |
Lexicographically compare if a is greater than or equal to a given BString b. More... | |
status_t | system_beep (const char *eventName) |
Invokes the sound for event eventName. More... | |
bool | validate_instantiation (BMessage *from, const char *className) |
Internal function that checks if the className is the same as the one stored in the from message. More... | |
typedef BArchivable *(* instantiation_func)(BMessage *) |
Internal definition of a function that can instantiate objects that have been created with the BArchivable API.
status_t add_system_beep_event | ( | const char * | eventName, |
uint32 | flags = 0 |
||
) |
Adds an event to the media server.
Call this method to add a specific event to the media server. From Beep.h and in libbe.so.
eventName | The name of the event. |
flags | Currently unused. Pass 0 . |
int32 atomic_add | ( | int32 * | value, |
int32 | addValue | ||
) |
Atomically add the value of addValue to value.
This is a thread-safe way of performing the *value
+=
addValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.long
long
. int64 atomic_add64 | ( | int64 * | value, |
int64 | addValue | ||
) |
Atomically add the value of addValue to value.
This is a thread-safe way of performing the *value
+=
addValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.int32
. int32 atomic_and | ( | int32 * | value, |
int32 | andValue | ||
) |
Atomically perform a bitwise AND operation of andValue to the variable andValue.
This is a thread-safe way of performing the *value
&=
andValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.long
long
. int64 atomic_and64 | ( | int64 * | value, |
int64 | andValue | ||
) |
Atomically perform a bitwise AND operation of andValue to the variable andValue.
This is a thread-safe way of performing the *value
&=
andValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.int32
. int32 atomic_get | ( | int32 * | value | ) |
Atomically return the value of value
.
This is a thread-safe way of reading the contents of the value
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case. The variable must be naturally aligned.
value
.long
long
. int64 atomic_get64 | ( | int64 * | value | ) |
Atomically return the value of value
.
This is a thread-safe way of reading the contents of the value
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case. The variable must be naturally aligned.
value
.int32
. int32 atomic_get_and_set | ( | int32 * | value, |
int32 | newValue | ||
) |
Atomically set the variable value to newvalue and return the old value.
This is a thread-safe way of performing the *value
=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.long
long
. int64 atomic_get_and_set64 | ( | int64 * | value, |
int64 | newValue | ||
) |
Atomically set the variable value to newvalue and return the old value.
This is a thread-safe way of performing the *value
=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.int32
. int32 atomic_or | ( | int32 * | value, |
int32 | orValue | ||
) |
Atomically perform a bitwise OR operation of orValue to the variable andValue.
This is a thread-safe way of performing the *value
|=
orValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.long
long
. int64 atomic_or64 | ( | int64 * | value, |
int64 | orValue | ||
) |
Atomically perform a bitwise OR operation of orValue to the variable andValue.
This is a thread-safe way of performing the *value
|=
orValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.int32
. void atomic_set | ( | int32 * | value, |
int32 | newValue | ||
) |
Atomically set the variable value to newvalue.
This is a thread-safe way of performing the *value
=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case. The variable must be naturally aligned.
long
long
. void atomic_set64 | ( | int64 * | value, |
int64 | newValue | ||
) |
Atomically set the variable value to newvalue.
This is a thread-safe way of performing the *value
=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case. The variable must be naturally aligned.
int32
. int32 atomic_test_and_set | ( | int32 * | value, |
int32 | newValue, | ||
int32 | testAgainst | ||
) |
Atomically set the variable value to newValue if the current value is testAgainst.
This is a thread-safe way of conditionally performing the *value
+=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.long
long
. int64 atomic_test_and_set64 | ( | int64 * | value, |
int64 | newValue, | ||
int64 | testAgainst | ||
) |
Atomically set the variable value to newValue if the current value is testAgainst.
This is a thread-safe way of conditionally performing the *value
+=
newValue
operation. You should use these function when two or more threads might access the variable simultaneously. You don't have to use a semaphore or a mutex in this case.
value
.int32
. status_t beep | ( | ) |
Invoke the standard system beep to alert users.
From Beep.h and in libbe.so.
Lexicographically compare two strings.
This function is useful if you need a global compare function to feed to BList::SortItems().
a | The first string to compare. |
b | The second string to compare. |
From String.h and in libbe.so.
>0 | a sorts lexicographically after b. |
=0 | a is equal to b. |
<0 | a sorts lexicographically before b. |
Referenced by BCollator::Equal(), BCollator::Greater(), and BCollator::GreaterOrEqual().
Lexicographically compare two strings.
This function is useful if you need a global compare function to feed to BList::SortItems().
From String.h and in libbe.so.
a | The first string to compare. |
b | The second string to compare. |
>0 | a sorts lexicographically after b. |
=0 | a is equal to b. |
<0 | a sorts lexicographically before b. |
instantiation_func find_instantiation_func | ( | const char * | className, |
const char * | signature | ||
) |
Internal function that searches for the instantiation func with a specific signature. Use instantiate_object() instead.
instantiation_func find_instantiation_func | ( | const char * | className | ) |
Internal function that searches for the instantiation func of a specific class. Use instantiate_object() instead.
instantiation_func find_instantiation_func | ( | BMessage * | archive | ) |
Internal function that searches for the instantiation func that works on the specified archive. Use instantiate_object() instead.
Lexicographically compare two strings case-insensitively.
This function is useful if you need a global compare function to feed to BList::SortItems().
From String.h and in libbe.so.
a | The first string to compare. |
b | The second string to compare. |
>0 | a sorts lexicographically after b. |
=0 | a is equal to b. |
<0 | a sorts lexicographically before b. |
Lexicographically compare two strings case-insensitively.
This function is useful if you need a global compare function to feed to BList::SortItems().
From String.h and in libbe.so.
a | The first string to compare. |
b | The second string to compare. |
>0 | a sorts lexicographically after b. |
=0 | a is equal to b. |
<0 | a sorts lexicographically before b. |
BArchivable * instantiate_object | ( | BMessage * | from, |
image_id * | id | ||
) |
Instantiate an archived object with the object being defined in a different application or library.
This function is similar to instantiate_object(BMessage *from), except that it takes the id argument referring to an image where the object might be stored.
BArchivable * instantiate_object | ( | BMessage * | from | ) |
Instantiate an archived object.
This global function will determine the base class, based on the from argument, and it will call the Instantiate() function of that object to restore it.
from | The archived object. |
NULL
if the instantiation failed. The global errno
variable will contain the reason why it failed.
|
inline |
Lexicographically compare if a
is not equal to given BString b.
From String.h and in libbe.so.
a | The first string to compare. |
b | The second string to compare. |
true
if a is NOT equal to b, false
otherwise.References BString::operator=().
|
inline |
|
inline |
|
inline |
Lexicographically compare if a
is equal to a given BString b.
From String.h and in libbe.so.
a | The first string to compare. |
b | The second string to compare. |
true
if a is equal to b, false
otherwise.Referenced by BReference< BUrlContext >::Detach().
|
inline |
|
inline |
status_t system_beep | ( | const char * | eventName | ) |
Invokes the sound for event eventName.
You can add the events using add_system_beep_event(). From Beep.h and in libbe.so.
bool validate_instantiation | ( | BMessage * | from, |
const char * | className | ||
) |
Internal function that checks if the className is the same as the one stored in the from message.