92 int asInt(
int def = 0)
const;
93 size_t asSizeT(
size_t def = 0)
const;
134 static inline bool isFloat(
const Atom& a) {
return a.
isFloat(); }
135 static inline bool isSymbol(
const Atom& a) {
return a.isSymbol(); }
136 static inline bool isProperty(
const Atom& a) {
return a.isProperty(); }
137 static inline bool notFloat(
const Atom& a) {
return !a.isFloat(); }
138 static inline bool notSymbol(
const Atom& a) {
return !a.isSymbol(); }
139 static inline bool notProperty(
const Atom& a) {
return !a.isProperty(); }
142 #endif // CEAMMC_ATOM_H
Atom operator*(double v) const
Definition: ceammc_atom.h:32
Atom operator-(double v) const
friend bool operator!=(const Atom &a1, const Atom &a2)
size_t asSizeT(size_t def=0) const
Atom & operator*=(double v)
Definition: ceammc_atom.h:23
bool operator!=(const Atom &a1, const Atom &a2)
int asInt(int def=0) const
bool setFloat(t_float v, bool force=false)
Type
logical atom type
Definition: ceammc_atom.h:28
bool getSymbol(t_symbol **s) const
Atom & operator+=(double v)
bool getString(std::string &str) const
Definition: ceammc_atom.h:31
void output(t_outlet *x) const
outputs atom to given outlet
Definition: ceammc_atom.h:29
t_symbol * asSymbol() const
Atom & operator/=(double v)
Atom operator/(double v) const
t_float asFloat(float def=0.f) const
PD_FLOATTYPE t_float
Definition: m_pd.h:107
bool operator<(const Atom &a) const
#define t_outlet
Definition: m_pd.h:189
bool to_outlet(t_outlet *x, const Atom &a)
Atom operator+(double v) const
bool operator==(const Atom &a1, const Atom &a2)
std::ostream & operator<<(std::ostream &os, const Atom &a)
Atom & operator-=(double v)
static const char PROP_PREFIX
Definition: ceammc_atom.h:35
friend bool operator==(const Atom &a1, const Atom &a2)
void outputAsAny(t_outlet *x, t_symbol *sel) const
bool setSymbol(t_symbol *s, bool force=false)
t_float asFloatInRange(float min, float max) const
bool getFloat(t_float *v) const
std::string asString() const
Definition: ceammc_atom.h:30