Program Listing for File state.h¶
↰ Return to documentation for file (include/lupnt/physics/state.h
)
#pragma once
namespace lupnt {
enum class StateType : int;
class IState {
public:
virtual ~IState() = default;
virtual int GetSize() const = 0;
virtual VecX GetVec() const = 0;
virtual void SetVec(const VecX &x) = 0;
virtual Real GetValue(int idx) const = 0;
virtual void SetValue(int idx, Real val) = 0;
virtual StateType GetStateType() const = 0;
};
} // namespace lupnt