|
| | ShapesData (NamesId &namesId) |
| | Header with type TypeId::ShapesData version 0 and src = namesId; extent sizeof(Xtc), damage 0.
|
| |
| NamesId & | namesId () |
| | Return src reinterpreted as a NamesId reference.
|
| |
| Data & | data () |
| | Return the Data child: the second child xtc if the first one is Shapes, otherwise the first.
|
| |
| Shapes & | shapes () |
| | Return the Shapes child: the first child xtc if it is Shapes, otherwise the second.
|
| |
| | Xtc () |
| | Set damage and extent to 0; src gets the Src default (value 0) and contains is left uninitialized.
|
| |
| | Xtc (const Xtc &xtc) |
| | Copy src, damage and contains from xtc, but set extent to sizeof(Xtc) (empty payload).
|
| |
| | Xtc (const TypeId &type) |
| | Header of the given type with default Src (value 0), damage 0 and extent sizeof(Xtc).
|
| |
| | Xtc (const TypeId &type, const Src &_src) |
| | Header with the given type and src, damage 0 and extent sizeof(Xtc).
|
| |
| | Xtc (const TypeId &_tag, const Src &_src, unsigned _damage) |
| | Header with the given type (_tag), src and damage word, and extent sizeof(Xtc).
|
| |
| | Xtc (const TypeId &_tag, const Src &_src, const Damage &_damage) |
| | Header with the given type (_tag), src and damage, and extent sizeof(Xtc).
|
| |
| Xtc & | operator= (const Xtc &xtc) |
| | Copy src, damage and contains from xtc and reset extent to sizeof(Xtc).
|
| |
| void * | operator new (size_t size) |
| | Allocate size bytes with std::malloc.
|
| |
| void * | operator new (size_t size, char *p, const void *end) |
| | Placement new at p.
|
| |
| void * | operator new (size_t size, Xtc *p, const void *end) |
| | Placement new into the payload of p: returns p->alloc(size, end), which adds size to p's extent.
|
| |
| void * | operator new (size_t size, Xtc &p, const void *end) |
| | Placement new into the payload of p: returns p.alloc(size, end), which adds size to p's extent.
|
| |
| void | operator delete (void *p) |
| | Free p with std::free.
|
| |
| void | operator delete (void *ptr, char *p, const void *end) |
| | Placement delete matching operator new(size_t, char*, const void*); does nothing.
|
| |
| void | operator delete (void *ptr, Xtc *p, const void *end) |
| | Placement delete matching operator new(size_t, Xtc*, const void*); does nothing.
|
| |
| void | operator delete (void *ptr, Xtc &p, const void *end) |
| | Placement delete matching operator new(size_t, Xtc&, const void*); does nothing.
|
| |
| char * | payload () const |
| | Return a pointer to the first byte after this header.
|
| |
| int | sizeofPayload () const |
| | Return extent - sizeof(Xtc) as an int (the comment above notes this limits extent to 31 bits).
|
| |
| Xtc * | next () |
| | Return the address extent bytes after the start of this header, where the next sibling Xtc begins.
|
| |
| const Xtc * | next () const |
| | Return the address extent bytes after the start of this header, where the next sibling Xtc begins (const version).
|
| |
| void * | alloc (size_t size, const void *end) |
| | Reserve size bytes at next() by adding size to extent and return that address (memory is not initialized).
|
| |
Xtc of type TypeId::ShapesData whose payload holds a Shapes xtc and a Data xtc, in either order.
Its src holds the NamesId used to find the matching Names.