2019-06-13 15:42:39 -05:00
|
|
|
#ifndef VTR_LIST_H
|
|
|
|
#define VTR_LIST_H
|
|
|
|
|
|
|
|
namespace vtr {
|
2020-01-03 17:14:42 -06:00
|
|
|
/* Linked lists of void pointers and integers, respectively. */
|
2019-06-13 15:42:39 -05:00
|
|
|
|
2020-01-03 17:14:42 -06:00
|
|
|
struct t_linked_vptr {
|
|
|
|
void* data_vptr;
|
|
|
|
struct t_linked_vptr* next;
|
|
|
|
};
|
2019-06-13 15:42:39 -05:00
|
|
|
|
2020-01-03 17:14:42 -06:00
|
|
|
t_linked_vptr* insert_in_vptr_list(t_linked_vptr* head,
|
|
|
|
void* vptr_to_add);
|
|
|
|
t_linked_vptr* delete_in_vptr_list(t_linked_vptr* head);
|
|
|
|
} // namespace vtr
|
2019-06-13 15:42:39 -05:00
|
|
|
#endif
|