![]() |
KSquare Utilities
|
#include <XmlStream.h>
Inheritance diagram for KKB::XmlAttributeList:Public Member Functions | |
| XmlAttributeList (bool _owner) | |
| XmlAttributeList (const XmlAttributeList &attributes) | |
| void | AddAttribute (const KKStr &name, const KKStr &value) |
| KKStrConstPtr | AttributeNameByIndex (kkuint32 index) const |
| KKStrConstPtr | AttributeValueByIndex (kkuint32 index) const |
| KKStrConstPtr | AttributeValueByName (const KKStr &name) const |
| DateTime | AttributeValueDateTime (const KKStr &name) const |
| kkint32 | AttributeValueInt32 (const KKStr &name) const |
| const KKStr & | AttributeValueKKStr (const KKStr &name) const |
| XmlAttributePtr | LookUpByName (const KKStr &name) const |
| virtual XmlAttributePtr | PopFromBack () |
| virtual XmlAttributePtr | PopFromFromt () |
| virtual void | PushOnBack (XmlAttributePtr a) |
| virtual void | PushOnFront (XmlAttributePtr a) |
Public Member Functions inherited from KKB::KKQueue< XmlAttribute > | |
| KKQueue (bool _owner=true) | |
| KKQueue (const KKQueue &q, bool _owner) | |
| Constructor, similar to the Copy Constructor except that you can control whether it duplicates the contents. More... | |
| virtual | ~KKQueue () |
| Virtual destructor; if owns its contents will also call the destructor on each one entry that it contains. More... | |
| virtual void | Add (EntryPtr _entry) |
| virtual void | AddFirst (EntryPtr _entry) |
| virtual void | AddQueue (const KKQueue &q) |
| Add the contents of a separate KKQueue container to this container. More... | |
| EntryPtr | BackOfQueue () const |
| void | DeleteContents () |
| void | DeleteEntry (EntryPtr _entry) |
| void | DeleteEntry (kkuint32 _idx) |
| KKQueue * | DuplicateListAndContents () const |
| Creates a new container including duplicating the contents, which also makes the new instance the owner of those contents. More... | |
| kkuint32 | FindTheKthElement (kkuint32 k, Functor pred) |
| EntryPtr | FrontOfQueue () const |
| EntryPtr | GetFirst () const |
| EntryPtr | GetLast () const |
| EntryPtr | IdxToPtr (kkuint32 idx) const |
| kkint32 | LocateEntry (EntryConstPtr _entry) const |
| EntryPtr | LookAtBack () const |
| EntryPtr | LookAtFront () const |
| bool | operator!= (const KKQueue< XmlAttribute > &rightSide) const |
| returns False if NOT every entry in both containers point to the same elements More... | |
| KKQueue & | operator= (const KKQueue &q) |
| Assignment Operator. More... | |
| bool | operator== (const KKQueue< XmlAttribute > &rightSide) const |
| Returns True if every entry in both containers point to the same elements. More... | |
| XmlAttribute & | operator[] (kkuint32 i) const |
| bool | Owner () const |
| void | Owner (bool _owner) |
| virtual EntryPtr | PopFromFront () |
| kkint32 | PtrToIdx (EntryConstPtr _entry) const |
| kkint32 | QueueSize () const |
| void | RandomizeOrder () |
| Randomizes the order of the vector. More... | |
| void | RandomizeOrder (kkint64 seed) |
| void | RandomizeOrder (RandomNumGenerator &randomVariable) |
| Randomizes the order of the vector. More... | |
| virtual EntryPtr | RemoveFirst () |
| virtual EntryPtr | RemoveLast () |
| void | SetIdxToPtr (kkuint32 _idx, XmlAttribute *_ptr) |
| void | SwapIndexes (size_t idx1, size_t idx2) |
Additional Inherited Members | |
Public Types inherited from KKB::KKQueue< XmlAttribute > | |
| typedef std::vector< XmlAttribute * >::const_iterator | const_iterator |
| typedef std::vector< XmlAttribute * >::iterator | iterator |
Protected Member Functions inherited from KKB::KKQueue< XmlAttribute > | |
| KKQueue (const KKQueue &q) | |
| Copy Constructor creating new instance; including duplicating contents if owner set to true. More... | |
Definition at line 136 of file XmlStream.h.
| XmlAttributeList::XmlAttributeList | ( | bool | _owner | ) |
Definition at line 235 of file XmlStream.cpp.
References XmlAttributeList().
Referenced by XmlAttributeList().
| XmlAttributeList::XmlAttributeList | ( | const XmlAttributeList & | attributes | ) |
Definition at line 241 of file XmlStream.cpp.
Definition at line 366 of file XmlStream.cpp.
References PushOnBack(), and KKB::XmlAttribute::XmlAttribute().
| KKStrConstPtr XmlAttributeList::AttributeNameByIndex | ( | kkuint32 | index | ) | const |
Definition at line 320 of file XmlStream.cpp.
| KKStrConstPtr XmlAttributeList::AttributeValueByIndex | ( | kkuint32 | index | ) | const |
Definition at line 311 of file XmlStream.cpp.
| KKStrConstPtr XmlAttributeList::AttributeValueByName | ( | const KKStr & | name | ) | const |
Definition at line 301 of file XmlStream.cpp.
References LookUpByName(), and KKB::XmlAttribute::Value().
Referenced by AttributeValueDateTime(), AttributeValueInt32(), and AttributeValueKKStr().
Definition at line 352 of file XmlStream.cpp.
References AttributeValueByName(), and KKB::DateTime::DateTime().
Definition at line 341 of file XmlStream.cpp.
References AttributeValueByName(), and KKB::KKStr::ToInt32().
Definition at line 330 of file XmlStream.cpp.
References AttributeValueByName(), KKB::KKStr::Concat(), and KKB::KKStr::EmptyStr().
| XmlAttributePtr XmlAttributeList::LookUpByName | ( | const KKStr & | name | ) | const |
Definition at line 375 of file XmlStream.cpp.
Referenced by AttributeValueByName().
|
virtual |
Removes the last element in the container and returns its pointer. If the container is empty will return NULL.
Reimplemented from KKB::KKQueue< XmlAttribute >.
Definition at line 264 of file XmlStream.cpp.
|
virtual |
Definition at line 273 of file XmlStream.cpp.
|
virtual |
Adds '_entry' to the End of the container.
Reimplemented from KKB::KKQueue< XmlAttribute >.
Definition at line 250 of file XmlStream.cpp.
Referenced by AddAttribute().
|
virtual |
Adds '_entry' to the Front of the container.
Reimplemented from KKB::KKQueue< XmlAttribute >.
Definition at line 257 of file XmlStream.cpp.