15 #ifndef TYPEDWRITABLE_H
16 #define TYPEDWRITABLE_H
18 #include "typedObject.h"
19 #include "vector_typedWritable.h"
21 #include "lightMutex.h"
22 #include "updateSeq.h"
42 INLINE TypedWritable(
const TypedWritable ©);
43 INLINE
void operator = (
const TypedWritable ©);
45 virtual ~TypedWritable();
48 virtual void update_bam_nested(
BamWriter *manager);
50 virtual int complete_pointers(TypedWritable **p_list,
BamReader *manager);
51 virtual bool require_fully_complete()
const;
54 virtual void finalize(
BamReader *manager);
59 INLINE
void mark_bam_modified();
60 INLINE
UpdateSeq get_bam_modified()
const;
62 EXTENSION(PyObject *__reduce__(PyObject *
self)
const);
63 EXTENSION(PyObject *__reduce_persist__(PyObject *
self, PyObject *pickler)
const);
65 INLINE
string encode_to_bam_stream()
const;
66 bool encode_to_bam_stream(
string &data,
BamWriter *writer = NULL)
const;
67 static bool decode_raw_from_bam_stream(TypedWritable *&ptr,
74 void remove_bam_writer(
BamWriter *writer);
79 struct BamWriterLink {
83 AtomicAdjust::Pointer _bam_writers;
93 register_type(_type_handle,
"TypedWritable",
94 TypedObject::get_class_type());
98 return get_class_type();
102 return get_class_type();
111 #include "typedWritable.I"
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
void record_alternate_name(TypeHandle type, const string &name)
Indicates an alternate name for the same type.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
A base class for all things that want to be reference-counted.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...