Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
signaltype.hpp
1 #ifndef NM_SIGNALTYPE_HPP
2 #define NM_SIGNALTYPE_HPP
3 
4 #include <nmlib/util/noncopyable.hpp>
5 
6 namespace nm {
7 
14 {
15 public:
16  const int dimensionality;
17  explicit SignalType(int dimensions); //TODO consider switching to unsigned int
18  bool operator==(const SignalType& rhs) const;
19  bool operator!=(const SignalType& rhs) const;
20 
26  bool isConvertibleTo(const SignalType &rhs) const;
27 };
28 
29 } // namespace nm
30 
31 #endif // NM_SIGNALTYPE_HPP
Describes a the dimensionality of a signal Can be extended to include other type information such as ...
Definition: signaltype.hpp:13
bool isConvertibleTo(const SignalType &rhs) const
Checks if this SignalType can be converted to another.
Definition: signaltype.cpp:19