blob: f0db95cd0d3db05cb5be1589d52fcf007c9f213f [file] [log] [blame]
#ifndef VECTOR_TYPE_H_
#define VECTOR_TYPE_H_
#include "Type.h"
namespace android {
struct VectorType : public Type {
VectorType(Type *elementType);
std::string getCppType(StorageMode mode, std::string *extra) const override;
void emitReaderWriter(
Formatter &out,
const std::string &name,
const std::string &parcelObj,
bool parcelObjIsPointer,
bool isReader,
ErrorMode mode) const override;
void emitReaderWriterEmbedded(
Formatter &out,
const std::string &name,
bool nameIsPointer,
const std::string &parcelObj,
bool parcelObjIsPointer,
bool isReader,
ErrorMode mode,
const std::string &parentName,
const std::string &offsetText) const override;
bool needsEmbeddedReadWrite() const override;
bool resultNeedsDeref() const override;
private:
Type *mElementType;
DISALLOW_COPY_AND_ASSIGN(VectorType);
};
} // namespace android
#endif // VECTOR_TYPE_H_