| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::Array Class Reference#include <plistCollections.h>
Inheritance diagram for plist::Array: ![]() Detailed DescriptionA collection of plist objects, similar to a Dictionary, but no keys -- order matters!There's two versions of the plist array -- one is this Array class, the other is the Vector. This class is designed to be a fixed size -- you should add the entries which you expect to find in the array, and extra entries will be ignored when loading (with an optional warning). You can mix different primitive types in any order you choose. The other class, Vector, takes the opposite tack -- it handles loading a variable number of entries, but handles the allocation of those objects internally.
Definition at line 237 of file plistCollections.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size; clone will be added
Implements plist::Collection. Definition at line 626 of file plistCollections.cc.
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size; clone will be added
Implements plist::Collection. Definition at line 598 of file plistCollections.cc.
replaces previous entry at the specified index, which must be less than or equal to the current array size; clone will be added
Definition at line 559 of file plistCollections.cc.
replaces previous entry at the specified index, which must be less than or equal to the current array size; clone will be added
Definition at line 524 of file plistCollections.cc.
replaces previous entry at the specified index, which must represent an integer value less than or equal to the current array size; clone of val will be added
Definition at line 267 of file plistCollections.h.
replaces previous entry at the specified index, which must represent an integer value less than or equal to the current array size; clone of val will be added
Definition at line 265 of file plistCollections.h. Referenced by addEntry(), addValue(), and loadXMLNode().
template<>
specialization of Array::addValue() for char* strings
Definition at line 455 of file plistCollections.h.
template<>
specialization of Array::addValue() for char* strings
Definition at line 452 of file plistCollections.h.
template<>
specialization of Array::addValue() for ObjectBase subclasses
Definition at line 449 of file plistCollections.h.
template<>
specialization of Array::addValue() for char* strings
Definition at line 436 of file plistCollections.h.
template<>
specialization of Array::addValue() for char* strings
Definition at line 433 of file plistCollections.h.
template<>
specialization of Array::addValue() for ObjectBase subclasses
Definition at line 430 of file plistCollections.h.
template<>
specialization of Array::addValue() for char* strings
Definition at line 417 of file plistCollections.h.
template<>
specialization of Array::addValue() for char* strings
Definition at line 414 of file plistCollections.h.
template<>
specialization of Array::addValue() for ObjectBase subclasses
Definition at line 411 of file plistCollections.h.
"specialization" (actually just another override) for handling character arrays as strings
Definition at line 298 of file plistCollections.h.
template<typename T>
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size, control of (de)allocation will be assumed by the Vector
Definition at line 294 of file plistCollections.h.
"specialization" (actually just another override) for handling character arrays as strings
Definition at line 278 of file plistCollections.h.
template<typename T>
replaces previous entry at the specified index, which must be less than or equal to the current array size, control of (de)allocation will be assumed by the Vector
Definition at line 274 of file plistCollections.h.
"specialization" (actually just another override) for handling character arrays as strings
Definition at line 262 of file plistCollections.h.
template<typename T>
insert a new entry to the end of the vector, and corresponding comment; expects val to be either a primitive type, like int, float, etc., or one of the variable-sized Collection's, like Vector, control of (de)allocation will be assumed by the Vector
Definition at line 260 of file plistCollections.h.
remove all entries in one fell swoop
Implements plist::Collection. Definition at line 965 of file plistCollections.cc.
implements the clone function for Array
Implements plist::ObjectBase. Definition at line 833 of file plistCollections.cc.
called after an assignment or copy to clone the objects in myRef to perform a deep copy
Definition at line 986 of file plistCollections.cc.
run through collectionListeners, calling CollectionListener::plistCollectionEntryRemoved(*this,val)
Reimplemented from plist::Collection. Definition at line 977 of file plistCollections.cc. Referenced by removeEntry().
returns comment retrieved from loaded file, or any subsequent call to setComment
Implements plist::Collection. Definition at line 700 of file plistCollections.cc.
returns comment retrieved from loaded file, or any subsequent call to setComment
Definition at line 677 of file plistCollections.cc. Referenced by getComment().
return the value of the key name, or NULL if it doesn't exist
Implements plist::Collection. Definition at line 655 of file plistCollections.cc.
return the value at position index
Definition at line 312 of file plistCollections.h. Referenced by getEntry().
returns index corresponding to name, which should encode an integer value less than or equal to the current size
Definition at line 835 of file plistCollections.cc. Referenced by addEntry(), getComment(), getEntry(), getSubEntry(), removeEntry(), setComment(), and setEntry().
return the length of the longest key for formatting purposes
Implements plist::Collection. Definition at line 856 of file plistCollections.cc.
returns an entry matching just the prefix
Definition at line 882 of file plistCollections.cc.
returns an entry matching just the prefix
Definition at line 868 of file plistCollections.cc. Referenced by addEntry(), getComment(), getEntry(), removeEntry(), setComment(), and setEntry().
From the name of node, will instantiate a new ObjectBase subclass to load it. The mapping from node names to actual instantiated types is:
If successful, returns a pointer to a newly allocated region, which the caller is responsible for freeing. If an error occurs, NULL is returned. Reimplemented from plist::ObjectBase. Definition at line 715 of file plistCollections.cc.
called with each node being loaded so subclass can handle appropriately
Definition at line 1044 of file plistCollections.cc. Referenced by loadXML(). assignment (don't assign listeners); subclass should call fireEntriesChanged after calling this (and updating it storage)
Definition at line 254 of file plistCollections.h.
return the value of the key name, or NULL if it doesn't exist (equivalent to getEntry(name))
Reimplemented from plist::Collection. Definition at line 318 of file plistCollections.h.
return the value of the key name, or NULL if it doesn't exist (equivalent to getEntry(index))
Definition at line 314 of file plistCollections.h.
remove the entry with key name
Implements plist::Collection. Definition at line 641 of file plistCollections.cc.
remove the entry at position index
Definition at line 575 of file plistCollections.cc. Referenced by loadXML(), loadXMLNode(), and removeEntry().
subclasses are expected to provide a working implementation
Implements plist::ObjectBase. Definition at line 732 of file plistCollections.cc.
replaces previous comment for name, or adds it if it doesn't already exist (can preceed actual entry!)
Implements plist::Collection. Definition at line 685 of file plistCollections.cc.
replaces previous comment for name, or adds it if it doesn't already exist (can preceed actual entry!)
Definition at line 670 of file plistCollections.cc. Referenced by addEntry(), loadXMLNode(), and setComment().
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size; clone will be added
Implements plist::Collection. Definition at line 612 of file plistCollections.cc.
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size; clone will be added
Implements plist::Collection. Definition at line 584 of file plistCollections.cc.
replaces previous entry at the specified index, which must be less than or equal to the current array size; clone will be added
Definition at line 536 of file plistCollections.cc.
replaces previous entry at the specified index, which must be less than or equal to the current array size; clone will be added
Definition at line 509 of file plistCollections.cc. Referenced by setEntry(), and setValue().
template<>
specialization of Array::setValue() for char* strings
Definition at line 446 of file plistCollections.h.
template<>
specialization of Array::setValue() for char* strings
Definition at line 443 of file plistCollections.h.
template<>
specialization of Array::setValue() for ObjectBase subclasses
Definition at line 440 of file plistCollections.h.
template<>
specialization of Array::setValue() for char* strings
Definition at line 427 of file plistCollections.h.
template<>
specialization of Array::setValue() for char* strings
Definition at line 424 of file plistCollections.h.
template<>
specialization of Array::setValue() for ObjectBase subclasses
Definition at line 421 of file plistCollections.h.
"specialization" (actually just another override) for handling character arrays as strings
Definition at line 296 of file plistCollections.h.
template<typename T>
replaces previous entry of the same name, which must represent an integer value less than or equal to the current array size, control of (de)allocation will be assumed by the Vector
Definition at line 291 of file plistCollections.h.
"specialization" (actually just another override) for handling character arrays as strings
Definition at line 276 of file plistCollections.h.
template<typename T>
replaces previous entry at the specified index, which must be less than or equal to the current array size, control of (de)allocation will be assumed by the Vector
Definition at line 271 of file plistCollections.h.
return the size of the dictionary
Definition at line 327 of file plistCollections.h. Referenced by addEntry(), getComment(), getEntry(), getLongestKeyLen(), getSubEntry(), loadXML(), loadXMLNode(), removeEntry(), setComment(), and setEntry().
indicates that the storage implementation should mark this as an externally supplied heap reference, which needs to be deleted on removal/destruction
Definition at line 973 of file plistCollections.cc. Referenced by addEntry(), and setEntry().
return current value as a string
Implements plist::ObjectBase. Definition at line 826 of file plistCollections.cc.
Friends And Related Function Documentation
Member Data Documentation
storage of entries -- mapping from keys to value pointers
Definition at line 376 of file plistCollections.h. Referenced by addEntry(), clear(), cloneMyRef(), getComment(), getEntry(), getLongestKeyLen(), getSubEntry(), loadXMLNode(), operator=(), removeEntry(), saveXML(), setComment(), and setEntry().
storage of entry comments -- mapping from keys to help text comments for manual editing or user feedback not every key necessarily has a comment! Definition at line 385 of file plistCollections.h. Referenced by getComment(), operator=(), saveXML(), and setComment().
objects which have been handed over to the collection for eventual de-allocation
Definition at line 379 of file plistCollections.h. Referenced by clear(), cloneMyRef(), fireEntryRemoved(), operator=(), setEntry(), and takeObject().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:23 2006 by Doxygen 1.4.7 |