COOPY » Guide
version 0.6.5
|
#include <Property.h>
Public Member Functions | |
PolyValue () | |
PolyValue (const PolyValue &alt) | |
virtual | ~PolyValue () |
const PolyValue & | operator= (const PolyValue &alt) |
void | clear () |
bool | setInt (int x) |
bool | setBoolean (bool x) |
bool | setString (const char *str) |
bool | setString (const std::string &str) |
bool | setNull () |
bool | setMap () |
virtual int | asInt () const |
virtual bool | asBoolean () const |
virtual std::string | asString () const |
virtual bool | isInt () const |
virtual bool | isBoolean () const |
virtual bool | isString () const |
virtual bool | isNull () const |
virtual std::string | toString () const |
virtual Property & | asMap () |
virtual const Property & | asMap () const |
virtual bool | isMap () const |
int | addReference () |
int | removeReference () |
int | getReferenceCount () |
Static Public Member Functions | |
static PolyValue | makeInt (int x) |
static PolyValue | makeBoolean (bool x) |
static PolyValue | makeString (const char *str) |
static PolyValue | makeString (const std::string &str) |
static PolyValue | makeMap () |
Definition at line 39 of file Property.h.
coopy::store::PolyValue::PolyValue | ( | ) | [inline] |
Definition at line 44 of file Property.h.
coopy::store::PolyValue::PolyValue | ( | const PolyValue & | alt | ) | [inline] |
Definition at line 48 of file Property.h.
References coopy::store::RefCount::addReference().
virtual coopy::store::PolyValue::~PolyValue | ( | ) | [inline, virtual] |
Definition at line 55 of file Property.h.
References clear().
int coopy::store::RefCount::addReference | ( | ) | [inline, inherited] |
Definition at line 30 of file RefCount.h.
Referenced by coopy::store::PolyBook::attach(), coopy::fold::FoldedCell::FoldedCell(), coopy::fold::FoldedCell::getOrCreateSheet(), coopy::store::PolyBook::operator=(), operator=(), coopy::store::PolySheet::operator=(), coopy::fold::FoldedCell::operator=(), coopy::store::PolyBook::PolyBook(), coopy::store::PolySheet::PolySheet(), PolyValue(), coopy::store::PolySheet::setSchema(), and coopy::store::PolyBook::take().
virtual bool coopy::store::PolyValue::asBoolean | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 89 of file Property.h.
References coopy::store::Value::asBoolean().
virtual int coopy::store::PolyValue::asInt | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 84 of file Property.h.
References coopy::store::Value::asInt().
Property & Value::asMap | ( | ) | [virtual, inherited] |
Reimplemented in coopy::store::Property.
Definition at line 17 of file Property.cpp.
References coopy::store::Property::getNullProperty().
Referenced by coopy::store::sqlite::SqliteTextBook::read().
const Property & Value::asMap | ( | ) | const [virtual, inherited] |
Reimplemented in coopy::store::Property.
Definition at line 21 of file Property.cpp.
References coopy::store::Property::getNullProperty().
virtual std::string coopy::store::PolyValue::asString | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 94 of file Property.h.
References coopy::store::Value::asString().
Referenced by coopy::store::FormatDesc::toString().
void coopy::store::PolyValue::clear | ( | ) | [inline] |
Definition at line 68 of file Property.h.
References coopy::store::RefCount::removeReference().
Referenced by operator=(), and ~PolyValue().
int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
virtual bool coopy::store::PolyValue::isBoolean | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 104 of file Property.h.
References coopy::store::Value::isBoolean().
virtual bool coopy::store::PolyValue::isInt | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 99 of file Property.h.
References coopy::store::Value::isInt().
virtual bool coopy::store::Value::isMap | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::Property.
Definition at line 32 of file Property.h.
virtual bool coopy::store::PolyValue::isNull | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 114 of file Property.h.
References coopy::store::Value::isNull().
virtual bool coopy::store::PolyValue::isString | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 109 of file Property.h.
References coopy::store::Value::isString().
Referenced by coopy::store::FormatDesc::toString().
static PolyValue coopy::store::PolyValue::makeBoolean | ( | bool | x | ) | [inline, static] |
static PolyValue coopy::store::PolyValue::makeInt | ( | int | x | ) | [inline, static] |
Definition at line 125 of file Property.h.
References setInt().
Referenced by coopy::store::remotesql::RemoteSqlTextBook::open().
static PolyValue coopy::store::PolyValue::makeMap | ( | ) | [inline, static] |
Definition at line 149 of file Property.h.
References setMap().
static PolyValue coopy::store::PolyValue::makeString | ( | const std::string & | str | ) | [inline, static] |
Definition at line 143 of file Property.h.
References setString().
static PolyValue coopy::store::PolyValue::makeString | ( | const char * | str | ) | [inline, static] |
Definition at line 59 of file Property.h.
References coopy::store::RefCount::addReference(), and clear().
int coopy::store::RefCount::removeReference | ( | ) | [inline, inherited] |
Definition at line 35 of file RefCount.h.
Referenced by coopy::store::PolyBook::clear(), clear(), coopy::store::PolySheet::clearSchema(), coopy::store::PolySheet::clearSheet(), and coopy::store::PolyBook::give().
bool PolyValue::setBoolean | ( | bool | x | ) |
bool PolyValue::setInt | ( | int | x | ) |
bool PolyValue::setMap | ( | ) |
bool PolyValue::setNull | ( | ) |
Definition at line 110 of file Property.cpp.
bool PolyValue::setString | ( | const std::string & | str | ) |
Definition at line 103 of file Property.cpp.
References NULL.
bool PolyValue::setString | ( | const char * | str | ) |
virtual std::string coopy::store::PolyValue::toString | ( | ) | const [inline, virtual] |
Implements coopy::store::Value.
Definition at line 119 of file Property.h.
References coopy::store::Value::toString().