#include "amorph.h"#include <basis/array.cpp>#include <basis/function.h>#include <basis/guards.h>#include <basis/packable.h>Include dependency graph for amorph.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | static_class_name() "amorph" |
| #define | AMO_ALERT(a1, a2, a3) {} |
| #define | CHECK_FIELDS {} |
Functions | |
| template<class contents> | |
| void | amorph_pack (byte_array &packed_form, const amorph< contents > &to_pack) |
| support for packing an amorph into an array of bytes. | |
| template<class contents> | |
| bool | amorph_unpack (byte_array &packed_form, amorph< contents > &to_unpack) |
| unpacks the amorph from an array of bytes. | |
| template<class contents> | |
| void | amorph_assign (amorph< contents > &to_assign, const amorph< contents > &to_copy) |
| This can be used when the templated object has a copy constructor. | |
| #define AMO_ALERT | ( | a1, | |||
| a2, | |||||
| a3 | ) | {} |
| #define CHECK_FIELDS {} |
Definition at line 39 of file amorph.cpp.
Referenced by amorph< contents >::acquire(), amorph< contents >::adjust(), amorph< contents >::amorph(), amorph< contents >::append(), amorph< contents >::borrow(), amorph< contents >::clear(), amorph< contents >::clear_all(), amorph< contents >::find(), amorph< contents >::find_empty(), amorph< contents >::get(), amorph< contents >::insert(), amorph< contents >::next_valid(), amorph< contents >::put(), amorph< contents >::reset(), amorph< contents >::swap_contents(), amorph< contents >::zap(), and amorph< contents >::~amorph().
| #define static_class_name | ( | ) | "amorph" |
Definition at line 29 of file amorph.cpp.
| void amorph_assign | ( | amorph< contents > & | to_assign, | |
| const amorph< contents > & | to_copy | |||
| ) |
This can be used when the templated object has a copy constructor.
this makes the "to_assign" into a copy of the "to_copy" amorph.
Definition at line 288 of file amorph.cpp.
References amorph< contents >::clear_all(), amorph< contents >::elements(), amorph< contents >::get(), amorph< contents >::insert(), NIL, amorph< contents >::put(), and amorph< contents >::zap().
Referenced by test_bogon_amorph(), and test_byte_array_amorph().
| void amorph_pack | ( | byte_array & | packed_form, | |
| const amorph< contents > & | to_pack | |||
| ) |
support for packing an amorph into an array of bytes.
this can be used when the underlying object is based on packable or supports the same pack/unpack methods.
Definition at line 265 of file amorph.cpp.
References basis::attach(), amorph< contents >::elements(), and amorph< contents >::get().
Referenced by filename_list::pack().
| bool amorph_unpack | ( | byte_array & | packed_form, | |
| amorph< contents > & | to_unpack | |||
| ) |
unpacks the amorph from an array of bytes.
Definition at line 274 of file amorph.cpp.
References amorph< contents >::append(), basis::detach(), and amorph< contents >::reset().
Referenced by filename_list::unpack().
1.5.1