#include <ceammc_atom.h>
logical atom type
Enumerator |
---|
NONE |
|
FLOAT |
|
SYMBOL |
|
PROPERTY |
|
ceammc::Atom::Atom |
( |
const t_atom & |
a | ) |
|
t_float ceammc::Atom::asFloat |
( |
float |
def = 0.f | ) |
const |
t_float ceammc::Atom::asFloatInRange |
( |
float |
min, |
|
|
float |
max |
|
) |
| const |
int ceammc::Atom::asInt |
( |
int |
def = 0 | ) |
const |
size_t ceammc::Atom::asSizeT |
( |
size_t |
def = 0 | ) |
const |
std::string ceammc::Atom::asString |
( |
| ) |
const |
t_symbol* ceammc::Atom::asSymbol |
( |
| ) |
const |
bool ceammc::Atom::getFloat |
( |
t_float * |
v | ) |
const |
Tries to get float from atom - writes to destination only if atom type if float
- Parameters
-
v | - pointer to destination |
- Returns
- true on success, false - if atom is not float
- See Also
- getSymbol
bool ceammc::Atom::getString |
( |
std::string & |
str | ) |
const |
bool ceammc::Atom::getSymbol |
( |
t_symbol ** |
s | ) |
const |
bool ceammc::Atom::isFloat |
( |
| ) |
const |
bool ceammc::Atom::isInteger |
( |
| ) |
const |
- Returns
- true if atom has logical type Atom::FLOAT and value is integer
bool ceammc::Atom::isNatural |
( |
| ) |
const |
- Returns
- true if atom has logical type Atom::FLOAT and value is natural (with 0)
bool ceammc::Atom::isNone |
( |
| ) |
const |
bool ceammc::Atom::isProperty |
( |
| ) |
const |
bool ceammc::Atom::isSymbol |
( |
| ) |
const |
Atom ceammc::Atom::operator* |
( |
double |
v | ) |
const |
Atom& ceammc::Atom::operator*= |
( |
double |
v | ) |
|
Atom ceammc::Atom::operator+ |
( |
double |
v | ) |
const |
Atom& ceammc::Atom::operator+= |
( |
double |
v | ) |
|
Atom ceammc::Atom::operator- |
( |
double |
v | ) |
const |
Atom& ceammc::Atom::operator-= |
( |
double |
v | ) |
|
Atom ceammc::Atom::operator/ |
( |
double |
v | ) |
const |
Atom& ceammc::Atom::operator/= |
( |
double |
v | ) |
|
bool ceammc::Atom::operator< |
( |
const Atom & |
a | ) |
const |
void ceammc::Atom::output |
( |
t_outlet * |
x | ) |
const |
outputs atom to given outlet
- Parameters
-
bool ceammc::Atom::setFloat |
( |
t_float |
v, |
|
|
bool |
force = false |
|
) |
| |
bool ceammc::Atom::setSymbol |
( |
t_symbol * |
s, |
|
|
bool |
force = false |
|
) |
| |
Type ceammc::Atom::type |
( |
| ) |
const |
bool operator!= |
( |
const Atom & |
a1, |
|
|
const Atom & |
a2 |
|
) |
| |
|
friend |
bool operator== |
( |
const Atom & |
a1, |
|
|
const Atom & |
a2 |
|
) |
| |
|
friend |
const char ceammc::Atom::PROP_PREFIX = '@' |
|
static |
The documentation for this class was generated from the following file: