#include <ASCcontribution.h>
Inheritance diagram for ASCcontribution:


Public Types | |
| Summary_Words = 16 | |
| CNO_Words = 24 | |
| Tile_Words = 4096 | |
| enum | { Summary_Words = 16, CNO_Words = 24, Tile_Words = 4096 } |
Public Member Functions | |
| unsigned char * | string (bool swap=!DFC_BIG_ENDIAN) |
| Return this ASCcontribution in string form. | |
| unsigned * | summaryPtr () const |
| unsigned * | cnoPtr () const |
| unsigned * | tilesPtr () const |
Static Public Member Functions | |
| static ASCcontribution * | create (unsigned char *buffer, unsigned size, bool swap=!DFC_BIG_ENDIAN) |
| Create an ASCcontribtuion from a Python string. | |
Copyright: Copyright 2005 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
| unsigned* ASCcontribution::cnoPtr | ( | ) | const [inline] |
| ASCcontribution * ASCcontribution::create | ( | unsigned char * | buffer, | |
| unsigned | size, | |||
| bool | swap = !DFC_BIG_ENDIAN | |||
| ) | [inline, static] |
Create an ASCcontribtuion from a Python string.
This comment is copied from EBFevent header file
This method is here to support the Python interface. A Python string is cast to an ASCcontribution. If this class had anything but a no-op constructor this would not work and we would have to use placement new. The reason this wasn't done right off the bat is that it isn't entirely clear that we know how to do this correctly vis a vis the Python object reference counting. Sometimes a Python crash is observed that complains about an object already being marked for garbage collection. I have not been able to narrow this down to a particular class, but think it might have to do with the placement new used in the LATdatagram class.
| buffer | - A buffer containing an ASCcontribution in string form | |
| size | - The size of the buffer | |
| swap | - Optional parameter to force or not force in place byte swapping |
| unsigned char * ASCcontribution::string | ( | bool | swap = !DFC_BIG_ENDIAN |
) | [inline] |
Return this ASCcontribution in string form.
This comment is copied from EBFevent header file
This method is here to support the Python interface.
| swap | - Boolean to cause the buffer to be byte swapped in place |
Reimplemented from LATcontribution.
| unsigned* ASCcontribution::summaryPtr | ( | ) | const [inline] |
| unsigned* ASCcontribution::tilesPtr | ( | ) | const [inline] |
1.4.7