Apply cpp naming to files
This commit is contained in:
parent
89eec0e329
commit
9d01ba2c8a
73 changed files with 160 additions and 160 deletions
31
Objects/public/primitives/DictObject.hpp
Normal file
31
Objects/public/primitives/DictObject.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
#include "core/Object.hpp"
|
||||
|
||||
namespace obj {
|
||||
|
||||
struct DictObject : Object {
|
||||
static ObjectType TypeData;
|
||||
static void copy(Object* self, const Object* in);
|
||||
static void destructor(Object* self);
|
||||
static void constructor(Object* self);
|
||||
|
||||
static tp::alni save_size(DictObject* self);
|
||||
static void save(DictObject* self, ArchiverOut& file_self);
|
||||
static void load(ArchiverIn& file_self, DictObject* self);
|
||||
static tp::Buffer<Object*> childs_retrival(DictObject* self);
|
||||
static tp::alni allocated_size(DictObject* self);
|
||||
static tp::alni allocated_size_recursive(DictObject* self);
|
||||
|
||||
void put(const std::string&, Object*);
|
||||
void remove(const std::string&);
|
||||
Object* get(const std::string&);
|
||||
tp::Map<std::string, Object*>::Idx presents(const std::string&);
|
||||
Object* getSlotVal(tp::Map<std::string, Object*>::Idx);
|
||||
|
||||
[[nodiscard]] const tp::Map<std::string, Object*>& getItems() const;
|
||||
|
||||
private:
|
||||
tp::Map<std::string, Object*> items;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue