Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sobj_test.c File Reference


Detailed Description

File implementing the type and class testing functions sobj_is_*().

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdarg.h>
#include "sobject_p.h"

Include dependency graph for sobj_test.c:

Include dependency graph

Data Structures

struct  sobj_test__typespec
 Helper structure for sobj_test(). More...

Functions

bool sobj_is_nil (struct sobj *sobj)
 Check if the called object is a classless nil object.
bool sobj_is_nil_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a nil object of the specified class.
bool sobj_is_bool (struct sobj *sobj)
 Check if the called object is a classless boolean object.
bool sobj_is_bool_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a boolean object of the specified class.
bool sobj_is_int (struct sobj *sobj)
 Check if the called object is a classless integer object.
bool sobj_is_int_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is an integer object of the specified class.
bool sobj_is_float (struct sobj *sobj)
 Check if the called object is a classless floating point object.
bool sobj_is_float_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a floating point object of the specified class.
bool sobj_is_number (struct sobj *sobj)
 Check if the called object is a classless number.
bool sobj_is_number_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a number of the specified class.
bool sobj_is_string (struct sobj *sobj)
 Check if the called object is a classless object of type string.
bool sobj_is_string_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a string object of the specified class.
bool sobj_is_simple_string (struct sobj *sobj)
 Check if the called object is a classless simple string object.
bool sobj_is_simple_string_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a simple string object of the specified class.
bool sobj_is_binary (struct sobj *sobj)
 Check if the called object is a classless binary object.
bool sobj_is_binary_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a binary object of the specified class.
bool sobj_is_plain_binary (struct sobj *sobj)
 Check if the called object is a plain classless binary object.
bool sobj_is_plain_binary_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain binary object of the specified class.
bool sobj_is_array (struct sobj *sobj)
 Check if the called object is a classless array object.
bool sobj_is_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is an array object of the specified class.
bool sobj_is_plain_array (struct sobj *sobj)
 Check if the called object is a plain classless array object.
bool sobj_is_plain_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain array object of the specified class.
bool sobj_is_int_array (struct sobj *sobj)
 Check if the called object is a plain classless integer array object.
bool sobj_is_int_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain integer array object of the specified class.
bool sobj_is_float_array (struct sobj *sobj)
 Check if the called object is a plain classless floating point array object.
bool sobj_is_float_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain floating point array object of the specified class.
bool sobj_is_number_array (struct sobj *sobj)
 Check if the called object is a plain classless number array object.
bool sobj_is_number_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain number array object of the specified class.
bool sobj_is_string_array (struct sobj *sobj)
 Check if the called object is a plain classless string array object.
bool sobj_is_string_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain string array object of the specified class.
bool sobj_is_simple_string_array (struct sobj *sobj)
 Check if the called object is a plain classless simple string array object.
bool sobj_is_simple_string_array_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a plain simple string array object of the specified class.
bool sobj_is_dict (struct sobj *sobj)
 Check if the called object is a classless dictionary object.
bool sobj_is_dict_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a dictionary object with the specified class name.
bool sobj_is_simple_dict (struct sobj *sobj)
 Check if the called object is a classless simple dictionary object.
bool sobj_is_simple_dict_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a simple dictionary object with the specified class name.
bool sobj_is_expr (struct sobj *sobj)
 Check if the called object is a classless expression object.
bool sobj_is_expr_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is an expression object of the specified class.
bool sobj_is_vref (struct sobj *sobj)
 Check if the called object is a classless vref object.
bool sobj_is_vref_with_cn (struct sobj *sobj, const char *cn)
 Check if the called object is a vref object of the specified class.
int sobj_test (struct sobj *sobj, const char *spec, struct sobj_env *env)
 Check if the called object matches the specified type specification.

Generated on Sat Jul 23 16:05:38 2005 for sobject by  doxygen 1.3.9.1