Edinburgh Speech Tools  2.1-release
EST_Val_defs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VAL_REGISTER_CLASS_DCLS(NAME, CLASS)
 
#define VAL_REGISTER_TYPE_DCLS(NAME, CLASS)
 
#define VAL_REGISTER_FUNCPTR_DCLS(NAME, TYPE)
 
#define VAL_REGISTER_CLASS(NAME, CLASS)
 
#define VAL_REGISTER_TYPE(NAME, CLASS)
 
#define VAL_REGISTER_TYPE_NODEL(NAME, CLASS)
 
#define VAL_REGISTER_CLASS_NODEL(NAME, CLASS)
 
#define VAL_REGISTER_FUNCPTR(NAME, CLASS)
 

Macro Definition Documentation

#define VAL_REGISTER_CLASS_DCLS (   NAME,
  CLASS 
)
Value:
extern val_type val_type_##NAME; \
class CLASS *NAME(const EST_Val &v); \
EST_Val est_val(const class CLASS *v);
EST_Val est_val(const EST_Item_featfunc f)
Definition: item_feats.cc:122
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719

Definition at line 44 of file EST_Val_defs.h.

#define VAL_REGISTER_TYPE_DCLS (   NAME,
  CLASS 
)
Value:
extern val_type val_type_##NAME; \
CLASS *NAME(const EST_Val &v); \
EST_Val est_val(const CLASS *v);
EST_Val est_val(const EST_Item_featfunc f)
Definition: item_feats.cc:122
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719

Definition at line 50 of file EST_Val_defs.h.

#define VAL_REGISTER_FUNCPTR_DCLS (   NAME,
  TYPE 
)
Value:
extern val_type val_type_##NAME; \
TYPE NAME(const EST_Val &v); \
EST_Val est_val(const TYPE v);
EST_Val est_val(const EST_Item_featfunc f)
Definition: item_feats.cc:122
const char * val_type
Definition: EST_Val.h:57
#define TYPE(x)
Definition: siod_defs.h:98

Definition at line 55 of file EST_Val_defs.h.

#define VAL_REGISTER_CLASS (   NAME,
  CLASS 
)
Value:
val_type val_type_##NAME=#NAME; \
class CLASS *NAME(const EST_Val &v) \
{ \
if (v.type() == val_type_##NAME) \
return (class CLASS *)v.internal_ptr(); \
else \
EST_error("val not of type val_type_"#NAME); \
return NULL; \
} \
\
static void val_delete_##NAME(void *v) \
{ \
delete (class CLASS *)v; \
} \
\
EST_Val est_val(const class CLASS *v) \
{ \
return EST_Val(val_type_##NAME, \
(void *)v,val_delete_##NAME); \
} \
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719
#define EST_error
Definition: EST_error.h:104

Definition at line 62 of file EST_Val_defs.h.

#define VAL_REGISTER_TYPE (   NAME,
  CLASS 
)
Value:
val_type val_type_##NAME=#NAME; \
CLASS *NAME(const EST_Val &v) \
{ \
if (v.type() == val_type_##NAME) \
return (CLASS *)v.internal_ptr(); \
else \
EST_error("val not of type val_type_"#NAME); \
return NULL; \
} \
\
static void val_delete_##NAME(void *v) \
{ \
delete (CLASS *)v; \
} \
\
EST_Val est_val(const CLASS *v) \
{ \
return EST_Val(val_type_##NAME, \
(void *)v,val_delete_##NAME); \
} \
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719
#define EST_error
Definition: EST_error.h:104

Definition at line 86 of file EST_Val_defs.h.

#define VAL_REGISTER_TYPE_NODEL (   NAME,
  CLASS 
)
Value:
val_type val_type_##NAME=#NAME; \
CLASS *NAME(const EST_Val &v) \
{ \
if (v.type() == val_type_##NAME) \
return (CLASS *)v.internal_ptr(); \
else \
EST_error("val not of type val_type_"#NAME); \
return NULL; \
} \
\
static void val_delete_##NAME(void *v) \
{ \
(void)v; \
} \
\
EST_Val est_val(const CLASS *v) \
{ \
return EST_Val(val_type_##NAME, \
(void *)v,val_delete_##NAME); \
} \
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719
#define EST_error
Definition: EST_error.h:104

Definition at line 110 of file EST_Val_defs.h.

#define VAL_REGISTER_CLASS_NODEL (   NAME,
  CLASS 
)
Value:
val_type val_type_##NAME=#NAME; \
class CLASS *NAME(const EST_Val &v) \
{ \
if (v.type() == val_type_##NAME) \
return (class CLASS *)v.internal_ptr(); \
else \
EST_error("val not of type val_type_"#NAME); \
return NULL; \
} \
\
static void val_delete_##NAME(void *v) \
{ \
(void)v; \
} \
\
EST_Val est_val(const class CLASS *v) \
{ \
return EST_Val(val_type_##NAME, \
(void *)v,val_delete_##NAME); \
} \
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719
#define EST_error
Definition: EST_error.h:104

Definition at line 133 of file EST_Val_defs.h.

#define VAL_REGISTER_FUNCPTR (   NAME,
  CLASS 
)
Value:
val_type val_type_##NAME=#NAME; \
CLASS NAME(const EST_Val &v) \
{ \
if (v.type() == val_type_##NAME) \
return (CLASS)v.internal_ptr(); \
else \
EST_error("val not of type val_type_"#NAME); \
return NULL; \
} \
\
static void val_delete_##NAME(void *v) \
{ \
(void)v; \
} \
\
EST_Val est_val(const CLASS v) \
{ \
return EST_Val(val_type_##NAME, \
(void *)v,val_delete_##NAME); \
} \
const char * val_type
Definition: EST_Val.h:57
#define CLASS(C, CL)
Definition: EST_Token.cc:719
#define EST_error
Definition: EST_error.h:104

Definition at line 156 of file EST_Val_defs.h.