10 #ifndef TEUCHOS_SERIALIZER_HPP
11 #define TEUCHOS_SERIALIZER_HPP
24 template<
typename Ordinal,
typename T>
56 ,
const T *
const objs[]
88 ,
const char charBuffer[]
100 #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.
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.