|
Node overrides and implementation of abstract methods |
virtual NodeType_t | NodeType () const throw () |
static Array * | FromXMLData (CP_InStream &inXMLDataStream) |
Public Types |
typedef UInt32 | size_type |
typedef UInt32 | difference_type |
typedef Node * | value_type |
typedef const Node * | const_reference |
typedef _reference | reference |
typedef _iterator | iterator |
typedef _const_iterator | const_iterator |
typedef std::reverse_iterator<
iterator > | reverse_iterator |
typedef std::reverse_iterator<
const_iterator > | const_reverse_iterator |
enum | { npos = 0xffffffff
} |
Public Member Functions |
| Array () |
| Array (const Array &inSrc) |
| Array (const std::vector< const Node * > &inValues) |
| Array (CFArrayRef inArrayRef, bool inRetain=true) |
| Array (const std::vector< CFTypeRef > &inValues) |
virtual | ~Array () throw () |
Array * | MakeMutable () const |
| Make a mutable array with the same contents.
|
virtual void | PrintToLog (CP_LogFile &inLogFile, SInt32 inLevel=0, SInt32 inIndentLevel=0) const |
virtual CFTypeRef | GetNodeCFRef () const |
virtual void | WriteXMLData (CP_OutStream &inXMLDataStream) const |
|
const Node * | GetValue (size_type inIndex) const |
| Get the value at the specified position.
|
void | SetValue (size_type inIndex, const Node &inValue) |
| Set a value in the array.
|
void | AppendValue (const Node &inValue) |
| Append a value to the end of the array.
|
void | DeleteValue (size_type inIndex) |
| Delete a value from the array.
|
|
CP_String | GetStringValue (size_type inIndex) const |
| Get typed value.
|
UInt32 | GetUInt32Value (size_type inIndex) const |
SInt32 | GetSInt32Value (size_type inIndex) const |
double | GetFloatValue (size_type inIndex) const |
bool | GetBooleanValue (size_type inIndex) const |
CP_DateTime | GetDateTimeValue (size_type inIndex) const |
void | GetDateTimeValue (size_type inIndex, CP_Date *outDate, CP_Time *outTime) const |
CP_UUID | GetUUIDValue (size_type inIndex) const |
const Array * | GetArrayValue (size_type inIndex) const |
const Dictionary * | GetDictionaryValue (size_type inIndex) const |
|
void | SetStringValue (size_type inIndex, const CP_String &inValue) |
| Set a value in the array.
|
void | SetNumberValue (size_type inIndex, UInt32 inValue) |
void | SetNumberValue (size_type inIndex, double inValue) |
void | SetBooleanValue (size_type inIndex, bool inValue) |
void | SetDateTimeValue (size_type inIndex, const CP_DateTime &inDateTime) |
void | SetDateTimeValue (size_type inIndex, const CP_Date &inDate) |
void | SetDateTimeValue (size_type inIndex, const CP_Time &inTime) |
void | SetUUIDValue (size_type inIndex, const CP_UUID &inUUID) |
|
void | AppendStringValue (const CP_String &inValue) |
| Append a value to the end of the array.
|
void | AppendNumberValue (UInt32 inValue) |
void | AppendNumberValue (double inValue) |
void | AppendBooleanValue (bool inValue) |
void | AppendDateTimeValue (const CP_DateTime &inDateTime) |
void | AppendDateTimeValue (const CP_Date &inDate) |
void | AppendDateTimeValue (const CP_Time &inTime) |
void | AppendUUIDValue (const CP_UUID &inUUID) |
|
size_type | size () const |
void | resize (size_type inNewSize) |
bool | empty () const |
const Node * | operator[] (size_type inIndex) const |
reference | operator[] (size_type inIndex) |
const Node * | front () const |
reference | front () |
const Node * | back () const |
reference | back () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
Static Public Member Functions |
template<class _InputIterator, class _ValueConverter> |
static Array * | ArrayFromValues (_InputIterator begin, _InputIterator end, _ValueConverter converter=_identity< typename _InputIterator::value_type >()) |
template<class _InputIterator, class _ValueConverter> |
static Array * | ArrayFromCFObjects (_InputIterator begin, _InputIterator end, _ValueConverter converter=_identity< typename _InputIterator::value_type >()) |
static Node * | FromXMLData (CP_InStream &inXMLDataStream, NodeType_t inExpectedNodeType=NodeType_Any) |
static Node * | CreateNodeForCFObject (CFTypeRef inObject) |
Protected Member Functions |
CFMutableArrayRef | GetMutableCFRef () |
| operator TMutableCFRef () |
void | AttachRefMutable (CFMutableArrayRefinMutableRef, bool inRetain) |
void | AttachRef (CFArrayRefinRef, bool inRetain) |
CFMutableArrayRef | DetachRefMutable () |
void | MakeMutable () |
CFMutableArrayRef | MutableCopy (CFArrayRefinCFRef) |
CFArrayRef | DetachRef () |
CFArrayRef | GetCFRef () const |
bool | IsValid () const |
Protected Attributes |
CFArrayRef | fCFObject |
Classes |
class | _const_iterator |
struct | _identity |
class | _iterator |
class | _reference |