42 #ifndef TEUCHOS_SERIALIZER_HPP 43 #define TEUCHOS_SERIALIZER_HPP 56 template<
typename Ordinal,
typename T>
88 ,
const T *
const objs[]
120 ,
const char charBuffer[]
132 #endif // TEUCHOS_SERIALIZER_HPP Strategy interface for the indirect serializing and deserializing objects of a given type handled usi...
virtual void deserialize(const Ordinal bytes, const char charBuffer[], const Ordinal count, T *const objs[]) const =0
Deserialize an object from a char[] buffer.
virtual Ordinal getBufferSize(const Ordinal count) const =0
Return an estimate for the maximum storage for count objects to be serialized.
virtual void serialize(const Ordinal count, const T *const objs[], const Ordinal bytes, char charBuffer[]) const =0
Serialize an object to a char[] buffer.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.
Smart reference counting pointer class for automatic garbage collection.
virtual RCP< T > createObj() const =0
Create an object of type T to be serialized into.
Reference-counted pointer class and non-member templated function implementations.