/usr/include/trilinos/RTC_ValueRTC.hh is in libtrilinos-pamgen-dev 12.4.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #ifndef _VALUERTC_H
#define _VALUERTC_H
#include "RTC_ObjectRTC.hh"
#include "RTC_commonRTC.hh"
#include <string>
#include <cassert>
namespace PG_RuntimeCompiler {
/**
* A Value object represents the operands in the code the user gives us.
*/
class Value: public Object
{
protected:
Type _type; //The data type of the Value
public:
/**
* Constructor -> Trivial
*
* @param type - The data type of the value
* @param objType - The object type of the value
*/
Value(Type type, ObjectType objType) : Object(objType) {_type = type;}
/**
* getType -> This method returns the Type of the Value.
*/
Type getType() const {return _type;}
/**
* getValue -> Should not be called
*/
virtual double getValue() { assert(false); return 0;}
/**
* getValue -> Should not be called
*/
virtual double getArrayValue(int offset) const { assert(false); return 0;}
/**
* setValue -> Should not be called
*/
virtual void setValue(double value) { assert(false); }
/**
* setArrayValue -> Should not be called
*/
virtual void setArrayValue(double value, int offset) { assert(false); }
/**
* getSize - The size of everything is zero, except for arrays
*/
virtual int getSize() const { return 0;}
};
}
#endif
|