31 "The \"REAL VECTOR\" statement defines a global "
33 "\tREAL VECTOR<name>=<real-vector-expression>;\n") {
51 return (dynamic_cast<RealVector *>(
object) != 0);
72 return array[index-1];
The REAL VECTOR definition.
RealVector()
Exemplar constructor.
virtual bool canReplaceBy(Object *rhs)
Test for allowed replacement.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
const std::string & getOpalName() const
Return object name.
virtual RealVector * clone(const std::string &name)
Make clone.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
std::vector< double > getRealArray(const Attribute &attr)
Get array value.
virtual void printValue(std::ostream &os) const
Print its value.
virtual double getRealComponent(int) const
Return indexed value.
The base class for all OPAL objects.
The base class for all OPAL value definitions.
Attribute makeRealArray(const std::string &name, const std::string &help)
Create real array attribute.
virtual void print(std::ostream &) const
Print the vector.
Inform & endl(Inform &inf)