Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::ArrayBase Class ReferenceMaintains an array of value, see ArrayOf, and the Array typedef. More...
Inheritance diagram for plist::ArrayBase:
Detailed DescriptionMaintains an array of value, see ArrayOf, and the Array typedef. You can add or set entries by a quite a few variations on addEntry(), setEntry(), or addValue(). Basically these boil down to either:
Definition at line 929 of file plistCollections.h.
Member Typedef Documentation
shorthand for the type of comments Definition at line 1169 of file plistCollections.h.
shorthand for iterators to be returned Definition at line 937 of file plistCollections.h.
shorthand for iterators to be returned Definition at line 935 of file plistCollections.h.
shorthand for the type of the storage Reimplemented in plist::ArrayOf< PO, Alloc >, plist::Point, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 933 of file plistCollections.h. Constructor & Destructor Documentation
constructor Definition at line 1131 of file plistCollections.h.
copy constructor Definition at line 1133 of file plistCollections.h.
destructor Definition at line 1138 of file plistCollections.h. Member Function Documentation
return last element Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1109 of file plistCollections.h.
return an STL const_iterator to the first entry Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1101 of file plistCollections.h.
remove all entries in one fell swoop Implements plist::Collection. Reimplemented in plist::RGBColor< T >. Definition at line 797 of file plistCollections.cc. Referenced by XWalkMC::stop(), GaitedFootstepMC::updateOutputs(), XWalkMC::updateOutputsInitial(), XWalkMC::updateOutputsWalking(), and ~ArrayBase().
called after an assignment or copy to clone the objects in myRef to perform a deep copy Definition at line 1021 of file plistCollections.cc. Referenced by ArrayBase().
return the one-past-end const_iterator Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1103 of file plistCollections.h.
run through collectionListeners, calling CollectionListener::plistCollectionEntryRemoved(*this,val) Reimplemented from plist::Collection. Reimplemented in plist::RGBColor< T >. Definition at line 983 of file plistCollections.cc. Referenced by removeEntry().
displaces 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 Array Implemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >.
displaces previous entry at the specified index, which must be less than or equal to the current array size Implemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >.
adds a new entry to the end of the array, (de)allocation responsibility of array Implemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >.
adds a new entry to the end of the array, (de)allocation retained by caller Implemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >.
return first element Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1107 of file plistCollections.h.
returns comment retrieved from loaded file, or any subsequent call to setComment Definition at line 819 of file plistCollections.cc. Referenced by plist::ArrayOf< PO, Alloc >::operator=(), and plist::ArrayOf< PO, Alloc >::set().
return the value at position index, which must exist (no range checking) Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1093 of file plistCollections.h. Referenced by resolveEntry().
returns longest key length which matches the regular expression Implements plist::Collection. Reimplemented in plist::RGBColor< T >. Definition at line 961 of file plistCollections.cc.
returns saveInlineStyle Definition at line 1127 of file plistCollections.h.
returns an entry matching just the prefix
Definition at line 1006 of file plistCollections.cc.
returns an entry matching just the prefix
Definition at line 992 of file plistCollections.cc. Referenced by resolveEntry().
This specialization looks for the SensorInfo::sensorType, then has the factory construct the correct subtype before loading the node into and returning that. From the name of node, will instantiate a new ObjectBase subclass to load it. supports use of plist::ArrayOf<PlannerObstacle> for polymorphic load/save 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. attempts to load a new T instance from the specified xmlNode Reimplemented from plist::ObjectBase. Reimplemented in plist::Point, and plist::RGBColor< T >. Definition at line 827 of file plistCollections.cc. Referenced by KinematicJointLoader::KinematicJointLoader().
called by loadXML(), loads a single xmlNode into a specified position, replacing previous entry if it can't accept the new value (subject to the load/save policy...) Implemented in KinematicJointLoader, plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Referenced by loadXML(). assignment Definition at line 1135 of file plistCollections.h.
return the value at position index, which must exist (no range checking, equivalent to getEntry(index)) Reimplemented in plist::ArrayOf< PO, Alloc >, plist::ArrayOf< ContactPoint >, plist::ArrayOf< plist::ArrayOf< plist::Primitive< float > > >, plist::ArrayOf< LinkComponent >, plist::ArrayOf< SensorInfo >, plist::ArrayOf< plist::Primitive< std::string > >, plist::ArrayOf< KinematicJoint >, plist::ArrayOf< plist::Primitive< float > >, plist::ArrayOf< plist::Primitive< T > >, plist::ArrayOf< plist::Angle >, plist::ArrayOf< LegParameters >, and plist::ArrayOf< plist::Primitive< PLISTREAL > >. Definition at line 1095 of file plistCollections.h.
returns true if the specified object will be deallocated when removed from the array Definition at line 1124 of file plistCollections.h.
remove the entry at position index, returns true if something was actually removed (if false, wasn't there to begin with) Definition at line 773 of file plistCollections.cc. Referenced by loadXML(), and ConvexPolyObstacle::saveXML().
recursively resolves path interpreted as a series of collection entry names separated by '.', returns NULL if it doesn't exist Implements plist::Collection. Reimplemented in plist::RGBColor< T >. Definition at line 785 of file plistCollections.cc.
subclasses are expected to provide a working implementation Implements plist::ObjectBase. Reimplemented in KinematicJointSaver, plist::Point, and plist::RGBColor< T >. Definition at line 846 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 810 of file plistCollections.cc. Referenced by plist::ArrayOf< PO, Alloc >::addEntry(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::addEntry(), plist::ArrayOf< PO, Alloc >::loadXMLNode(), plist::ArrayOf< PO, Alloc >::operator=(), and plist::ArrayOf< PO, Alloc >::set().
sets saveInlineStyle Definition at line 1126 of file plistCollections.h. Referenced by SensorContact::init(), plist::RGBColor< T >::init(), plist::Point::init(), EllipsoidObstacle::saveXML(), SphericalObstacle::saveXML(), CylindricalObstacle::saveXML(), BoxObstacle::saveXML(), EllipticalObstacle::saveXML(), CircularObstacle::saveXML(), and RectangularObstacle::saveXML().
return the size of the array Implements plist::Collection. Reimplemented in plist::RGBColor< T >. Definition at line 1105 of file plistCollections.h. Referenced by plist::ArrayOf< PO, Alloc >::addEntry(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::addEntry(), getLongestKeyLen(), getSubEntry(), loadXML(), ConvexPolyObstacle::loadXML(), plist::ArrayOf< PO, Alloc >::loadXMLNode(), KinematicJointLoader::loadXMLNode(), plist::ArrayOf< PO, Alloc >::operator=(), resolveEntry(), saveXML(), ConvexPolyObstacle::saveXML(), plist::ArrayOf< PO, Alloc >::set(), plist::ArrayOf< PO, Alloc >::setEntry(), XWalkMC::spiderSettings(), and XWalkMC::stop().
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 979 of file plistCollections.cc. Referenced by plist::ArrayOf< PO, Alloc >::addEntry(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::addEntry(), and plist::ArrayOf< PO, Alloc >::setEntry().
return current value as a string Implements plist::ObjectBase. Reimplemented in plist::RGBColor< T >. Definition at line 955 of file plistCollections.cc. Friends And Related Function Documentation
provides textual output Definition at line 1581 of file plistCollections.h. Member Data Documentation
storage of entries Definition at line 1163 of file plistCollections.h. Referenced by plist::ArrayOf< PO, Alloc >::addEntry(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::addEntry(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::ArrayOf(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::back(), back(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::begin(), begin(), clear(), cloneMyRef(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::end(), end(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::front(), front(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::getEntry(), getEntry(), getLongestKeyLen(), getSubEntry(), plist::ArrayOf< PO, Alloc >::loadXMLNode(), plist::ArrayOf< PO, Alloc >::operator=(), plist::ArrayOf< plist::Primitive< PLISTREAL > >::operator[](), operator[](), removeEntry(), resolveEntry(), saveXML(), plist::ArrayOf< PO, Alloc >::set(), plist::ArrayOf< PO, Alloc >::setEntry(), and size().
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 1172 of file plistCollections.h. Referenced by clear(), getComment(), removeEntry(), saveXML(), and setComment().
objects which have been handed over to the collection for eventual de-allocation Definition at line 1166 of file plistCollections.h. Referenced by plist::ArrayOf< plist::Primitive< PLISTREAL > >::ArrayOf(), clear(), cloneMyRef(), fireEntryRemoved(), KinematicJointLoader::loadXMLNode(), plist::ArrayOf< PO, Alloc >::operator=(), ownsReference(), plist::ArrayOf< PO, Alloc >::set(), plist::ArrayOf< PO, Alloc >::setEntry(), and takeObject().
If true, will avoid line breaks between entries in serialized output, also skips comment headers. This might make short lists more readable. Definition at line 1176 of file plistCollections.h. Referenced by getSaveInlineStyle(), saveXML(), and setSaveInlineStyle(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3 |