feisty meow concerns codebase  2.140
amorph.h File Reference
#include "object_packers.h"
#include <basis/astring.h>
#include <basis/functions.h>
#include <basis/contracts.h>
#include <basis/guards.h>
Include dependency graph for amorph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  structures::amorph< contents >
 

Namespaces

 structures
 A dynamic container class that holds any kind of object via pointers.
 

Macros

#define static_class_name()   "amorph"
 
#define AMO_ALERT(a1, a2, a3)   {}
 
#define CHECK_FIELDS   { if (!func) {} }
 

Functions

template<class contents >
void structures::amorph_assign (amorph< contents > &to_assign, const amorph< contents > &to_copy)
 This can be used when the templated object has a copy constructor. More...
 
template<class contents >
void structures::amorph_pack (basis::byte_array &packed_form, const amorph< contents > &to_pack)
 support for packing an amorph into an array of bytes. More...
 
template<class contents >
bool structures::amorph_unpack (basis::byte_array &packed_form, amorph< contents > &to_unpack)
 unpacks the amorph from an array of bytes. More...
 
template<class contents >
int structures::amorph_packed_size (const amorph< contents > &to_pack)
 reports how large the packed form will be. More...
 

Macro Definition Documentation

◆ AMO_ALERT

#define AMO_ALERT (   a1,
  a2,
  a3 
)    {}

Definition at line 240 of file amorph.h.

◆ CHECK_FIELDS

#define CHECK_FIELDS   { if (!func) {} }

Definition at line 241 of file amorph.h.

◆ static_class_name

#define static_class_name ( )    "amorph"

Definition at line 231 of file amorph.h.