rasdaman complete source
Public Member Functions | Protected Member Functions | List of all members
BaseType Class Referenceabstract

#include <basetype.hh>

Inheritance diagram for BaseType:
Type DBNamedObject DBObject AtomicType CompositeType GenericComplexType IntegralType RealType UIntegralType StructType ComplexType1 ComplexType2 LongType OctetType ShortType DoubleType FloatType BoolType CharType ULongType UShortType

Public Member Functions

virtual unsigned int getSize () const =0
 
virtual r_ULong * convertToCULong (const char *cell, r_ULong *value) const =0
 
virtual char * makeFromCULong (char *cell, const r_ULong *value) const =0
 
virtual r_Long * convertToCLong (const char *cell, r_Long *value) const =0
 
virtual char * makeFromCLong (char *cell, const r_Long *value) const =0
 
virtual double * convertToCDouble (const char *cell, double *value) const =0
 
virtual char * makeFromCDouble (char *cell, const double *value) const =0
 
virtual void printCell (ostream &stream, const char *cell) const =0
 
 BaseType ()
 
 BaseType (const OId &id) throw (r_Error)
 
 BaseType (const BaseType &old)
 
BaseTypeoperator= (const BaseType &old)
 
virtual ~BaseType ()
 
virtual int compatibleWith (const Type *aType) const
 
virtual CondenseOp * getCondenseOp (Ops::OpType op) const
 get function object for condense operation. More...
 
virtual UnaryOp * getUnaryOp (Ops::OpType op, const BaseType *optype) const
 get function object for unary operation. More...
 
virtual BinaryOp * getBinaryOp (Ops::OpType op, const BaseType *op1type, const BaseType *op2type) const
 get function object for binary operation. More...
 
- Public Member Functions inherited from Type
virtual void destroy ()
 
virtual const char * getTypeName () const
 returns the name of the type as a C string. More...
 
virtual char * getTypeStructure () const
 returns the structure of the type as a C string. More...
 
const TypeEnum getType () const
 
 Type ()
 
 Type (const OId &id) throw (r_Error)
 
 Type (const Type &old)
 
Typeoperator= (const Type &old)
 
virtual ~Type ()
 
- Public Member Functions inherited from DBNamedObject
 DBNamedObject ()
 
 DBNamedObject (const OId &id) throw (r_Error)
 
 DBNamedObject (const DBNamedObject &old)
 
 DBNamedObject (const char *name)
 
 DBNamedObject (const OId &id, const char *name)
 
virtual ~DBNamedObject ()
 
const char * getName () const
 
DBNamedObjectoperator= (const DBNamedObject &old)
 
virtual r_Bytes getMemorySize () const
 
virtual void printStatus (unsigned int level=0, std::ostream &stream=std::cout) const
 
- Public Member Functions inherited from DBObject
int getReferenceCount (void) const
 
void incrementReferenceCount (void)
 
void decrementReferenceCount (void)
 
virtual ~DBObject ()
 
 DBObject ()
 
 DBObject (const DBObject &old)
 
 DBObject (const OId &id) throw (r_Error)
 
virtual void setPersistent (bool newPersistent) throw (r_Error)
 
bool isPersistent () const
 
void validate () throw (r_Error)
 
virtual void setModified () throw (r_Error)
 
bool isModified () const
 
OId getOId () const
 
EOId getEOId () const
 
OId::OIdType getObjectType () const
 
DBObjectoperator= (const DBObject &old)
 
bool isCached () const
 
virtual void setCached (bool newCached)
 
virtual r_Bytes getTotalStorageSize () const
 
virtual BinaryRepresentation getBinaryRepresentation () const throw (r_Error)
 
virtual void setBinaryRepresentation (const BinaryRepresentation &) throw (r_Error)
 
virtual char * getBinaryName () const
 

Protected Member Functions

 BaseType (const char *name)
 
- Protected Member Functions inherited from Type
 Type (const char *name)
 
- Protected Member Functions inherited from DBNamedObject
void setName (const char *newname)
 
void setName (const short length, const char *data)
 
- Protected Member Functions inherited from DBObject
virtual void release ()
 
virtual void readFromDb () throw (r_Error)
 
virtual void insertInDb () throw (r_Error)
 
virtual void deleteFromDb () throw (r_Error)
 
virtual void updateInDb () throw (r_Error)
 

Additional Inherited Members

- Static Public Attributes inherited from DBNamedObject
static short MAXNAMELENGTH
 
- Protected Attributes inherited from Type
TypeEnum myType
 
- Protected Attributes inherited from DBNamedObject
char * myName
 
unsigned short myNameSize
 
- Protected Attributes inherited from DBObject
bool _isPersistent
 
bool _isInDatabase
 
bool _isModified
 
bool _isCached
 
OId myOId
 
OId::OIdType objecttype
 
int referenceCount
 
- Static Protected Attributes inherited from DBNamedObject
static const char * defaultName
 

Constructor & Destructor Documentation

BaseType::BaseType ( )
BaseType::BaseType ( const OId id)
throw (r_Error
)
BaseType::BaseType ( const BaseType old)
virtual BaseType::~BaseType ( )
virtual
BaseType::BaseType ( const char *  name)
protected

Member Function Documentation

virtual int BaseType::compatibleWith ( const Type aType) const
virtual

Reimplemented from Type.

Reimplemented in StructType.

virtual double* BaseType::convertToCDouble ( const char *  cell,
double *  value 
) const
pure virtual
virtual r_Long* BaseType::convertToCLong ( const char *  cell,
r_Long *  value 
) const
pure virtual
virtual r_ULong* BaseType::convertToCULong ( const char *  cell,
r_ULong *  value 
) const
pure virtual
virtual BinaryOp* BaseType::getBinaryOp ( Ops::OpType  op,
const BaseType op1type,
const BaseType op2type 
) const
virtual

get function object for binary operation.

virtual CondenseOp* BaseType::getCondenseOp ( Ops::OpType  op) const
virtual

get function object for condense operation.

virtual unsigned int BaseType::getSize ( ) const
pure virtual

Implemented in AtomicType, and CompositeType.

virtual UnaryOp* BaseType::getUnaryOp ( Ops::OpType  op,
const BaseType optype 
) const
virtual

get function object for unary operation.

virtual char* BaseType::makeFromCDouble ( char *  cell,
const double *  value 
) const
pure virtual
virtual char* BaseType::makeFromCLong ( char *  cell,
const r_Long *  value 
) const
pure virtual
virtual char* BaseType::makeFromCULong ( char *  cell,
const r_ULong *  value 
) const
pure virtual
BaseType& BaseType::operator= ( const BaseType old)
virtual void BaseType::printCell ( ostream &  stream,
const char *  cell 
) const
pure virtual

The documentation for this class was generated from the following file: