Changeset 7685:265a2a150c9c in orange


Ignore:
Timestamp:
02/16/11 22:49:05 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
de72eacaf4f7434a91aa0e8d8e4d8966b78439c2
Message:

Underscored the nonmixedcase methods of Domain.

Location:
source/orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orange/_aliases.txt

    r7674 r7685  
    5252C45Learner 
    5353commandline command_line 
     54 
     55Domain 
     56metaid meta_id 
     57hasmeta has_meta 
     58getmeta get_meta 
     59getmetas get_metas 
     60addmeta add_meta 
     61addmetas add_metas 
     62removemeta remove_meta 
  • source/orange/lib_kernel.cpp

    r7677 r7685  
    10511051 
    10521052 
    1053 PyObject *Domain_metaid(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | descriptor) -> int") 
    1054 { PyTRY 
    1055     const TMetaDescriptor *desc = metaDescriptorFromArg(SELF_AS(TDomain), rar); 
    1056     return desc ? PyInt_FromLong(desc->id) : NULL; 
    1057   PyCATCH 
    1058 } 
    1059  
    1060  
    10611053PyObject *Domain_isOptionalMeta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | int | descriptor) -> bool") 
    10621054{ 
     
    10691061 
    10701062 
    1071 PyObject *Domain_hasmeta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | int | descriptor) -> bool") 
     1063PyObject *Domain_meta_id(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | descriptor) -> int") 
     1064{ PyTRY 
     1065    const TMetaDescriptor *desc = metaDescriptorFromArg(SELF_AS(TDomain), rar); 
     1066    return desc ? PyInt_FromLong(desc->id) : NULL; 
     1067  PyCATCH 
     1068} 
     1069 
     1070 
     1071PyObject *Domain_has_meta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | int | descriptor) -> bool") 
    10721072{ 
    10731073  PyTRY 
     
    10931093 
    10941094 
    1095 PyObject *Domain_getmeta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | int) -> Variable") 
     1095PyObject *Domain_get_meta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "(name | int) -> Variable") 
    10961096{ PyTRY 
    10971097    const TMetaDescriptor *desc = metaDescriptorFromArg(SELF_AS(TDomain), rar); 
     
    11201120 
    11211121 
    1122 PyObject *Domain_getmetas(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "([optional]) -> {int: Variable}") 
     1122PyObject *Domain_get_metas(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "([optional]) -> {int: Variable}") 
    11231123{ PyTRY 
    11241124    if (PyTuple_Size(args) && (PyTuple_GET_ITEM(args, 0) != Py_None)) { 
     
    11351135 
    11361136 
    1137 PyObject *Domain_addmeta(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "(id, descriptor[, optional]) -> None") 
     1137PyObject *Domain_add_meta(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "(id, descriptor[, optional]) -> None") 
    11381138{ PyTRY 
    11391139    CAST_TO(TDomain, domain); 
     
    11881188 
    11891189 
    1190 PyObject *Domain_addmetas(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "({id: descriptor, id: descriptor, ...}[, optional]) -> None") 
     1190PyObject *Domain_add_metas(TPyOrange *self, PyObject *args) PYARGS(METH_VARARGS, "({id: descriptor, id: descriptor, ...}[, optional]) -> None") 
    11911191{ PyTRY 
    11921192    PyObject *pymetadict; 
     
    12271227 
    12281228 
    1229 PyObject *Domain_removemeta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "({id0:desc0, id1:desc1, ...}) | ([id0|desc0, id1|desc1, ...]) -> None") 
     1229PyObject *Domain_remove_meta(TPyOrange *self, PyObject *rar) PYARGS(METH_O, "({id0:desc0, id1:desc1, ...}) | ([id0|desc0, id1|desc1, ...]) -> None") 
    12301230{ PyTRY 
    12311231    CAST_TO(TDomain, domain); 
Note: See TracChangeset for help on using the changeset viewer.