Numworks Epsilon  1.4.1
Graphing Calculator Operating System
objtuple.h File Reference
#include "py/obj.h"

Go to the source code of this file.

Classes

struct  _mp_obj_tuple_t
 
struct  _mp_rom_obj_tuple_t
 

Macros

#define MP_DEFINE_ATTRTUPLE(tuple_obj_name, fields, nitems, ...)
 

Typedefs

typedef struct _mp_obj_tuple_t mp_obj_tuple_t
 
typedef struct _mp_rom_obj_tuple_t mp_rom_obj_tuple_t
 

Functions

void mp_obj_tuple_print (const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
 
mp_obj_t mp_obj_tuple_unary_op (mp_unary_op_t op, mp_obj_t self_in)
 
mp_obj_t mp_obj_tuple_binary_op (mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs)
 
mp_obj_t mp_obj_tuple_subscr (mp_obj_t base, mp_obj_t index, mp_obj_t value)
 
mp_obj_t mp_obj_tuple_getiter (mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf)
 
mp_obj_t mp_obj_new_attrtuple (const qstr *fields, size_t n, const mp_obj_t *items)
 

Variables

const mp_obj_type_t mp_type_attrtuple
 

Macro Definition Documentation

◆ MP_DEFINE_ATTRTUPLE

#define MP_DEFINE_ATTRTUPLE (   tuple_obj_name,
  fields,
  nitems,
  ... 
)
Value:
const mp_rom_obj_tuple_t tuple_obj_name = { \
.len = nitems, \
.items = { __VA_ARGS__ , MP_ROM_PTR((void*)fields) } \
}
#define MP_ROM_PTR(p)
Definition: obj.h:242
mp_obj_base_t base
Definition: objtuple.h:38
const mp_obj_type_t mp_type_attrtuple

Definition at line 51 of file objtuple.h.

Typedef Documentation

◆ mp_obj_tuple_t

◆ mp_rom_obj_tuple_t

Function Documentation

◆ mp_obj_new_attrtuple()

mp_obj_t mp_obj_new_attrtuple ( const qstr fields,
size_t  n,
const mp_obj_t items 
)

◆ mp_obj_tuple_binary_op()

mp_obj_t mp_obj_tuple_binary_op ( mp_binary_op_t  op,
mp_obj_t  lhs,
mp_obj_t  rhs 
)

Definition at line 139 of file objtuple.c.

◆ mp_obj_tuple_getiter()

mp_obj_t mp_obj_tuple_getiter ( mp_obj_t  o_in,
mp_obj_iter_buf_t iter_buf 
)

Definition at line 284 of file objtuple.c.

◆ mp_obj_tuple_print()

void mp_obj_tuple_print ( const mp_print_t print,
mp_obj_t  o_in,
mp_print_kind_t  kind 
)

Definition at line 36 of file objtuple.c.

◆ mp_obj_tuple_subscr()

mp_obj_t mp_obj_tuple_subscr ( mp_obj_t  base,
mp_obj_t  index,
mp_obj_t  value 
)

Definition at line 177 of file objtuple.c.

◆ mp_obj_tuple_unary_op()

mp_obj_t mp_obj_tuple_unary_op ( mp_unary_op_t  op,
mp_obj_t  self_in 
)

Definition at line 122 of file objtuple.c.

Variable Documentation

◆ mp_type_attrtuple

const mp_obj_type_t mp_type_attrtuple